Skip to main content

load

Function load 

Source
pub fn load(path: &Path) -> Result<Baseline, BaselineError>
Expand description

Read and validate a baseline file.

ยงErrors

Returns BaselineError::Io if the file cannot be read, BaselineError::Parse if it is not valid JSON, and BaselineError::Version if it was written by an incompatible version.