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

Function TestModule

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

Source from the content-addressed store, hash-verified

8)
9
10func TestModule(t *testing.T) {
11 _, err := NewModule(NewEngine(), []byte{})
12 require.Error(t, err)
13 _, err = NewModule(NewEngine(), []byte{1})
14 require.Error(t, err)
15}
16
17func TestModuleValidate(t *testing.T) {
18 require.NotNil(t, ModuleValidate(NewEngine(), []byte{}), "expected an error")

Callers

nothing calls this directly

Calls 3

NewModuleFunction · 0.85
NewEngineFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…