Parse each mutants/ copy once when reporting mutmut's mutants, and kill more survivors with tests of by_folder, the in-diff tools' folder and their start failures

This commit is contained in:
2026-11-11 20:19:02 +01:00
parent 4c9bc080bb
commit 11804ac6aa
4 changed files with 79 additions and 28 deletions
+2 -1
View File
@@ -176,7 +176,8 @@ def not_killed(folder: Folder, found: dict[str, str], copy: str) -> tuple[list[s
copies: dict[str, str] = {}
shown: list[tuple[str, int, str]] = []
counted = 0
for name, status in found.items():
# Sorted by name, a file's mutants come one after another, so mutated_line parses its copy once.
for name, status in sorted(found.items()):
hit = named(name, list(folder.files))
if hit is None or hit[1] not in folder.keys[hit[0]]:
continue