pub struct RetryResult {
pub original: TestRunResult,
pub attempts: Vec<RetryAttempt>,
pub final_result: TestRunResult,
pub total_attempts: u32,
}Expand description
Aggregated result of all retry attempts for a test run.
Fields§
§original: TestRunResultOriginal (first) run result
attempts: Vec<RetryAttempt>Results of each retry attempt
final_result: TestRunResultFinal merged result after all retries
total_attempts: u32Total number of attempts (including original)
Implementations§
Source§impl RetryResult
impl RetryResult
Sourcepub fn tests_fixed(&self) -> usize
pub fn tests_fixed(&self) -> usize
How many tests were fixed by retries.
Sourcepub fn all_passed(&self) -> bool
pub fn all_passed(&self) -> bool
Whether all tests pass after retries.
Sourcepub fn had_effect(&self) -> bool
pub fn had_effect(&self) -> bool
Whether retries changed the outcome.
Trait Implementations§
Source§impl Clone for RetryResult
impl Clone for RetryResult
Source§fn clone(&self) -> RetryResult
fn clone(&self) -> RetryResult
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 moreAuto Trait Implementations§
impl Freeze for RetryResult
impl RefUnwindSafe for RetryResult
impl Send for RetryResult
impl Sync for RetryResult
impl Unpin for RetryResult
impl UnsafeUnpin for RetryResult
impl UnwindSafe for RetryResult
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