pub struct NonSuccessReruns {
pub kind: FlakyOrRerun,
pub runs: Vec<TestRerun>,
}Expand description
Reruns for a TestCaseStatus::NonSuccess test case.
This type bundles the list of reruns together with how they should be serialized
(<flakyFailure>/<flakyError> vs <rerunFailure>/<rerunError>).
For TestCaseStatus::Success, reruns are always serialized as <flakyFailure> or
<flakyError> and are stored directly in the flaky_runs field.
Fields§
§kind: FlakyOrRerunHow reruns are serialized in JUnit XML.
The default is FlakyOrRerun::Rerun (<rerunFailure>/<rerunError>).
Set to FlakyOrRerun::Flaky for <flakyFailure>/<flakyError>.
When runs is empty, no XML elements are emitted regardless of this value, so the
kind is unobservable and will not be preserved through a serialization roundtrip.
runs: Vec<TestRerun>The list of reruns.
Trait Implementations§
Source§impl Arbitrary for NonSuccessReruns
impl Arbitrary for NonSuccessReruns
Source§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = BoxedStrategy<NonSuccessReruns>
type Strategy = BoxedStrategy<NonSuccessReruns>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
Source§impl Clone for NonSuccessReruns
impl Clone for NonSuccessReruns
Source§fn clone(&self) -> NonSuccessReruns
fn clone(&self) -> NonSuccessReruns
Returns a duplicate 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 NonSuccessReruns
impl Debug for NonSuccessReruns
Source§impl Default for NonSuccessReruns
impl Default for NonSuccessReruns
Source§impl PartialEq for NonSuccessReruns
impl PartialEq for NonSuccessReruns
impl Eq for NonSuccessReruns
impl StructuralPartialEq for NonSuccessReruns
Auto Trait Implementations§
impl Freeze for NonSuccessReruns
impl RefUnwindSafe for NonSuccessReruns
impl Send for NonSuccessReruns
impl Sync for NonSuccessReruns
impl Unpin for NonSuccessReruns
impl UnwindSafe for NonSuccessReruns
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.