Skip to main content

diff_report

Function diff_report 

Source
pub fn diff_report(
    report: &Report,
    out_dir: &Path,
    workspace_root: &Path,
) -> Result<Vec<String>>
Expand description

Compare every artifact in report against its on-disk counterpart and return the list of paths whose contents differ (or that are missing on disk). See write_report for how out_dir and workspace_root are used.

This is the check-mode counterpart of write_report: nothing is written; callers pick between exit code 0 (empty result) and 2 (non-empty). Read failures other than “file not found” propagate as errors. The returned paths use each artifact’s original (base-relative) form so callers can echo them without recomputing.