Skip to main content

Crate forge

Crate forge 

Source
Expand description

Forge is a fast and flexible Ethereum testing framework.

Re-exportsยง

pub(crate) use foundry_wallets as _; ๐Ÿ”’ aws-kms or gcp-kms or turnkey
pub use multi_runner::MultiContractRunner;
pub use multi_runner::MultiContractRunnerBuilder;

Modulesยง

args
brutalizer
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.
hardforks
EVM hardfork definitions for Foundry.
inspectors
EVM inspectors.
multi_runner
Forge test runner for multiple contracts.
mutation
opts
progress ๐Ÿ”’
Progress bars for the test run.
result
Test outcomes.
runner ๐Ÿ”’
The Forge test runner.
sandbox ๐Ÿ”’
Temporary copies of a project where Forge builds and runs generated tests.
symbolic_minimizer ๐Ÿ”’
symbolic_regression ๐Ÿ”’
traces
foundry-evm-traces
workspace
Shared utilities for creating isolated project workspaces.

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
The spec, runtime version and block an EVM is built with.
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ยง

EVM_THREAD_STACK_SIZE
Stack size of the threads that run EVM executions.
FOUNDRY_LOCK

Traitsยง

TestFilter
Test filter.

Type Aliasesยง

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