Skip to main content

score

Function score 

Source
pub fn score(results: &[AssertionResult]) -> f64
Expand description

The score a set of assertion results earns (FR-022): the fraction that passed, and 1.0 when there are none to fail.

The rule itself lives in crate::result, with the empty-set case documented on crate::result::RunResult::score; this is the same rule over the legacy crate::models::AssertionResult, not a second one.