pub fn validate_with_limits<P: AsRef<Path>>(
path: P,
limits: Limits,
) -> Result<ValidationReport>Expand description
Validate the Acta v0.2 framing of path under caller-supplied limits.
let limits = acta::Limits::default().with_max_frame_payload_length(8);
let error = acta::validate_with_limits(
"spec/v0.2/fixtures/minimal/minimal.acta",
limits,
)
.unwrap_err();
assert_eq!(error.kind(), acta::ErrorKind::ResourceLimit);