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

Function verify

tests/all/call_hook.rs:15–21  ·  view source on GitHub ↗
(state: &State)

Source from the content-addressed store, hash-verified

13 store.call_hook(sync_call_hook);
14
15 fn verify(state: &State) {
16 // Calling this func will switch context into wasm, then back to host:
17 assert_eq!(state.context, vec![Context::Wasm, Context::Host]);
18
19 assert_eq!(state.calls_into_host, state.returns_from_host + 1);
20 assert_eq!(state.calls_into_wasm, state.returns_from_wasm + 1);
21 }
22
23 let mut funcs = Vec::new();
24 funcs.push(Func::wrap(

Callers 1

call_wrapped_funcFunction · 0.70

Calls

no outgoing calls

Tested by 1

call_wrapped_funcFunction · 0.56