pub struct CoverageHypothesis {
pub id: String,
pub description: String,
pub threshold: f32,
pub actual: f32,
pub falsified: bool,
}Expand description
A falsifiable coverage hypothesis
Fields§
§id: StringHypothesis ID (e.g., “H0-COV-01”)
description: StringDescription of the claim
threshold: f32Threshold value for falsification
actual: f32Actual measured value
falsified: boolWhether the hypothesis was falsified
Implementations§
Source§impl CoverageHypothesis
impl CoverageHypothesis
Sourcepub fn new(id: &str, description: &str, threshold: f32, actual: f32) -> Self
pub fn new(id: &str, description: &str, threshold: f32, actual: f32) -> Self
Create a new hypothesis
Sourcepub fn coverage_threshold(threshold: f32, actual: f32) -> Self
pub fn coverage_threshold(threshold: f32, actual: f32) -> Self
Create coverage threshold hypothesis
Sourcepub fn max_gap_size(max_gap_percent: f32, actual_gap_percent: f32) -> Self
pub fn max_gap_size(max_gap_percent: f32, actual_gap_percent: f32) -> Self
Create gap size hypothesis
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 (const: unstable) · 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