Expand description
ยงfoundry-evm-fuzz
EVM fuzzing implementation using [proptest].
Re-exportsยง
pub(crate) use alloy_primitives::Address;๐pub(crate) use alloy_primitives::Bytes;๐pub(crate) use alloy_primitives::Log;๐pub(crate) use alloy_primitives::U256;๐pub(crate) use alloy_primitives::map::HashMap;๐pub use strategies::LiteralMaps;pub(crate) use DynSolValue;๐pub(crate) use JsonAbiExt;๐pub(crate) use Address;๐pub(crate) use Bytes;๐pub(crate) use Log;๐pub(crate) use U256;๐pub(crate) use HashMap;๐pub(crate) use calc;๐pub(crate) use contracts::ContractsByAddress;๐pub(crate) use foundry_evm_core::Breakpoints;๐pub(crate) use foundry_evm_coverage::HitMaps;๐pub(crate) use CallTraceArena;๐pub(crate) use SparsedTraceArena;๐pub(crate) use itertools::Itertools;๐pub(crate) use Deserialize;๐pub(crate) use Deserialize;๐pub(crate) use Serialize;๐pub(crate) use Serialize;๐pub(crate) use fmt;๐pub(crate) use sync::Arc;๐
Modulesยง
- error ๐
- Errors related to fuzz tests.
- inspector ๐
- invariant
- sequence
- Pure transaction-sequence generation and mutation primitives.
- strategies
Structsยง
- Base
Counter Example - Basic
TxDetails - Details of a transaction generated by fuzz strategy for fuzzing a target.
- Call
Details - Call details of a transaction generated to fuzz.
- Fuzz
Case - Data of a single fuzz test case
- Fuzz
Config - Configuration for how a proptest test should be run.
- Fuzz
Fixtures - Fixtures to be used for fuzz tests.
- Fuzz
RunMetadata - Metadata needed to reproduce a fuzz run.
- Fuzz
Test Result - The outcome of a fuzz test
- Fuzzed
Cases - Container type for all successful test cases
- Fuzzer
- An inspector that can fuzz and collect data for that effect.
- Observed
Call - A sub-call observed by the
Fuzzerinspector. - Reason
- The reason for why something, such as a generated value, was rejected.
Enumsยง
- Counter
Example - Fuzz
Error - Possible errors when running fuzz tests
Functionsยง
- fixture_
name - Extracts fixture name from a function name.
For example: fixtures defined in
fixture_Ownerfunction will be applied forownerparameter. - normalize_
fixture ๐ - Normalize fixture parameter name, for example
_Ownertoowner.