Skip to main content

render_rich

Function render_rich 

Source
pub fn render_rich(report: &CoverageReport, colour: bool) -> String
Expand description

Render the human coverage summary — a per-file bar, percentage, covered/total line count, and the uncovered-line ranges — plus a total row. Trailing newline. An empty report renders a single “no coverage attributed” note. With colour, each bar and percentage is red, amber or green by crate::colour::coverage_style, and the uncovered ranges red.