Skip to main content

load_regression_baseline

Function load_regression_baseline 

Source
pub fn load_regression_baseline(
    path: &Path,
    output: OutputFormat,
) -> Result<RegressionBaseline, ExitCode>
Expand description

Load a regression baseline from disk.

Validates that schema_version matches REGRESSION_SCHEMA_VERSION. Mismatches (including baselines missing the field entirely) fail loud with an actionable regenerate hint rather than silently loading default-zero fields, which would mask real regressions.

§Errors

Returns an error if the file does not exist, cannot be read, contains invalid JSON, or has a schema_version that does not match the current build’s REGRESSION_SCHEMA_VERSION.