Skip to main content

Module runner

Module runner 

Source
Expand description

Parallel mutation testing runner.

This module provides high-performance parallel execution of mutation tests. Each mutant is tested in an isolated temporary workspace to enable concurrent execution.

Structsยง

MutantTestResult
Result of testing a single mutant.
MutationBatchResult
Result of a parallel mutation batch.
MutationEvmConfig
Immutable EVM inputs shared by the baseline and every mutation worker.
SharedMutationState
Tracks progress, cancellation, and timed-out workers across parallel workers.

Constantsยง

MUTATION_STACK_SIZE ๐Ÿ”’

Functionsยง

apply_mutation ๐Ÿ”’
Apply a mutation to a source file.
compile_and_test ๐Ÿ”’
Compiles and tests a mutant using the campaignโ€™s already selected EVM and remote backend.
run_compile_and_test_with_timeout ๐Ÿ”’
Run compile_and_test on a worker thread and wait at most budget for it to complete. Returns TimedOut on overrun and Invalid on infrastructure errors / panics.
run_mutations_parallel_with_progress
Run mutation tests in parallel with optional progress display.
test_single_mutant_isolated ๐Ÿ”’
Test a single mutant in an isolated temporary workspace.
with_mutation_test_pool ๐Ÿ”’