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

Function subtest

cranelift/filetests/src/test_unwind.rs:16–22  ·  view source on GitHub ↗
(parsed: &TestCommand)

Source from the content-addressed store, hash-verified

14struct TestUnwind;
15
16pub fn subtest(parsed: &TestCommand) -> anyhow::Result<Box<dyn SubTest>> {
17 assert_eq!(parsed.command, "unwind");
18 if !parsed.options.is_empty() {
19 anyhow::bail!("No options allowed on {parsed}");
20 }
21 Ok(Box::new(TestUnwind))
22}
23
24impl SubTest for TestUnwind {
25 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