Skip to main content

print_results

Function print_results 

Source
pub fn print_results(
    results: &AnalysisResults,
    ctx: &ReportContext<'_>,
    output: OutputFormat,
    regression: Option<&RegressionOutcome>,
) -> ExitCode
Expand description

Print analysis results in the configured format. Returns exit code 2 if serialization fails, SUCCESS otherwise.

When regression is Some, the JSON format includes a regression key in the output envelope. When ctx.group_by is Some, results are partitioned into labeled groups before rendering.