Commit 0facea0
Code Clawd
test_runner: exclude BRDA entries for ignored lines in LCOV reporter
When a line is marked with /* node:coverage ignore next */, the DA entry
for that line is correctly excluded from the LCOV output. However, the
corresponding BRDA entry was still being emitted, causing branch coverage
to report uncovered branches for code that should be ignored.
This fix builds a set of ignored line numbers from file.lines (which
includes the ignore flag) and skips BRDA entries for those lines.
Fixes: #615861 parent d0fa608 commit 0facea0
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
71 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
72 | 86 | | |
73 | 87 | | |
74 | 88 | | |
| |||
104 | 118 | | |
105 | 119 | | |
106 | 120 | | |
107 | | - | |
| 121 | + | |
0 commit comments