Function expectorate::eq_file_or_panic
source · pub fn eq_file_or_panic(path: impl Into<PathBuf>) -> FilePredicate
Available on crate feature
predicates
only.Expand description
Creates a new predicate that ensures equality with the given file and panics if there’s a mismatch.
To accept changes to the file, run with EXPECTORATE=overwrite
.