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

Function subtest

cranelift/filetests/src/test_inline.rs:43–54  ·  view source on GitHub ↗
(parsed: &TestCommand)

Source from the content-addressed store, hash-verified

41}
42
43pub fn subtest(parsed: &TestCommand) -> Result<Box<dyn SubTest>> {
44 assert_eq!(parsed.command, "inline");
45 let mut test = TestInline::default();
46 for option in parsed.options.iter() {
47 match option {
48 TestOption::Flag("precise-output") => test.precise_output = true,
49 TestOption::Flag("optimize") => test.optimize = true,
50 _ => anyhow::bail!("unknown option on {parsed}"),
51 }
52 }
53 Ok(Box::new(test))
54}
55
56impl SubTest for TestInline {
57 fn name(&self) -> &'static str {

Callers

nothing calls this directly

Calls 3

OkFunction · 0.85
newFunction · 0.50
iterMethod · 0.45

Tested by

no test coverage detected