Skip to main content

evaluate_ratchet

Function evaluate_ratchet 

Source
pub fn evaluate_ratchet(percent: f64, baseline: Option<f64>) -> Outcome
Expand description

Decide whether percent regresses below baseline, the recorded total the suite must not drop under. None (nothing recorded) is no ratchet → Outcome::Pass. Carries the same hair of float tolerance as evaluate so a percent that rounds to the baseline isn’t failed by noise.