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

Function hello_wasi_snapshot0

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

Source from the content-addressed store, hash-verified

172// Run a simple WASI hello world, snapshot0 edition.
173#[test]
174fn hello_wasi_snapshot0() -> Result<()> {
175 for preview2 in ["-Spreview2=n", "-Spreview2=y"] {
176 let stdout = run_wasmtime(&[
177 "-Ccache=n",
178 preview2,
179 "tests/all/cli_tests/hello_wasi_snapshot0.wat",
180 ])?;
181 assert_eq!(stdout, "Hello, world!\n");
182 }
183 Ok(())
184}
185
186// Run a simple WASI hello world, snapshot1 edition.
187#[test]

Callers

nothing calls this directly

Calls 2

run_wasmtimeFunction · 0.85
OkFunction · 0.85

Tested by

no test coverage detected