pub fn check_file(req: &CheckRequest) -> Result<CheckReport, ApiError>Expand description
Loads, binds and checks the request with the compiled Core. What Core
does not implement is an unsupported verdict naming it.
use dive_api::{CheckRequest, check_file};
let req = CheckRequest { file: "Spec.tla".into(), ..CheckRequest::default() };
let report = check_file(&req).unwrap();
println!("{}", report.to_json()["engine"]);ยงErrors
crate::ApiError if the root file or the configuration cannot be read.