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

Method run_target

cranelift/filetests/src/test_interpret.rs:47–68  ·  view source on GitHub ↗

Runs the entire subtest for a given target, invokes [Self::run] for running individual tests.

(
        &self,
        testfile: &TestFile,
        _: &mut FileUpdate,
        _: &'a str,
        _: &'a Flags,
        _: Option<&'a dyn TargetIsa>,
    )

Source from the content-addressed store, hash-verified

45 /// Runs the entire subtest for a given target, invokes [Self::run] for running
46 /// individual tests.
47 fn run_target<'a>(
48 &self,
49 testfile: &TestFile,
50 _: &mut FileUpdate,
51 _: &'a str,
52 _: &'a Flags,
53 _: Option<&'a dyn TargetIsa>,
54 ) -> anyhow::Result<()> {
55 // We can build the FunctionStore once and reuse it
56 let mut func_store = FunctionStore::default();
57 for (func, _) in &testfile.functions {
58 func_store.add(func.name.to_string(), &func);
59 }
60
61 for (func, details) in &testfile.functions {
62 info!("Test: {}({}) interpreter", self.name(), func.name);
63
64 run_test(&func_store, func, details).context(self.name())?;
65 }
66
67 Ok(())
68 }
69
70 fn run(
71 &self,

Callers

nothing calls this directly

Calls 6

OkFunction · 0.85
run_testFunction · 0.70
addMethod · 0.45
to_stringMethod · 0.45
contextMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected