pub fn percent(covered: u32, total: u32) -> u32Expand description
Coverage percentage of covered/total, rounded; total == 0 → 100. Only a
genuinely complete run reads 100%: round-half-up would report 995/1000 as
100% while lines are still uncovered — self-contradicting in the table and
a false green for a CI gate keyed on the JSON percent — so a run with any
uncovered line is clamped to at most 99.