Function goldenscript::run

source ยท
pub fn run<R: Runner, P: AsRef<Path>>(runner: &mut R, path: P) -> Result<()>
Expand description

Runs a goldenscript at the given path.

Panics if the script output differs from the current input file. Errors on IO, parser, or runner failure. If the environment variable UPDATE_GOLDENFILES=1 is set, the new output file will replace the input file.