[][src]Struct bolero::RngEngine

pub struct RngEngine {
    pub iterations: usize,
    pub max_len: usize,
    pub seed: u64,
    pub driver_mode: Option<DriverMode>,
}

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: usizemax_len: usizeseed: u64driver_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]

type Output = ()

impl PartialEq<RngEngine> for RngEngine[src]

impl StructuralPartialEq for RngEngine[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,