pub struct FailedSeeds(pub Vec<&'static str>);
Expand description
Persists all failed seeds to the source file.
Proptest generates nondeterministic tests in the sense that different seeds will be used in each run, this is intended because we expect the properties to hold for all possible inputs. So test flakes should be treated as test failures. This struct configures the containing proptest to log the seeds that caused test failures, please add all those seeds to the source file so that the test failure can be persisted.
Tuple Fields§
§0: Vec<&'static str>
Trait Implementations§
Source§impl Clone for FailedSeeds
impl Clone for FailedSeeds
Source§fn clone(&self) -> FailedSeeds
fn clone(&self) -> FailedSeeds
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FailedSeeds
impl Debug for FailedSeeds
Source§impl FailurePersistence for FailedSeeds
impl FailurePersistence for FailedSeeds
Source§fn load_persisted_failures2(
&self,
_source_file: Option<&'static str>,
) -> Vec<PersistedSeed>
fn load_persisted_failures2( &self, _source_file: Option<&'static str>, ) -> Vec<PersistedSeed>
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 moreSource§fn save_persisted_failure2(
&mut self,
source_file: Option<&'static str>,
seed: PersistedSeed,
shrunken_value: &dyn Debug,
)
fn save_persisted_failure2( &mut self, source_file: Option<&'static str>, seed: PersistedSeed, shrunken_value: &dyn Debug, )
Store a new failure-generating seed associated with the given
source_file
. Read moreSource§fn box_clone(&self) -> Box<dyn FailurePersistence>
fn box_clone(&self) -> Box<dyn FailurePersistence>
Delegate method for producing a trait object usable with
Clone
Source§fn eq(&self, other: &dyn FailurePersistence) -> bool
fn eq(&self, other: &dyn FailurePersistence) -> bool
Equality testing delegate required due to constraints of trait objects.
Source§impl PartialEq for FailedSeeds
impl PartialEq for FailedSeeds
impl StructuralPartialEq for FailedSeeds
Auto Trait Implementations§
impl Freeze for FailedSeeds
impl RefUnwindSafe for FailedSeeds
impl Send for FailedSeeds
impl Sync for FailedSeeds
impl Unpin for FailedSeeds
impl UnwindSafe for FailedSeeds
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)