mirror of
https://github.com/unclebob/mutator.git
synced 2026-11-26 18:58:50 +00:00
crapper now reports a region as (start, end, count). The join still unpacked (line, count), so the Swift coverage tests crashed, and a mutation on the last line of a covered region was left uncovered. line_covered decides each line. A nested region with count zero stays uncovered, and a line in no region stays uncovered. An xccov summary is unchanged. The file-wide mutator run then found six older survivors in the path join. A trailing slash still marks the file, the first of two equal paths keeps its hits, and a shorter prefix beats a shorter suffix. Comparisons that could not change a result are gone. Proved by pytest (125 passed, 1 skipped; swift is not installed). crapper's worst score besides parse_args is _prepare_coverage at 9.4; _swift_hits is 6.0. dryer --threshold 0.8 reports no candidates. mutator on src/mutator/coverage.py killed 49, with 0 survived and 0 uncovered. Co-authored-by: Robert C. Martin <[email protected]>