Skip to content

add tests for dgate cli and dgclient

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

32.91% (+6.31%) compared to 60da400

View this Pull Request on Codecov

32.91% (+6.31%) compared to 60da400

Details

Codecov Report

Attention: Patch coverage is 41.08911% with 119 lines in your changes are missing coverage. Please review.

Project coverage is 32.91%. Comparing base (60da400) to head (57a9c71).

❗ Current head 57a9c71 differs from pull request most recent head 5dd3fd9. Consider uploading reports for the commit 5dd3fd9 to get more accurate results

Files Patch % Lines
pkg/dgclient/dgclient.go 6.00% 46 Missing and 1 partial ⚠️
cmd/dgate-cli/commands/run_cmd.go 64.93% 22 Missing and 5 partials ⚠️
internal/proxy/module_executor.go 0.00% 5 Missing ⚠️
pkg/dgclient/document_client.go 0.00% 5 Missing ⚠️
pkg/dgclient/collection_client.go 0.00% 4 Missing ⚠️
pkg/dgclient/domain_client.go 0.00% 4 Missing ⚠️
pkg/dgclient/module_client.go 0.00% 4 Missing ⚠️
pkg/dgclient/namespace_client.go 0.00% 4 Missing ⚠️
pkg/dgclient/secret_client.go 0.00% 4 Missing ⚠️
pkg/dgclient/service_client.go 0.00% 4 Missing ⚠️
... and 5 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
+ Coverage   26.60%   32.91%   +6.31%     
==========================================
  Files         112      113       +1     
  Lines        9254     9250       -4     
==========================================
+ Hits         2462     3045     +583     
+ Misses       6558     5841     -717     
- Partials      234      364     +130     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.