Reads a mutation-testing-elements report (Mutare 0.5.1, Stryker, or our own export) as
one side of a comparison (mix juggernaut.compare --mutare, design notes §3;
deps:mutation-testing-elements).
Statuses map to ours: Killed → killed (Timeout → killed, kind timeout),
Survived, NoCoverage, Ignored, CompileError → compile_error, RuntimeError →
harness_error, Pending → pending. A Killed mutant with a statusReason is
imported as killed but flagged in doubt: Mutare writes one when the partition the mutant
ran on failed with no mutant active. A kill in our own export keeps its test lane
(juggernaut.test_lane); a kill from any other tool has none.
A report holding Pending mutants was written before its run finished, so it is
refused unless allow_pending: true. Mutant ids in such reports are run-local, so
entries carry no key; Juggernaut.Compare pairs them by location. Nothing from the
report becomes an atom.
Summary
Functions
Reads the report at path. Options: allow_pending (default false).
The comparison side of a decoded report, labelled label.
Functions
@spec read(Path.t(), keyword()) :: {:ok, Juggernaut.Compare.side()} | {:error, Juggernaut.Error.t()}
Reads the report at path. Options: allow_pending (default false).
@spec side(term(), String.t(), keyword()) :: {:ok, Juggernaut.Compare.side()} | {:error, Juggernaut.Error.t()}
The comparison side of a decoded report, labelled label.