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
forgesubcommands.- core
- foundry-evm-core
- coverage
- Coverage reports.
- executors
- EVM executor abstractions, which can execute calls.
- fuzz
- foundry-evm-fuzz
- gas_
report - Gas reports.
- hardforks
- EVM hardfork definitions for Foundry.
- 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§
- Contract
Runner - 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§
Traits§
- Foundry
Inspector Ext - A combined inspector trait that integrates revm’s
Inspectorwith Foundry-specific extensions. Automatically implemented for any type that implements bothInspector<CTX>andInspectorExt. - Inspector
Ext - Foundry-specific inspector methods, decoupled from any particular EVM context type.
- Test
Filter - Test filter.
Type Aliases§
- DepMap
- A type alias for a HashMap of dependencies keyed by relative path to the submodule dir.