Cover the mutation sites the suite never reached.

git status can fail after rev-parse succeeds, and that empty-stderr
message was never executed. A non-numeric LCOV branch count never
reaches the hit check, so the dead handler is gone and the record
ignores it. JaCoCo's missing counter field and the Go report paths
were split onto lines the coverage report records. A callback stored
in a binding or passed to new stays inside its function, and an npm
coverage script does not install Vitest. mutator --mutate-all on the
changed Python files: 709 killed, 0 survived, 0 uncovered.

Co-authored-by: Robert C. Martin <[email protected]>
This commit is contained in:
Cursor Agent
2026-11-26 00:11:55 +00:00
co-authored by Robert C. Martin
parent c0ba1e13ba
commit 8e491a636a
5 changed files with 67 additions and 12 deletions
+7
View File
@@ -58,6 +58,13 @@ def test_lcov_branch_records_override_line_hits():
assert bundle.percent_for(scored) == 50.0
def test_a_branch_count_that_is_not_a_number_is_ignored():
text = "SF:src/demo/app.ts\nDA:3,1\nBRDA:3,0,0,nope\nend_of_record\n"
parsed = parse_lcov(text)["src/demo/app.ts"]
assert parsed[3] == (1, 1)
assert 3 not in parsed.branches
def test_a_branchless_span_keeps_line_coverage():
text = "SF:src/demo/app.ts\nDA:2,1\nDA:3,0\nBRDA:8,0,0,1\nBRDA:8,0,1,0\nend_of_record\n"
bundle = CoverageBundle(lcov=parse_lcov(text))