mutation.MutantResult

mutation.MutantResult(mutant, killed, detail)

The outcome of running the evaluations against one mutant.

Attributes

Name Type Description
mutant Mutant The mutant.
killed bool True if an evaluation failed or errored, or the run timed out.
detail str "3 failed", "error", "timeout" or "survived".

Examples

from spotregen.mutation import MutantResult, generate_mutants

mutant = generate_mutants("X = 1\n")[0]
print(MutantResult(mutant, True, "1 failed").killed)
True