Repository navigation
Increase unit test coverage from 71% to 94.90% - #118
Merged
Merged
Conversation
Add tests for previously uncovered methods and branches: #build, #build_package, #create_build_dir, #cleanup_build_dir, #copy_mtime, #package_already_exists?, metadata error paths (missing/unreadable/invalid JSON/caching), validate_source! unreadable branch, ignored_files destination-outside-source branch, stage_module_in_build_dir directory mtime reset, and read_file nil_on_error rescue path. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Move mock_gz and mock_file from let blocks into the before block as local variables to reduce memoized helper count from 9 to 8. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #118 +/- ##
===========================================
+ Coverage 71.51% 94.93% +23.41%
===========================================
Files 2 2
Lines 158 158
===========================================
+ Hits 113 150 +37
+ Misses 45 8 -37 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
david22swan
approved these changes
Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add tests for previously uncovered methods and branches: #build, #build_package, #create_build_dir, #cleanup_build_dir, #copy_mtime, #package_already_exists?, metadata error paths (missing/unreadable/invalid JSON/caching), validate_source! unreadable branch, ignored_files destination-outside-source branch, stage_module_in_build_dir directory mtime reset, and read_file nil_on_error rescue path.
Summary
Provide a detailed description of all the changes present in this pull request.
Additional Context
Add any additional context about the problem here.
Related Issues (if any)
Mention any related issues or pull requests.
Checklist