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

Function subtest

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

Source from the content-addressed store, hash-verified

20struct TestRun;
21
22pub fn subtest(parsed: &TestCommand) -> anyhow::Result<Box<dyn SubTest>> {
23 assert_eq!(parsed.command, "run");
24 if !parsed.options.is_empty() {
25 anyhow::bail!("No options allowed on {parsed}");
26 }
27 Ok(Box::new(TestRun))
28}
29
30/// Builds a [TargetIsa] for the current host.
31///

Callers 1

new_subtestFunction · 0.70

Calls 3

OkFunction · 0.85
newFunction · 0.50
is_emptyMethod · 0.45

Tested by

no test coverage detected