pub enum CoverageHypothesis {
Determinism,
Completeness {
threshold: f64,
},
NoRegression {
baseline: f64,
},
MutationCorrelation {
expected_r: f64,
},
}Expand description
Coverage hypothesis types
Variants§
Determinism
H₀-COV-01: Coverage is deterministic across runs
Completeness
H₀-COV-02: All reachable blocks are covered (threshold %)
NoRegression
H₀-COV-03: No coverage regression from baseline
MutationCorrelation
H₀-COV-04: Coverage correlates with mutation score
Implementations§
Source§impl CoverageHypothesis
impl CoverageHypothesis
Sourcepub fn determinism() -> Self
pub fn determinism() -> Self
Create a determinism hypothesis
Sourcepub fn completeness(threshold: f64) -> Self
pub fn completeness(threshold: f64) -> Self
Create a completeness hypothesis
Sourcepub fn no_regression(baseline: f64) -> Self
pub fn no_regression(baseline: f64) -> Self
Create a no-regression hypothesis
Sourcepub fn mutation_correlation(expected_r: f64) -> Self
pub fn mutation_correlation(expected_r: f64) -> Self
Create a mutation correlation hypothesis
Sourcepub fn evaluate(&self, observations: &[f64]) -> NullificationResult
pub fn evaluate(&self, observations: &[f64]) -> NullificationResult
Evaluate the hypothesis against observed data
Returns a nullification result indicating whether the hypothesis should be rejected.
Trait Implementations§
Source§impl Clone for CoverageHypothesis
impl Clone for CoverageHypothesis
Source§fn clone(&self) -> CoverageHypothesis
fn clone(&self) -> CoverageHypothesis
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 CoverageHypothesis
impl RefUnwindSafe for CoverageHypothesis
impl Send for CoverageHypothesis
impl Sync for CoverageHypothesis
impl Unpin for CoverageHypothesis
impl UnsafeUnpin for CoverageHypothesis
impl UnwindSafe for CoverageHypothesis
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more