std :: test::fuzz
Struct std::FuzzTarget
struct FuzzTarget {
fn void([]const unsigned char) func;
unsigned long seed;
unsigned long iters;
}Fields
the target, called with each input
PRNG seed (set before run())
number of mutations to try
Methods
§
static struct FuzzTarget new(fn void([]const unsigned char) func, unsigned long iters)source · definitionA fuzz target over func with a default seed and iters mutations.
Run the fuzzer: start from corpus and apply iters random mutations.
Crashes/panics in func are not caught; they surface as normal crashes.