pub fn validate_doc(
model: &Model,
doc: &TraceDoc,
model_values: &[String],
) -> (Report, Option<Trace>)Expand description
Reads a document in either format against model and validates it.
model_values are the configuration’s model value names
(dive_config::ModelConfig::model_values), which reading TLC’s format
needs. Returns the report and the trace as read (for a TLC document, the
interpretation the verdict is about; see tlc). Random draws are refused
by name (RANDOM_UNSUPPORTED).