Trait bolero_engine::TestInput
source · pub trait TestInput<Output> {
type Driver: Driver + RefUnwindSafe;
// Required methods
fn with_slice<F: FnMut(&[u8]) -> Output>(&mut self, f: &mut F) -> Output;
fn with_driver<F: FnMut(&mut Self::Driver) -> Output>(
&mut self,
f: &mut F
) -> Output;
}
Required Associated Types§
type Driver: Driver + RefUnwindSafe
Required Methods§
sourcefn with_slice<F: FnMut(&[u8]) -> Output>(&mut self, f: &mut F) -> Output
fn with_slice<F: FnMut(&[u8]) -> Output>(&mut self, f: &mut F) -> Output
Provide a slice of the test input
sourcefn with_driver<F: FnMut(&mut Self::Driver) -> Output>(
&mut self,
f: &mut F
) -> Output
fn with_driver<F: FnMut(&mut Self::Driver) -> Output>( &mut self, f: &mut F ) -> Output
Provide a test driver for the test input
Note: Drivers are used with bolero_generator::ValueGenerator
implementations.
Object Safety§
This trait is not object safe.