hit

Macro hit 

Source
macro_rules! hit {
    ($ident:ident) => { ... };
}
Expand description

Hit a mark with a specified name.

ยงExample

fn safe_divide(dividend: u32, divisor: u32) -> u32 {
    if divisor == 0 {
        cov_mark::hit!(safe_divide_zero);
        return 0;
    }
    dividend / divisor
}