Crate forge

Source
Expand description

Forge is a fast and flexible Ethereum testing framework.

Re-exports§

pub use multi_runner::MultiContractRunner;
pub use multi_runner::MultiContractRunnerBuilder;

Modules§

args
backend
Foundry’s main executor backend abstraction and implementation.
cmd
forge subcommands.
constants
coverage
Coverage reports.
decode
Various utilities to decode test results.
executors
EVM executor abstractions, which can execute calls.
fork
fuzz
foundry-evm-fuzz
gas_report
Gas reports.
inspectors
EVM inspectors.
multi_runner
Forge test runner for multiple contracts.
opts
progress 🔒
result
Test outcomes.
revm
Revm is a Rust EVM implementation.
runner 🔒
The Forge test runner.
traces
foundry-evm-traces
utils

Macros§

call_inspectors
Helper macro to call the same method on multiple inspectors without resorting to dynamic dispatch.

Structs§

ContractRunner
A type that executes all tests of a contract

Traits§

InspectorExt
An extension trait that allows us to add additional hooks to Inspector for later use in handlers.
TestFilter
Test filter.