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

Function p2_cli_exit_failure

tests/all/cli_tests.rs:1320–1327  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1318
1319 #[test]
1320 fn p2_cli_exit_failure() -> Result<()> {
1321 let output = get_wasmtime_command()?
1322 .args(&["run", "-Wcomponent-model", P2_CLI_EXIT_FAILURE_COMPONENT])
1323 .output()?;
1324 assert!(!output.status.success());
1325 assert_eq!(output.status.code(), Some(1));
1326 Ok(())
1327 }
1328
1329 #[test]
1330 fn p2_cli_exit_with_code() -> Result<()> {

Callers

nothing calls this directly

Calls 4

get_wasmtime_commandFunction · 0.85
OkFunction · 0.85
outputMethod · 0.80
argsMethod · 0.45

Tested by

no test coverage detected