Commit f79d7af
committed
test_runner: exclude ignored branches from BRDA in lcov output
When using node:coverage ignore comments, line coverage (DA entries)
is correctly excluded from the lcov output, but branch coverage (BRDA
entries) for branches pointing to ignored lines still appears as
uncovered. This causes branch coverage percentages to be incorrectly
low.
Skip branches entirely when all their lines are ignored by coverage
comments, consistent with how ignored lines are already excluded from
line reports.
Fixes: #615861 parent 7547e79 commit f79d7af
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
196 | 203 | | |
197 | 204 | | |
198 | 205 | | |
199 | 206 | | |
200 | 207 | | |
201 | 208 | | |
202 | | - | |
203 | | - | |
| 209 | + | |
204 | 210 | | |
205 | 211 | | |
206 | 212 | | |
| |||
0 commit comments