MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / TestFuncWrapCallerArg

Function TestFuncWrapCallerArg

func_test.go:185–191  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

183}
184
185func TestFuncWrapCallerArg(t *testing.T) {
186 store := NewStore(NewEngine())
187 f := WrapFunc(store, func(c *Caller) {})
188 result, trap := f.Call(store)
189 require.Nil(t, trap)
190 require.Nil(t, result, "wrong result")
191}
192
193func TestFuncWrapRet1(t *testing.T) {
194 store := NewStore(NewEngine())

Callers

nothing calls this directly

Calls 4

NewStoreFunction · 0.85
NewEngineFunction · 0.85
WrapFuncFunction · 0.85
CallMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…