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

Function require_async_with_async_call_hook

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

Source from the content-addressed store, hash-verified

158
159#[test]
160fn require_async_with_async_call_hook() -> Result<()> {
161 let engine = Engine::default();
162 let mut store = Store::new(&engine, ());
163 store.call_hook_async(MyAsyncCallHook);
164 assert_requires_async(&mut store);
165 Ok(())
166}
167
168#[tokio::test]
169async fn async_disallows_instance_new() -> Result<()> {

Callers

nothing calls this directly

Calls 4

OkFunction · 0.85
call_hook_asyncMethod · 0.80
assert_requires_asyncFunction · 0.70
newFunction · 0.50

Tested by

no test coverage detected