print_stats_report

Function print_stats_report 

Source
pub fn print_stats_report() -> Option<String>
Expand description

Read sidecar JSON files and return the gauntlet analysis report.

Source directory:

  • KTSTR_SIDECAR_DIR if set, else
  • the most recently modified subdirectory under {CARGO_TARGET_DIR or "target"}/ktstr/.

cargo ktstr stats doesn’t itself run a kernel, so it can’t reconstruct the {kernel}-{project_commit} key the test process used; the mtime fallback mirrors “show me the report from my last test run.”

Returns None with a warning on stderr when no sidecars are found. This is not an error – regular test runs that skip gauntlet tests produce no sidecar files.