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

Function TestFunc

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

Source from the content-addressed store, hash-verified

7)
8
9func TestFunc(t *testing.T) {
10 store := NewStore(NewEngine())
11 cb := func(caller *Caller, args []Val) ([]Val, *Trap) {
12 return []Val{}, nil
13 }
14 NewFunc(store, NewFuncType([]*ValType{}, []*ValType{}), cb)
15}
16
17func TestFuncCall(t *testing.T) {
18 store := NewStore(NewEngine())

Callers

nothing calls this directly

Calls 4

NewStoreFunction · 0.85
NewEngineFunction · 0.85
NewFuncFunction · 0.85
NewFuncTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…