Commit 0f65f1a
fix: keep text-badge fraction statement-only for text reports
The branch-aware fraction assumed `brpart` is the count of missing
branches, which is only true for XML totals. Text reports expose
coverage.py's `BrPart` (partial branches), so gate the branch math on
the XML path to avoid overstating covered branches.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent e6b549a commit 0f65f1a
3 files changed
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
263 | 274 | | |
264 | 275 | | |
265 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39727 | 39727 | | |
39728 | 39728 | | |
39729 | 39729 | | |
39730 | | - | |
39731 | | - | |
39732 | | - | |
| 39730 | + | |
| 39731 | + | |
| 39732 | + | |
| 39733 | + | |
39733 | 39734 | | |
39734 | 39735 | | |
39735 | 39736 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
273 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
| |||
0 commit comments