-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unit test for pkg exporter #4195
Add unit test for pkg exporter #4195
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4195 +/- ##
==========================================
+ Coverage 58.30% 61.12% +2.82%
==========================================
Files 384 384
Lines 54376 54379 +3
==========================================
+ Hits 31702 33240 +1538
+ Misses 20257 18702 -1555
- Partials 2417 2437 +20
|
f179b8a
to
994e366
Compare
// PrepareClickHouseConnection is used for unit testing | ||
var ( | ||
PrepareClickHouseConnection = func(input ClickHouseInput) (string, *sql.DB, error) { | ||
return PrepareConnection(input) | ||
} | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a bit clunky that this needs to be an exported variable, but I understand that there isn't any obvious alternative here...
Signed-off-by: Yun-Tang Hsu <hsuy@vmware.com>
994e366
to
8610ae4
Compare
/test-networkpolicy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
For antrea-io#4142 Signed-off-by: Yun-Tang Hsu <hsuy@vmware.com>
Add unit test for pkg exporter under flowaggregator
For #4142
Signed-off-by: Yun-Tang Hsu hsuy@vmware.com