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

Function subtest

cranelift/filetests/src/test_interpret.rs:24–30  ·  view source on GitHub ↗
(parsed: &TestCommand)

Source from the content-addressed store, hash-verified

22struct TestInterpret;
23
24pub fn subtest(parsed: &TestCommand) -> anyhow::Result<Box<dyn SubTest>> {
25 assert_eq!(parsed.command, "interpret");
26 if !parsed.options.is_empty() {
27 anyhow::bail!("No options allowed on {parsed}");
28 }
29 Ok(Box::new(TestInterpret))
30}
31
32impl SubTest for TestInterpret {
33 fn name(&self) -> &'static str {

Callers

nothing calls this directly

Calls 3

OkFunction · 0.85
newFunction · 0.50
is_emptyMethod · 0.45

Tested by

no test coverage detected