[][src]Trait bolero_engine::TestInput

pub trait TestInput<Output> {
    type Driver: Driver + RefUnwindSafe;
    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; }

Associated Types

Loading content...

Required methods

fn with_slice<F: FnMut(&[u8]) -> Output>(&mut self, f: &mut F) -> Output

Provide a slice of the test input

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.

Loading content...

Implementations on Foreign Types

impl<'a, Output> TestInput<Output> for &'a [u8][src]

type Driver = ByteSliceDriver<'a>

Loading content...

Implementors

impl<'a, Output> TestInput<Output> for ByteSliceTestInput<'a>[src]

type Driver = ByteSliceDriver<'a>

Loading content...