Commit 06c7fa2
committed
test_runner: skip branches entirely on ignored lines
Fixes: #61586
When a branch is entirely on ignored lines (via c8 ignore comments),
it should not appear in the BRDA output at all, rather than appearing
with 0 coverage.
Modified the branch coverage logic to check if all lines in the branch
are ignored before adding to branchReports and incrementing totalBranches.
This ensures ignored branches don't pollute coverage reports.1 parent a57893b commit 06c7fa2
1 file changed
+13
-11
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 | | - | |
203 | | - | |
204 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
205 | 209 | | |
206 | | - | |
207 | | - | |
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
| |||
0 commit comments