[−][src]Struct bolero::TestTarget
Configuration for a fuzz target
Methods
impl<Engine> TestTarget<SliceGenerator, Engine>
[src]
pub fn new(engine: Engine) -> TestTarget<SliceGenerator, Engine>
[src]
Create a TestTarget
for a given file
impl<G, Engine> TestTarget<G, Engine>
[src]
pub fn with_generator<NewG: ValueGenerator>(
self,
generator: NewG
) -> TestTarget<NewG, Engine>
[src]
self,
generator: NewG
) -> TestTarget<NewG, Engine>
Set the value generator for the TestTarget
pub fn with_type<T: TypeGenerator>(
self
) -> TestTarget<TypeValueGenerator<T>, Engine>
[src]
self
) -> TestTarget<TypeValueGenerator<T>, Engine>
Set the type generator for the TestTarget
impl<G: ValueGenerator, Engine> TestTarget<G, Engine>
[src]
pub fn map<F: Fn(G::Output) -> T, T>(
self,
map: F
) -> TestTarget<MapGenerator<G, F>, Engine>
[src]
self,
map: F
) -> TestTarget<MapGenerator<G, F>, Engine>
Map the value of the generator
pub fn and_then<F: Fn(G::Output) -> T, T: ValueGenerator>(
self,
map: F
) -> TestTarget<AndThenGenerator<G, F>, Engine>
[src]
self,
map: F
) -> TestTarget<AndThenGenerator<G, F>, Engine>
Map the value of the generator with a new generator
pub fn filter<F: Fn(&G::Output) -> bool>(
self,
filter: F
) -> TestTarget<FilterGenerator<G, F>, Engine>
[src]
self,
filter: F
) -> TestTarget<FilterGenerator<G, F>, Engine>
Filter the value of the generator
pub fn filter_map<F: Fn(G::Output) -> Option<T>, T>(
self,
filter_map: F
) -> TestTarget<FilterMapGenerator<G, F>, Engine>
[src]
self,
filter_map: F
) -> TestTarget<FilterMapGenerator<G, F>, Engine>
Filter the value of the generator and map it to something else
pub fn with_driver_mode(self, mode: DriverMode) -> Self
[src]
Set the driver mode for the fuzz target
impl<G> TestTarget<G, RngEngine>
[src]
pub fn with_iterations(self, iterations: usize) -> Self
[src]
Set the number of iterations executed
pub fn with_max_len(self, max_len: usize) -> Self
[src]
Set the maximum length of the generated bytes
impl<G, E> TestTarget<G, E> where
G: ValueGenerator,
[src]
G: ValueGenerator,
pub fn for_each<F>(self, test: F) -> E::Output where
E: Engine<GeneratorTest<F, G>>,
GeneratorTest<F, G>: Test,
[src]
E: Engine<GeneratorTest<F, G>>,
GeneratorTest<F, G>: Test,
Iterate over all of the inputs and check the TestTarget
impl<E> TestTarget<SliceGenerator, E>
[src]
pub fn for_each<T, Ret>(self, test: T) -> E::Output where
E: Engine<T>,
T: Test + FnMut(&[u8]) -> Ret,
[src]
E: Engine<T>,
T: Test + FnMut(&[u8]) -> Ret,
Iterate over all of the inputs and check the TestTarget
Auto Trait Implementations
impl<Generator, Engine> RefUnwindSafe for TestTarget<Generator, Engine> where
Engine: RefUnwindSafe,
Generator: RefUnwindSafe,
Engine: RefUnwindSafe,
Generator: RefUnwindSafe,
impl<Generator, Engine> Send for TestTarget<Generator, Engine> where
Engine: Send,
Generator: Send,
Engine: Send,
Generator: Send,
impl<Generator, Engine> Sync for TestTarget<Generator, Engine> where
Engine: Sync,
Generator: Sync,
Engine: Sync,
Generator: Sync,
impl<Generator, Engine> Unpin for TestTarget<Generator, Engine> where
Engine: Unpin,
Generator: Unpin,
Engine: Unpin,
Generator: Unpin,
impl<Generator, Engine> UnwindSafe for TestTarget<Generator, Engine> where
Engine: UnwindSafe,
Generator: UnwindSafe,
Engine: UnwindSafe,
Generator: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,