[−][src]Struct bolero::RngEngine
Test engine implementation using a RNG.
The inputs will only be derived from the seed
field.
As such, the quality of the inputs may not be high
enough to find edge cases.
Fields
iterations: usize
max_len: usize
seed: u64
driver_mode: Option<DriverMode>
Implementations
impl RngEngine
[src]
pub fn new(location: TargetLocation) -> RngEngine
[src]
Create a new RngEngine
pub fn with_iterations(self, iterations: usize) -> RngEngine
[src]
Set the number of test iterations
pub fn with_max_len(self, max_len: usize) -> RngEngine
[src]
Set the maximum length of a test input
pub fn with_seed(self, seed: u64) -> RngEngine
[src]
Set the seed for the RNG implementation
pub fn with_driver_mode(self, driver_mode: DriverMode) -> RngEngine
[src]
Set the driver mode for the engine
Trait Implementations
impl Clone for RngEngine
[src]
impl Copy for RngEngine
[src]
impl Default for RngEngine
[src]
impl<T> Engine<T> for RngEngine where
T: Test,
<T as Test>::Value: 'static,
<T as Test>::Value: Debug,
<T as Test>::Value: Send,
[src]
T: Test,
<T as Test>::Value: 'static,
<T as Test>::Value: Debug,
<T as Test>::Value: Send,
type Output = ()
fn set_driver_mode(&mut self, mode: DriverMode)
[src]
fn run(self, test: T) -> <RngEngine as Engine<T>>::Output
[src]
impl PartialEq<RngEngine> for RngEngine
[src]
impl StructuralPartialEq for RngEngine
[src]
Auto Trait Implementations
impl RefUnwindSafe for RngEngine
impl Send for RngEngine
impl Sync for RngEngine
impl Unpin for RngEngine
impl UnwindSafe for RngEngine
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,