Answer prose round 1: 0 🔴, 6 🟡 (0 misread); docstrings and a fixture's comment say what the code does
CI / tests (pull_request) Has been cancelled

This commit is contained in:
2026-11-23 22:31:03 +01:00
parent fe6d119183
commit 2aa7b7399a
6 changed files with 20 additions and 15 deletions
+2 -2
View File
@@ -63,7 +63,7 @@ def statuses(results: str) -> dict[str, str]:
class Change(NamedTuple):
"""The source lines a mutant changes: the number of the first, those lines as the source has them, and what the mutant has in their place."""
"""The source lines a mutant changes: the number of the first, those lines as the source has them, and what the mutant has in their place. Where it only adds lines, the number is that of the line they go in before."""
line: int
was: tuple[str, ...]
@@ -73,7 +73,7 @@ class Change(NamedTuple):
def mutated_lines(source: str, copy: str, key: str, number: int) -> Change | None:
"""The source lines a mutant changes; None where the mutants/ copy lacks the mutant, or holds an original unlike the source.
A mutant is a changed copy of the original, so the lines before the first that differs, and those after the last, sit at the same offsets from the source function's def."""
A mutant is a changed copy of the original. The lines before the first that differs sit at the same offsets from the source function's def, and those after the last at the same offsets from its end."""
module, copied = parsed(source), parsed(copy)
if module is None or copied is None:
return None