Commit 7ad8c5d
fix: resolve coverage report "inconsistent NumStmt" error
Remove -race flag from coverage target to work around Go coverage tool bug
with generated code containing //line directives (scanner.go, y.go).
Changes:
- Remove -race from coverage test run (still runs in test target)
- Add graceful error handling for HTML report generation
- Improve coverage output to show per-package percentages
- Clean up temporary .coverage.tmp file
The coverage profile is still generated correctly and can be used by
CI/CD tools. Race detection continues to work via the test target.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent f3dae68 commit 7ad8c5d
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
86 | 96 | | |
87 | 97 | | |
88 | 98 | | |
| |||
0 commit comments