[−][src]Trait proptest::test_runner::FailurePersistence
Provides external persistence for historical test failures by storing seeds.
Required Methods
fn load_persisted_failures(
&self,
source_file: Option<&'static str>
) -> Vec<[u8; 16]>
&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.
fn save_persisted_failure(
&mut self,
source_file: Option<&'static str>,
seed: [u8; 16],
shrunken_value: &dyn Debug
)
&mut self,
source_file: Option<&'static str>,
seed: [u8; 16],
shrunken_value: &dyn Debug
)
Store a new failure-generating seed associated with the given source_file
.
fn box_clone(&self) -> Box<dyn FailurePersistence>
Delegate method for producing a trait object usable with Clone
fn eq(&self, other: &dyn FailurePersistence) -> bool
Equality testing delegate required due to constraints of trait objects.
fn as_any(&self) -> &dyn Any
Assistant method for trait object comparison.
Trait Implementations
impl<'a, 'b> PartialEq<dyn FailurePersistence + 'b> for dyn FailurePersistence + 'a
[src]
impl<'a, 'b> PartialEq<dyn FailurePersistence + 'b> for dyn FailurePersistence + 'a
Implementors
impl FailurePersistence for FileFailurePersistence
[src]
impl FailurePersistence for FileFailurePersistence
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]>
fn save_persisted_failure(
&mut self,
source_file: Option<&'static str>,
seed: [u8; 16],
shrunken_value: &dyn Debug
)
[src]
fn save_persisted_failure(
&mut self,
source_file: Option<&'static str>,
seed: [u8; 16],
shrunken_value: &dyn Debug
)
fn box_clone(&self) -> Box<dyn FailurePersistence>
[src]
fn box_clone(&self) -> Box<dyn FailurePersistence>
fn eq(&self, other: &dyn FailurePersistence) -> bool
[src]
fn eq(&self, other: &dyn FailurePersistence) -> bool
fn as_any(&self) -> &dyn Any
[src]
fn as_any(&self) -> &dyn Any
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]>
fn save_persisted_failure(
&mut self,
source_file: Option<&'static str>,
seed: [u8; 16],
_shrunken_value: &dyn Debug
)
[src]
fn save_persisted_failure(
&mut self,
source_file: Option<&'static str>,
seed: [u8; 16],
_shrunken_value: &dyn Debug
)
fn box_clone(&self) -> Box<dyn FailurePersistence>
[src]
fn box_clone(&self) -> Box<dyn FailurePersistence>
fn eq(&self, other: &dyn FailurePersistence) -> bool
[src]
fn eq(&self, other: &dyn FailurePersistence) -> bool
fn as_any(&self) -> &dyn Any
[src]
fn as_any(&self) -> &dyn Any