Skip to main content

replay_corpus_to_showmap

Function replay_corpus_to_showmap 

Source
pub fn replay_corpus_to_showmap<FEN: FoundryEvmNetwork>(
    executor: &Executor<FEN>,
    corpus_dir: &Path,
    fuzzed_function: Option<&Function>,
    fuzzed_contracts: Option<&FuzzRunIdentifiedContracts>,
    dynamic: Option<&DynamicTargetCtx<'_>>,
    opts: &ShowmapOpts,
) -> Result<ShowmapStats>
Expand description

Replay every corpus entry under corpus_dir and emit showmap files.

fuzzed_function is set for stateless fuzz tests; fuzzed_contracts is set for invariant tests (txs are committed between calls in that case). dynamic lets invariant replay register contracts deployed mid-sequence so follow-up calls into them aren’t dropped.