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§

Required Methods§

source

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

Provide a slice of the test input

source

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.

Implementations on Foreign Types§

source§

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

§

type Driver = ByteSliceDriver<'a>

source§

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

source§

fn with_driver<F: FnMut(&mut Self::Driver) -> Output>( &mut self, f: &mut F ) -> Output

Implementors§

source§

impl<'a, Output> TestInput<Output> for ByteSliceTestInput<'a>