-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
tests: Add tests for go/vt/external
#15023
tests: Add tests for go/vt/external
#15023
Conversation
Signed-off-by: Manik Rana <[email protected]>
Signed-off-by: Manik Rana <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
go/vt/external
go/vt/external
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15023 +/- ##
==========================================
+ Coverage 47.36% 47.39% +0.02%
==========================================
Files 1144 1144
Lines 238995 238995
==========================================
+ Hits 113197 113267 +70
+ Misses 117213 117137 -76
- Partials 8585 8591 +6 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Manik Rana <[email protected]>
Signed-off-by: Manik Rana <[email protected]>
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.
Besides the comments I left it looks good to me.
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!
Description
Bumps coverage from 15.4% to 61.5%
Question: some functions require a
db *sql.DB
as an argument. Not sure how to approach testing these. Do I make a sqlite DB to test them or use sqlmock?Related Issue(s)
#14931
Checklist
Deployment Notes