Trait bolero_engine::Test
source · pub trait Test: Sized {
type Value;
// Required methods
fn test<T: TestInput<Result<bool, PanicError>>>(
&mut self,
input: &mut T
) -> Result<bool, PanicError>;
fn generate_value<T: TestInput<Self::Value>>(
&self,
input: &mut T
) -> Self::Value;
// Provided method
fn shrink(
&mut self,
input: Vec<u8>,
seed: Option<u64>,
options: &Options
) -> Option<TestFailure<Self::Value>> { ... }
}
Expand description
Trait for defining a test case
Required Associated Types§
Required Methods§
sourcefn test<T: TestInput<Result<bool, PanicError>>>(
&mut self,
input: &mut T
) -> Result<bool, PanicError>
fn test<T: TestInput<Result<bool, PanicError>>>( &mut self, input: &mut T ) -> Result<bool, PanicError>
Execute one test with the given input
Provided Methods§
Object Safety§
This trait is not object safe.