Skip to content

add tests for dgate cli and dgclient

Codecov / codecov/patch succeeded May 11, 2024 in 1s

41.08% of diff hit (target 26.60%)

View this Pull Request on Codecov

41.08% of diff hit (target 26.60%)

Annotations

Check warning on line 19 in cmd/dgate-cli/commands/run_cmd.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/dgate-cli/commands/run_cmd.go#L19

Added line #L19 was not covered by tests

Check warning on line 62 in cmd/dgate-cli/commands/run_cmd.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/dgate-cli/commands/run_cmd.go#L58-L62

Added lines #L58 - L62 were not covered by tests

Check warning on line 66 in cmd/dgate-cli/commands/run_cmd.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/dgate-cli/commands/run_cmd.go#L64-L66

Added lines #L64 - L66 were not covered by tests

Check warning on line 71 in cmd/dgate-cli/commands/run_cmd.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/dgate-cli/commands/run_cmd.go#L68-L71

Added lines #L68 - L71 were not covered by tests

Check warning on line 76 in cmd/dgate-cli/commands/run_cmd.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/dgate-cli/commands/run_cmd.go#L73-L76

Added lines #L73 - L76 were not covered by tests

Check warning on line 96 in cmd/dgate-cli/commands/run_cmd.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/dgate-cli/commands/run_cmd.go#L94-L96

Added lines #L94 - L96 were not covered by tests

Check warning on line 111 in cmd/dgate-cli/commands/run_cmd.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/dgate-cli/commands/run_cmd.go#L110-L111

Added lines #L110 - L111 were not covered by tests

Check warning on line 12 in cmd/dgate-cli/main.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/dgate-cli/main.go#L11-L12

Added lines #L11 - L12 were not covered by tests

Check warning on line 103 in internal/config/loader.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/config/loader.go#L103

Added line #L103 was not covered by tests

Check warning on line 42 in internal/config/utils.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/config/utils.go#L42

Added line #L42 was not covered by tests

Check warning on line 113 in internal/proxy/dynamic_proxy.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/proxy/dynamic_proxy.go#L113

Added line #L113 was not covered by tests

Check warning on line 121 in internal/proxy/dynamic_proxy.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/proxy/dynamic_proxy.go#L121

Added line #L121 was not covered by tests

Check warning on line 28 in internal/proxy/module_executor.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/proxy/module_executor.go#L28

Added line #L28 was not covered by tests

Check warning on line 40 in internal/proxy/module_executor.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/proxy/module_executor.go#L40

Added line #L40 was not covered by tests

Check warning on line 52 in internal/proxy/module_executor.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/proxy/module_executor.go#L52

Added line #L52 was not covered by tests

Check warning on line 67 in internal/proxy/module_executor.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/proxy/module_executor.go#L67

Added line #L67 was not covered by tests

Check warning on line 80 in internal/proxy/module_executor.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/proxy/module_executor.go#L80

Added line #L80 was not covered by tests

Check warning on line 18 in pkg/dgclient/collection_client.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/dgclient/collection_client.go#L18

Added line #L18 was not covered by tests

Check warning on line 29 in pkg/dgclient/collection_client.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/dgclient/collection_client.go#L29

Added line #L29 was not covered by tests

Check warning on line 37 in pkg/dgclient/collection_client.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/dgclient/collection_client.go#L37

Added line #L37 was not covered by tests

Check warning on line 45 in pkg/dgclient/collection_client.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/dgclient/collection_client.go#L45

Added line #L45 was not covered by tests

Check warning on line 38 in pkg/dgclient/dgclient.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/dgclient/dgclient.go#L38

Added line #L38 was not covered by tests

Check warning on line 60 in pkg/dgclient/dgclient.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/dgclient/dgclient.go#L60

Added line #L60 was not covered by tests

Check warning on line 67 in pkg/dgclient/dgclient.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/dgclient/dgclient.go#L65-L67

Added lines #L65 - L67 were not covered by tests

Check warning on line 103 in pkg/dgclient/dgclient.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/dgclient/dgclient.go#L103

Added line #L103 was not covered by tests