[−][src]Struct proptest::test_runner::MapFailurePersistence
Failure persistence option that loads and saves seeds in memory
on the heap. This may be useful when accumulating test failures
across multiple TestRunner
instances for external reporting
or batched persistence.
Fields
map: BTreeMap<&'static str, BTreeSet<PersistedSeed>>
Backing map, keyed by source_file.
Trait Implementations
impl FailurePersistence for MapFailurePersistence
[src]
fn load_persisted_failures2(
&self,
source_file: Option<&'static str>
) -> Vec<PersistedSeed>
[src]
&self,
source_file: Option<&'static str>
) -> Vec<PersistedSeed>
fn save_persisted_failure2(
&mut self,
source_file: Option<&'static str>,
seed: PersistedSeed,
_shrunken_value: &dyn Debug
)
[src]
&mut self,
source_file: Option<&'static str>,
seed: PersistedSeed,
_shrunken_value: &dyn Debug
)
fn box_clone(&self) -> Box<dyn FailurePersistence>
[src]
fn eq(&self, other: &dyn FailurePersistence) -> bool
[src]
fn as_any(&self) -> &dyn Any
[src]
fn load_persisted_failures(
&self,
source_file: Option<&'static str>
) -> Vec<[u8; 16]>
[src]
&self,
source_file: Option<&'static str>
) -> Vec<[u8; 16]>
Deprecated
Use load_persisted_failures2
instead. Read more
fn save_persisted_failure(
&mut self,
source_file: Option<&'static str>,
seed: [u8; 16],
shrunken_value: &dyn Debug
)
[src]
&mut self,
source_file: Option<&'static str>,
seed: [u8; 16],
shrunken_value: &dyn Debug
)
Deprecated
Use save_persisted_failures2
instead. Read more
impl Debug for MapFailurePersistence
[src]
impl PartialEq<MapFailurePersistence> for MapFailurePersistence
[src]
fn eq(&self, other: &MapFailurePersistence) -> bool
[src]
fn ne(&self, other: &MapFailurePersistence) -> bool
[src]
impl Clone for MapFailurePersistence
[src]
fn clone(&self) -> MapFailurePersistence
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for MapFailurePersistence
[src]
fn default() -> MapFailurePersistence
[src]
Auto Trait Implementations
impl Send for MapFailurePersistence
impl Sync for MapFailurePersistence
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom 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 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<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,