[][src]Struct proptest::test_runner::TestRunner

pub struct TestRunner { /* fields omitted */ }

State used when running a proptest test.

Methods

impl TestRunner
[src]

Create a fresh TestRunner with the given configuration.

Returns the RNG for this test run.

Create a new, independent but deterministic RNG from the RNG in this runner.

Returns the configuration of this runner.

Run test cases against f, choosing inputs via strategy.

If any failure cases occur, try to find a minimal failure case and report that. If invoking f panics, the panic is turned into a TestCaseError::Fail.

If failure persistence is enabled, all persisted failing cases are tested first. If a later non-persisted case fails, its seed is persisted before returning failure.

Returns success or failure indicating why the test as a whole failed.

Run one specific test case against this runner.

If the test fails, finds the minimal failing test case. If the test does not fail, returns whether it succeeded or was filtered out.

This does not honour the fork config, and will not be able to terminate the run if it runs for longer than timeout. However, if the test function returns but took longer than timeout, the test case will fail.

Update the state to account for a local rejection from whence, and return Ok if the caller should keep going or Err to abort.

Increment the counter of flat map regenerations and return whether it is still under the configured limit.

Trait Implementations

impl Debug for TestRunner
[src]

impl Display for TestRunner
[src]

impl Clone for TestRunner
[src]

Performs copy-assignment from source. Read more

impl Default for TestRunner
[src]

Equivalent to: TestRunner::new(Config::default()).

Auto Trait Implementations

impl Send for TestRunner

impl Sync for TestRunner

Blanket Implementations

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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