mirror of
https://github.com/unclebob/crapper.git
synced 2026-11-26 18:18:49 +00:00
Kill the mutation survivors in the coverage runners.
The Swift fixes left the changed files with 33 survivors. Tests now distinguish an empty suffix, an equal path, a segment that starts on the function's last line, the shorter extra prefix, an equal report key that blocks a longer file, a blank candidate, a repeated source, form-html keys, a short llvm-cov segment, a Swift export that has a profile but no binary, and the quiet success paths for Java, Go, Rust, Python, Vitest, rustup, and a custom coverage command. Proved by mutator on runners.py and coverage.py: 432 killed, 0 survived, 0 uncovered. Co-authored-by: Robert C. Martin <[email protected]>
This commit is contained in:
co-authored by
Robert C. Martin
parent
7a0b1613f5
commit
7222b2b8e2
@@ -165,6 +165,8 @@ def test_load_bundle_merges_each_report(tmp_path):
|
||||
assert bundle.percent_for(function(start_line=3, end_line=4)) == 50.0
|
||||
assert bundle.go_profile is not None
|
||||
assert bundle.jacoco is not None
|
||||
assert "src/demo/core.clj" in bundle.form_html
|
||||
assert "index" not in bundle.form_html
|
||||
|
||||
|
||||
def _go_module(module_dir, module_line, profile_text):
|
||||
|
||||
Reference in New Issue
Block a user