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

Function require_async_after_func_new

tests/all/missing_async.rs:56–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54
55#[test]
56fn require_async_after_func_new() {
57 let engine = Engine::default();
58 let mut store = Store::new(&engine, ());
59 let ty = FuncType::new(store.engine(), [], []);
60 Func::new_async(&mut store, ty, |_, _, _| Box::new(async { Ok(()) }));
61 assert_requires_async(&mut store);
62}
63
64#[tokio::test]
65async fn require_async_after_linker_with_func_wrap() -> Result<()> {

Callers

nothing calls this directly

Calls 4

OkFunction · 0.85
assert_requires_asyncFunction · 0.70
newFunction · 0.50
engineMethod · 0.45

Tested by

no test coverage detected