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

Function subtest

cranelift/filetests/src/test_domtree.rs:28–34  ·  view source on GitHub ↗
(parsed: &TestCommand)

Source from the content-addressed store, hash-verified

26struct TestDomtree;
27
28pub fn subtest(parsed: &TestCommand) -> anyhow::Result<Box<dyn SubTest>> {
29 assert_eq!(parsed.command, "domtree");
30 if !parsed.options.is_empty() {
31 anyhow::bail!("No options allowed on {parsed}")
32 }
33 Ok(Box::new(TestDomtree))
34}
35
36impl SubTest for TestDomtree {
37 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