Expand description
The dynamic half of mutation testing: the runner protocol, the embedded companion, the transport, the scheduler and the result model.
The static half (selection, the test map, pruning, ranking and the
instrumented code) is fallow_engine::mutation. The entry points are
crate::run_mutation and crate::plan_mutation.
Structs§
- Mutation
Replay Options - Options of
crate::replay_mutation: one export called on the original and on one mutant. - Mutation
RunOptions - Options of
crate::run_mutationandcrate::plan_mutation. - Mutation
Witness Store - The cached witnesses of a project, read once for a
tasksbatch.
Enums§
- Mutation
Progress - A phase event of a mutation run, for a caller that shows progress.
- Mutation
RunScope - The code that a mutation run mutates.
- Operator
- One mutation operator.
- Record
Args Mode - How a run records the arguments of the changed exported functions in its dry run. The values stay in the gitignored cache directory.
Constants§
- MAX_
VERDICT_ INPUT_ BYTES - The largest verdict document that the join reads.
Functions§
- apply_
mutation_ verdicts - Applies a verdict document to
report. - baseline_
blocked_ run_ error - The error of a run in which no mutant got a test result while tests failed with no active mutant.
- last_
mutation_ report_ path - The path of the saved report of the last run of the project.
- mutation_
witness_ store - The cached witnesses of the project of
analysis.Nonewhen the config cannot load. - remove_
finished_ mutation_ journal - Removes the outcome journal of the project when
reportis complete, and returns true when it removed a journal. Call it after the report is saved: the saved report then holds each result. A partial or failed run keeps the journal, so--resumecan continue it. A run that started no test runner (runneris absent) did not write or check the journal, so the journal can belong to an interrupted run of another scope, and it stays. The journal is removed only when this run wrote it: a newer run of the project can own the journal file by now. - save_
last_ mutation_ report - Saves the JSON
reportof a run as the last report of the project, and returns its path. The write goes to a temporary file first, so a reader never sees half a report. - split_
control_ run_ failure - Splits the message of a baseline failure from a control run or from the
dry run of a restarted companion into its fixed reason and the test error
after it. Gives
Nonefor another message or for a reason with no test error. - validate_
mutation_ verdicts - Checks a verdict document without a report.
Type Aliases§
- Mutation
Progress Sink - Receives the
MutationProgressevents of a run. The scheduler sends the mutant events from its worker threads.