Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(
    written: u64,
    authoritative: u64,
    tolerance_pct: f64,
) -> Result<(), String>
Expand description

Compare rows written against the authoritative count. Ok(()) when written >= authoritative * (1 - tolerance_pct/100), else Err with a message naming the shortfall. Pure.