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

Function has_command

scripts/coverage.rs:241–248  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

239}
240
241fn has_command(name: &str) -> bool {
242 Command::new(name)
243 .arg("--version")
244 .stdout(Stdio::null())
245 .stderr(Stdio::null())
246 .status()
247 .is_ok_and(|s| s.success())
248}

Callers 1

generate_reportFunction · 0.85

Calls 6

statusMethod · 0.80
newFunction · 0.50
stderrMethod · 0.45
stdoutMethod · 0.45
argMethod · 0.45
successMethod · 0.45

Tested by

no test coverage detected