Skip to main content

classify_diffs

Function classify_diffs 

Source
pub fn classify_diffs(
    report: &Report,
    out_dir: &Path,
    workspace_root: &Path,
) -> Result<DiffSummary>
Expand description

Compare every artifact in report against its on-disk copy and return the categorised diff. See write_report for how out_dir and workspace_root are interpreted.

This is the check-mode counterpart of write_report: nothing is written; the caller decides how to react to the returned DiffSummary. Read failures other than “file not found” propagate as errors so no diff is ever silently dropped.