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

Function run_smoke_test

tests/all/async_functions.rs:13–16  ·  view source on GitHub ↗
(store: &mut Store<()>, func: Func)

Source from the content-addressed store, hash-verified

11}
12
13async fn run_smoke_test(store: &mut Store<()>, func: Func) {
14 func.call_async(&mut *store, &[], &mut []).await.unwrap();
15 func.call_async(&mut *store, &[], &mut []).await.unwrap();
16}
17
18async fn run_smoke_typed_test(store: &mut Store<()>, func: Func) {
19 let func = func.typed::<(), ()>(&store).unwrap();

Callers 6

smokeFunction · 0.85
smoke_host_funcFunction · 0.85
smoke_with_suspensionFunction · 0.85

Calls 2

unwrapMethod · 0.45
call_asyncMethod · 0.45

Tested by

no test coverage detected