()
| 58 | // Very basic use case: compile binary wasm file and run specific function with arguments. |
| 59 | #[test] |
| 60 | fn run_wasmtime_simple() -> Result<()> { |
| 61 | let wasm = build_wasm("tests/all/cli_tests/simple.wat")?; |
| 62 | run_wasmtime(&[ |
| 63 | "run", |
| 64 | "--invoke", |
| 65 | "simple", |
| 66 | "-Ccache=n", |
| 67 | wasm.path().to_str().unwrap(), |
| 68 | "4", |
| 69 | ])?; |
| 70 | Ok(()) |
| 71 | } |
| 72 | |
| 73 | // Wasmtime shall fail when not enough arguments were provided. |
| 74 | #[test] |
nothing calls this directly
no test coverage detected