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

Function greeter_preload_command

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

Source from the content-addressed store, hash-verified

378// Run the greeter test, but this time preload a command.
379#[test]
380fn greeter_preload_command() -> Result<()> {
381 let wasm = build_wasm("tests/all/cli_tests/greeter_reactor.wat")?;
382 let stdout = run_wasmtime(&[
383 "run",
384 "-Ccache=n",
385 "--preload",
386 "reactor=tests/all/cli_tests/hello_wasi_snapshot1.wat",
387 wasm.path().to_str().unwrap(),
388 ])?;
389 assert_eq!(stdout, "Hello _initialize\n");
390 Ok(())
391}
392
393// Run the greeter test, which runs a preloaded reactor and a command.
394#[test]

Callers

nothing calls this directly

Calls 6

run_wasmtimeFunction · 0.85
OkFunction · 0.85
to_strMethod · 0.80
build_wasmFunction · 0.70
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected