pub enum CoverageViolation {
UninstrumentedExecution {
block_id: BlockId,
},
CounterOverflow {
block_id: BlockId,
},
ImpossibleEdge {
from: BlockId,
to: BlockId,
},
CoverageRegression {
expected: f64,
actual: f64,
},
}Expand description
Coverage Jidoka violations with severity classification
Variants§
UninstrumentedExecution
Block executed but not instrumented (CRITICAL - stop)
CounterOverflow
Counter overflow (>u64::MAX executions) (WARNING - continue)
ImpossibleEdge
Impossible edge taken (dead code executed) (CRITICAL - stop)
CoverageRegression
Coverage regression detected (WARNING - continue)
Implementations§
Source§impl CoverageViolation
impl CoverageViolation
Sourcepub fn action(&self) -> JidokaAction
pub fn action(&self) -> JidokaAction
Classify violation severity (Soft Jidoka)
Sourcepub fn affected_block(&self) -> Option<BlockId>
pub fn affected_block(&self) -> Option<BlockId>
Get the affected block, if any
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get a human-readable description
Trait Implementations§
Source§impl Clone for CoverageViolation
impl Clone for CoverageViolation
Source§fn clone(&self) -> CoverageViolation
fn clone(&self) -> CoverageViolation
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 CoverageViolation
impl RefUnwindSafe for CoverageViolation
impl Send for CoverageViolation
impl Sync for CoverageViolation
impl Unpin for CoverageViolation
impl UnsafeUnpin for CoverageViolation
impl UnwindSafe for CoverageViolation
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