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

Function TestLinkerGetDefault

linker_test.go:104–110  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

102}
103
104func TestLinkerGetDefault(t *testing.T) {
105 store := NewStore(NewEngine())
106 linker := NewLinker(store.Engine)
107 f, err := linker.GetDefault(store, "foo")
108 require.NoError(t, err)
109 f.Call(store)
110}
111
112func TestLinkerGetOneByName(t *testing.T) {
113 store := NewStore(NewEngine())

Callers

nothing calls this directly

Calls 5

GetDefaultMethod · 0.95
NewStoreFunction · 0.85
NewEngineFunction · 0.85
NewLinkerFunction · 0.85
CallMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…