-
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
Added unit tests for go/cmd/rulesctl/
package
#15028
Added unit tests for go/cmd/rulesctl/
package
#15028
Conversation
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
|
e16a30f
to
48314ab
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15028 +/- ##
==========================================
+ Coverage 65.49% 65.61% +0.11%
==========================================
Files 1562 1562
Lines 193940 193940
==========================================
+ Hits 127016 127246 +230
+ Misses 66924 66694 -230 ☔ View full report in Codecov by Sentry. |
48314ab
to
0cddcaf
Compare
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.
Excellent work!
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.
cobra provides some builtin utils for some of the work you're doing here; we should use those instead
@VaibhavMalik4187 Could you address the changes requested in the PR. |
On it. |
0cddcaf
to
c5fa854
Compare
This commit increases the code coverage of the `cmd/rulesctl/common` package to 71% and that of `cmd/rulesctl/cmd` package to >90% Partially Fixes: vitessio#14931 Signed-off-by: VaibhavMalik4187 <[email protected]>
c5fa854
to
9623a8f
Compare
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Description
This PR adds new tests for the
go/cmd/rulesctl
packageThis commit increases the code coverage of the
cmd/rulesctl/common
package to 71% and that ofcmd/rulesctl/cmd
package to >90%Related Issue(s)
Partially Fixes: #14931
Checklist