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

Function run_wasmtime_simple_fail_no_args

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

Source from the content-addressed store, hash-verified

73// Wasmtime shall fail when not enough arguments were provided.
74#[test]
75fn run_wasmtime_simple_fail_no_args() -> Result<()> {
76 let wasm = build_wasm("tests/all/cli_tests/simple.wat")?;
77 assert!(
78 run_wasmtime(&[
79 "run",
80 "-Ccache=n",
81 "--invoke",
82 "simple",
83 wasm.path().to_str().unwrap(),
84 ])
85 .is_err(),
86 "shall fail"
87 );
88 Ok(())
89}
90
91#[test]
92fn run_coredump_smoketest() -> Result<()> {

Callers

nothing calls this directly

Calls 2

OkFunction · 0.85
build_wasmFunction · 0.70

Tested by

no test coverage detected