[][src]Trait bolero::Test

pub trait Test {
    type Value;
    fn test<T>(&mut self, input: &mut T) -> Result<bool, Error>
    where
        T: TestInput<Result<bool, Error>>
;
fn generate_value<T>(&self, input: &mut T) -> Self::Value
    where
        T: TestInput<Self::Value>
; fn shrink(
        &mut self,
        input: Vec<u8>,
        seed: Option<u64>,
        driver_mode: Option<DriverMode>
    ) -> Option<TestFailure<Self::Value>> { ... } }

Associated Types

type Value

Loading content...

Required methods

fn test<T>(&mut self, input: &mut T) -> Result<bool, Error> where
    T: TestInput<Result<bool, Error>>, 

fn generate_value<T>(&self, input: &mut T) -> Self::Value where
    T: TestInput<Self::Value>, 

Loading content...

Provided methods

fn shrink(
    &mut self,
    input: Vec<u8>,
    seed: Option<u64>,
    driver_mode: Option<DriverMode>
) -> Option<TestFailure<Self::Value>>

Loading content...

Implementations on Foreign Types

impl<F, G, Ret> Test for GeneratorTest<F, G> where
    F: RefUnwindSafe + FnMut(<G as ValueGenerator>::Output) -> Ret,
    G: RefUnwindSafe + ValueGenerator,
    Ret: IntoTestResult,
    <G as ValueGenerator>::Output: RefUnwindSafe
[src]

type Value = <G as ValueGenerator>::Output

Loading content...

Implementors

impl<F, Ret> Test for F where
    F: RefUnwindSafe + FnMut(&[u8]) -> Ret,
    Ret: IntoTestResult
[src]

type Value = SliceDebug<Vec<u8>>

Loading content...