Struct fuzzcheck::builder::FuzzerBuilder2 [−][src]
pub struct FuzzerBuilder2<F, M, V> where
F: Fn(&V) -> bool + 'static,
V: Clone,
M: Mutator<V>, { /* fields omitted */ }
Expand description
A fuzz-test builder that knows the function to fuzz-test and the mutator.
Use self.serializer(..)
to specify the serializer and obtain a FuzzerBuilder3
.
Implementations
pub fn serializer<S>(self, serializer: S) -> FuzzerBuilder3<F, M, V> where
S: Serializer<Value = V> + 'static,
pub fn serializer<S>(self, serializer: S) -> FuzzerBuilder3<F, M, V> where
S: Serializer<Value = V> + 'static,
Specify the serializer to use when saving the interesting test cases to the file system.
The serializer must implement the Serializer
trait. If you wish
to use serde
, you can use .serde_serializer()
as follows:
fuzzcheck::fuzz_test(foo)
.mutator(
/* .. */
)
.serde_serializer()
impl<F, M, V> FuzzerBuilder2<F, M, V> where
F: Fn(&V) -> bool,
V: Clone + Serialize + for<'e> Deserialize<'e> + 'static,
M: Mutator<V>,
impl<F, M, V> FuzzerBuilder2<F, M, V> where
F: Fn(&V) -> bool,
V: Clone + Serialize + for<'e> Deserialize<'e> + 'static,
M: Mutator<V>,
Specify SerdeSerializer
as the serializer to use when saving the interesting test cases to the file system.