test: Improve test coverage from 72% to 76% (toward 80% target) #92
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.
Summary
Improves test coverage from 72.2% to 76.3% (+4.1 percentage points) by adding comprehensive edge case tests for 8 priority functions identified in issue #91.
Progress Toward 80% Goal
Changes
New Test File:
coverage_80_test.goAdded 100+ edge case tests targeting functions with lowest coverage:
1.
callContains(56.5% → improved)2.
visitExistsOneComprehension(64.0% → improved)3.
visitMapComprehension(66.7% → improved)4.
callIndexOf(67.7% → improved)5.
callSubstring(68.0% → improved)6.
visitAllComprehension(69.2% → improved)7.
visitFilterComprehension(70.4% → improved)8.
visitExistsComprehension(72.0% → improved)Test Quality
make fmtmake lintwith 0 issuesCoverage Analysis
Main Package Coverage:
pg Package: 92.1% (unchanged, already excellent)
Related Issues
Next Steps
To reach the 80% target (remaining 3.7pp), we would need to:
This PR provides a solid foundation and substantial progress toward the goal.
Test Plan
🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]