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
CI / tests (pull_request) Has been cancelled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user