Module fuzzcheck::mutators [−][src]
Expand description
This crate provides a range of mutators that can be used to run structure-aware fuzz tests using the fuzzcheck crate. It also provides the DefaultMutator trait, which assigns a default mutator to a type:
use fuzzcheck::DefaultMutator; let mutator = <Vec<Vec<Option<Box<u16>>>>>::default_mutator();
The following procedural macros are provided:
#[derive(DefaultMutator)]creates a mutator for a non-recursivestructorenumand makes it its default mutator.make_mutator! { .. }creates a mutator for an arbitrarystructorenum. It can be parameterized to do more than what#[derive(DefaultMutator)]allows.make_basic_tuple_mutator!(N)creates a mutator for tuples ofNelements. For small values ofN, these mutators are already available in thetuplesmodule
This crate provides grammar-based string mutators.
Modules
Macros
Make a mutator for a custom type, optionally making it the type’s default mutator. The syntax is as follows: