cast::fuzz::strategies

Function fuzz_calldata

pub fn fuzz_calldata(
    func: Function,
    fuzz_fixtures: &FuzzFixtures,
) -> impl Strategy<Value = Bytes>
Expand description

Given a function, it returns a strategy which generates valid calldata for that function’s input types, following declared test fixtures.