pub struct FlakeDecision {
pub is_flaky: bool,
pub e_value: f64,
pub threshold: f64,
pub observation_count: usize,
pub variance_estimate: f64,
pub warmed_up: bool,
}Expand description
Decision returned by the flake detector.
Fields§
§is_flaky: boolWhether the test is flagged as flaky.
e_value: f64Current cumulative e-value.
threshold: f64Threshold for flakiness (1/alpha).
observation_count: usizeNumber of observations so far.
variance_estimate: f64Current variance estimate.
warmed_up: boolWhether we have enough observations.
Implementations§
Source§impl FlakeDecision
impl FlakeDecision
Sourcepub fn should_fail(&self) -> bool
pub fn should_fail(&self) -> bool
Check if we should fail the test.
Trait Implementations§
Source§impl Clone for FlakeDecision
impl Clone for FlakeDecision
Source§fn clone(&self) -> FlakeDecision
fn clone(&self) -> FlakeDecision
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 FlakeDecision
impl Debug for FlakeDecision
Source§impl PartialEq for FlakeDecision
impl PartialEq for FlakeDecision
impl StructuralPartialEq for FlakeDecision
Auto Trait Implementations§
impl Freeze for FlakeDecision
impl RefUnwindSafe for FlakeDecision
impl Send for FlakeDecision
impl Sync for FlakeDecision
impl Unpin for FlakeDecision
impl UnwindSafe for FlakeDecision
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