Skip to main content

Crate foundry_evm_fuzz

Crate foundry_evm_fuzz 

Source
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ยง

BaseCounterExample
BasicTxDetails
Details of a transaction generated by fuzz strategy for fuzzing a target.
CallDetails
Call details of a transaction generated to fuzz.
FuzzCase
Data of a single fuzz test case
FuzzConfig
Configuration for how a proptest test should be run.
FuzzFixtures
Fixtures to be used for fuzz tests.
FuzzRunMetadata
Metadata needed to reproduce a fuzz run.
FuzzTestResult
The outcome of a fuzz test
FuzzedCases
Container type for all successful test cases
Fuzzer
An inspector that can fuzz and collect data for that effect.
ObservedCall
A sub-call observed by the Fuzzer inspector.
Reason
The reason for why something, such as a generated value, was rejected.

Enumsยง

CounterExample
FuzzError
Possible errors when running fuzz tests

Functionsยง

fixture_name
Extracts fixture name from a function name. For example: fixtures defined in fixture_Owner function will be applied for owner parameter.
normalize_fixture ๐Ÿ”’
Normalize fixture parameter name, for example _Owner to owner.