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

Function command

crates/test-util/src/lib.rs:23–37  ·  view source on GitHub ↗
(bin: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

21}
22
23pub fn command(bin: impl AsRef<Path>) -> Command {
24 let bin = bin.as_ref();
25 match cargo_test_runner() {
26 Some(runner) => {
27 let mut parts = runner.split_whitespace();
28 let mut cmd = Command::new(parts.next().unwrap());
29 for arg in parts {
30 cmd.arg(arg);
31 }
32 cmd.arg(bin);
33 cmd
34 }
35 None => Command::new(bin),
36 }
37}

Callers 6

verify_cliFunction · 0.85
executeMethod · 0.85
verify_cliFunction · 0.85
assert_outputFunction · 0.85
run_testFunction · 0.85
get_wasmtime_commandFunction · 0.85

Calls 6

cargo_test_runnerFunction · 0.85
newFunction · 0.50
as_refMethod · 0.45
unwrapMethod · 0.45
nextMethod · 0.45
argMethod · 0.45

Tested by 3

verify_cliFunction · 0.68
verify_cliFunction · 0.68
get_wasmtime_commandFunction · 0.68