-
-
Notifications
You must be signed in to change notification settings - Fork 1
Add tests to improve coverage to 93.5% #82
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
Conversation
- Add Version.String() test (pkg/version now at 100%) - Add tests for cmd error paths (invalid versions, flags) - Add tests for hash algorithms (sha384, sha1, auto) - Add tests for JSON flag validation - Add tests for prometheus thresholds - Add tests for resource command paths - Add realFileChecker test - Extract main() to separate file for cleaner coverage
📝 WalkthroughWalkthroughThis pull request refactors the preflight command's entry point by moving the main() function from main.go to a new main_entry.go file, while expanding test coverage with new unit tests across multiple command validation paths and error handling scenarios. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧬 Code graph analysis (1)pkg/version/parse_test.go (1)
🔇 Additional comments (13)
Comment |
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #82 +/- ##
==========================================
+ Coverage 91.39% 93.47% +2.08%
==========================================
Files 47 48 +1
Lines 1825 1825
==========================================
+ Hits 1668 1706 +38
+ Misses 109 84 -25
+ Partials 48 35 -13
🚀 New features to boost your workflow:
|
|
Note Docstrings generation - SUCCESS |
Docstrings generation was requested by @vertti. * #82 (comment) The following files were modified: * `cmd/preflight/main.go` * `cmd/preflight/main_entry.go`
|
@CodeRabbit 1) i do not want unnecessary noise which your comments would create in the code 2) i do not know what do you even mean by "coverage of docstrings" |
|
Tip For best results, initiate chat on the files or code changes. @vertti I apologize for any confusion. Let me address your concerns:
I'll respect your workflow preferences and keep feedback focused on what you're asking for. Your PR is successfully improving test coverage to 93.5% with well-structured tests, which is the goal you set out to achieve. |
Summary by CodeRabbit
Tests
Chores
✏️ Tip: You can customize this high-level summary in your review settings.