Skip to main content

Module executors

Module executors 

Source
Expand description

EVM executor abstractions, which can execute calls.

Used for running tests, scripts, and interacting with the inner backend which holds the state.

Re-exportsยง

pub use fuzz::FuzzedExecutor;
pub use invariant::InvariantExecutor;

Modulesยง

ITest
Module containing a contractโ€™s types and functions.
builder ๐Ÿ”’
corpus ๐Ÿ”’
Corpus management for parallel fuzzing with coverage-guided mutation.
corpus_io ๐Ÿ”’
Shared helpers for reading on-disk corpus directories.
fuzz
invariant
sancov ๐Ÿ”’
showmap ๐Ÿ”’
AFL-afl-showmap-style corpus replay.
trace ๐Ÿ”’

Structsยง

CallResult
The result of a call.
DeployResult
The result of a deployment.
DynamicTargetCtx
Refs used during corpus replay to register contracts deployed mid-sequence as fuzz targets, mirroring the campaign loop so follow-up calls into them arenโ€™t dropped by can_replay_tx.
EarlyExit
Helper struct to enable early exit behavior: when one test fails or run is interrupted, all other tests stop early.
ExecutionErr
Represents the context after an execution error occurred.
Executor
EVM executor.
ExecutorBuilder
The builder that allows to configure an evm Executor which a stack of optional [revm::Inspector]s, such as Cheatcodes.
FuzzTestTimer
Timer for a fuzz test.
RawCallResult
The result of a raw call.
ShowmapOpts
Per-replay options.
ShowmapStats
Stats returned from a single trial replay.
TracingExecutor
A default executor with tracing enabled

Enumsยง

EvmError
ShowmapDomain
Which coverage bitmap(s) to dump.

Constantsยง

DURATION_BETWEEN_METRICS_REPORT ๐Ÿ”’

Functionsยง

collect_debug_bytecodes ๐Ÿ”’
convert_executed_result ๐Ÿ”’
Converts the data aggregated in the inspector and call to a RawCallResult
replay_corpus_to_showmap
Replay every corpus entry under corpus_dir and emit showmap files.