Struct proptest::test_runner::MapFailurePersistence [−][src]
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<[u8; 16]>>
Backing map, keyed by source_file.
Trait Implementations
impl Clone for MapFailurePersistence
[src]
impl Clone for MapFailurePersistence
fn clone(&self) -> MapFailurePersistence
[src]
fn clone(&self) -> MapFailurePersistence
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for MapFailurePersistence
[src]
impl Debug for MapFailurePersistence
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for MapFailurePersistence
[src]
impl Default for MapFailurePersistence
fn default() -> MapFailurePersistence
[src]
fn default() -> MapFailurePersistence
Returns the "default value" for a type. Read more
impl PartialEq for MapFailurePersistence
[src]
impl PartialEq for MapFailurePersistence
fn eq(&self, other: &MapFailurePersistence) -> bool
[src]
fn eq(&self, other: &MapFailurePersistence) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MapFailurePersistence) -> bool
[src]
fn ne(&self, other: &MapFailurePersistence) -> bool
This method tests for !=
.
impl FailurePersistence for MapFailurePersistence
[src]
impl FailurePersistence for MapFailurePersistence
fn load_persisted_failures(
&self,
source_file: Option<&'static str>
) -> Vec<[u8; 16]>
[src]
fn load_persisted_failures(
&self,
source_file: Option<&'static str>
) -> Vec<[u8; 16]>
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. Read more
fn save_persisted_failure(
&mut self,
source_file: Option<&'static str>,
seed: [u8; 16],
_shrunken_value: &Debug
)
[src]
fn save_persisted_failure(
&mut self,
source_file: Option<&'static str>,
seed: [u8; 16],
_shrunken_value: &Debug
)
Store a new failure-generating seed associated with the given source_file
.
ⓘImportant traits for Box<R>fn box_clone(&self) -> Box<FailurePersistence>
[src]
fn box_clone(&self) -> Box<FailurePersistence>
Delegate method for producing a trait object usable with Clone
fn eq(&self, other: &FailurePersistence) -> bool
[src]
fn eq(&self, other: &FailurePersistence) -> bool
Equality testing delegate required due to constraints of trait objects.
fn as_any(&self) -> &Any
[src]
fn as_any(&self) -> &Any
Assistant method for trait object comparison.
Auto Trait Implementations
impl Send for MapFailurePersistence
impl Send for MapFailurePersistence
impl Sync for MapFailurePersistence
impl Sync for MapFailurePersistence