Skip to main content

resolve_mutate_paths

Function resolve_mutate_paths 

Source
fn resolve_mutate_paths(
    config: &Config,
    output: &ProjectCompileOutput<MultiCompiler>,
    mutation_config: &MutationRunConfig,
) -> Result<Vec<PathBuf>>
Expand description

Resolve which paths to mutate based on configuration.

Resolution order:

  1. Pick the base set of candidate files:
    • --mutate-path <GLOB> → all source files matching the glob, OR
    • explicit --mutate PATH... → those validated files, OR
    • default → every Solidity file under config.src.
  2. If --mutate-contract <REGEX> is set, intersect the base set with files that contain at least one contract whose name matches the regex. The per-file contract filter still re-applies inside the handler.