Skip to main content

Crate forge

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
cmd
forge subcommands.
core
foundry-evm-core
coverage
Coverage reports.
executors
EVM executor abstractions, which can execute calls.
fuzz
foundry-evm-fuzz
gas_report
Gas reports.
inspectors
EVM inspectors.
lockfile 🔒
foundry.lock handler type.
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

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
EvmEnv
Container type that holds both the configuration and block environment for EVM execution.
Lockfile
A lockfile handler that keeps track of the dependencies and their current state.

Enums§

DepIdentifier
Identifies whether a dependency (submodule) is referenced by a branch, tag or rev (commit hash).

Constants§

FOUNDRY_LOCK

Traits§

EthInspectorExt
Combined trait: Inspector<Context<...>> + FoundryInspectorExt.
FoundryInspectorExt
Foundry-specific inspector methods, decoupled from any particular EVM context type.
TestFilter
Test filter.

Type Aliases§

DepMap
A type alias for a HashMap of dependencies keyed by relative path to the submodule dir.