MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / verify_testfile

Function verify_testfile

cranelift/filetests/src/runone.rs:102–109  ·  view source on GitHub ↗

Verifies all functions in a testfile

(testfile: &TestFile, fisa: FlagsOrIsa)

Source from the content-addressed store, hash-verified

100
101// Verifies all functions in a testfile
102fn verify_testfile(testfile: &TestFile, fisa: FlagsOrIsa) -> anyhow::Result<()> {
103 for (func, _) in &testfile.functions {
104 verify_function(func, fisa)
105 .map_err(|errors| anyhow::anyhow!("{}", pretty_verifier_error(&func, None, errors)))?;
106 }
107
108 Ok(())
109}
110
111// Given a slice of tests, generate a vector of (test, flags, isa) tuples.
112fn test_tuples<'a>(

Callers 1

runFunction · 0.85

Calls 2

verify_functionFunction · 0.85
OkFunction · 0.85

Tested by

no test coverage detected