pub struct TaintedBlocks { /* private fields */ }Expand description
Tainted block tracker (for Soft Jidoka)
Tracks blocks that encountered non-fatal violations during coverage collection. These blocks are still included in the report but marked as suspect.
Implementations§
Source§impl TaintedBlocks
impl TaintedBlocks
Sourcepub fn taint(&mut self, block: BlockId, violation: CoverageViolation)
pub fn taint(&mut self, block: BlockId, violation: CoverageViolation)
Mark block as tainted (Soft Jidoka)
Sourcepub fn record_violation(&mut self, violation: CoverageViolation)
pub fn record_violation(&mut self, violation: CoverageViolation)
Record a violation without a specific block
Sourcepub fn is_tainted(&self, block: BlockId) -> bool
pub fn is_tainted(&self, block: BlockId) -> bool
Check if block is tainted
Sourcepub fn tainted_count(&self) -> usize
pub fn tainted_count(&self) -> usize
Get the number of tainted blocks
Sourcepub fn violation_count(&self) -> usize
pub fn violation_count(&self) -> usize
Get the total number of violations (may exceed tainted blocks)
Sourcepub fn tainted_blocks(&self) -> Vec<BlockId>
pub fn tainted_blocks(&self) -> Vec<BlockId>
Get all tainted blocks
Sourcepub fn violations_for(&self, block: BlockId) -> Vec<&CoverageViolation>
pub fn violations_for(&self, block: BlockId) -> Vec<&CoverageViolation>
Get violations for a specific block
Sourcepub fn all_violations(&self) -> &[CoverageViolation]
pub fn all_violations(&self) -> &[CoverageViolation]
Get all violations
Trait Implementations§
Source§impl Debug for TaintedBlocks
impl Debug for TaintedBlocks
Source§impl Default for TaintedBlocks
impl Default for TaintedBlocks
Source§fn default() -> TaintedBlocks
fn default() -> TaintedBlocks
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TaintedBlocks
impl RefUnwindSafe for TaintedBlocks
impl Send for TaintedBlocks
impl Sync for TaintedBlocks
impl Unpin for TaintedBlocks
impl UnsafeUnpin for TaintedBlocks
impl UnwindSafe for TaintedBlocks
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().