Answer stability round 1: 1 🔴, 2 🟡 (0 misread); no outcomes file means no mutant, two tests use subTest, and a test's name fits its assertion

This commit is contained in:
2026-11-24 02:57:18 +01:00
parent 70fbc2a02d
commit b38e8a1931
9 changed files with 56 additions and 28 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ def run_cargo_mutants(top: str, base: str, paths: list[str], run: Run, git: Git,
def cargo_mutants_out(top: str, scratch: str, arguments: list[str], run: Run, jobs: int) -> pathlib.Path | Failure:
"""The `mutants.out` folder that `cargo mutants <arguments>`, which runs in top, writes in scratch, a folder in top."""
"""Run `cargo mutants <arguments>` in top, and return the `mutants.out` folder it writes. That folder is in scratch, which is a
folder in top."""
ran = run(["cargo", "mutants", *arguments, "--output", os.path.relpath(scratch, top), "--jobs", str(jobs)], top)
if isinstance(ran, Failure) or ran.code not in CARGO_FINISHED:
return ran if isinstance(ran, Failure) else failed("cargo mutants", ran)