Commit 487ce88
OpenClaw Agent
test_runner: exclude BRDA entries for ignored lines in lcov output
When a line is marked with node:coverage ignore next, both the DA (line
coverage) entry and the BRDA (branch coverage) entry for branches leading
to that line should be excluded from the lcov output.
This matches the behavior of c8 and ensures that branch coverage
percentages are not artificially reduced by ignored code.
Fixes: #615861 parent 1ea93c7 commit 487ce88
1 file changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
201 | 206 | | |
202 | 207 | | |
203 | 208 | | |
| |||
0 commit comments