pub struct Coverage {
pub required: usize,
pub touched: usize,
pub permille: u16,
pub met: bool,
pub missed: Vec<usize>,
}Expand description
The verdict Contract::evaluate returns: how much of the contract
was reached, whether that satisfies the author, and — the honest
half — exactly which regions nobody touched.
Fields§
§required: usizeDeclared region count.
touched: usizeRegions with at least one touch.
permille: u16touched / required, in permille.
met: boolpermille >= min_permille.
missed: Vec<usize>Indexes (declaration order) of untouched regions — the misses,
nameable via Region::label.
Trait Implementations§
impl Eq for Coverage
impl StructuralPartialEq for Coverage
Auto Trait Implementations§
impl Freeze for Coverage
impl RefUnwindSafe for Coverage
impl Send for Coverage
impl Sync for Coverage
impl Unpin for Coverage
impl UnsafeUnpin for Coverage
impl UnwindSafe for Coverage
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