Trait proptest::test_runner::FailurePersistence[][src]

pub trait FailurePersistence: Send + Sync + Debug {
    fn load_persisted_failures(
        &self,
        source_file: Option<&'static str>
    ) -> Vec<[u8; 16]>;
fn save_persisted_failure(
        &mut self,
        source_file: Option<&'static str>,
        seed: [u8; 16],
        shrunken_value: &Debug
    );
fn box_clone(&self) -> Box<FailurePersistence>;
fn eq(&self, other: &FailurePersistence) -> bool;
fn as_any(&self) -> &Any; }

Provides external persistence for historical test failures by storing seeds.

Required Methods

Important traits for Vec<u8>

Supply seeds associated with the given source_file that may be used by a TestRunner's random number generator in order to consistently recreate a previously-failing Strategy-provided value.

Store a new failure-generating seed associated with the given source_file.

Important traits for Box<W>

Delegate method for producing a trait object usable with Clone

Equality testing delegate required due to constraints of trait objects.

Assistant method for trait object comparison.

Trait Implementations

impl<'a, 'b> PartialEq<FailurePersistence + 'b> for FailurePersistence + 'a
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Implementors