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

Function TestEngineInvalidatesConfig

engine_test.go:16–31  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14}
15
16func TestEngineInvalidatesConfig(t *testing.T) {
17 config := NewConfig()
18 {
19 engine := NewEngineWithConfig(config)
20 require.NotNil(t, engine)
21 }
22
23 {
24 defer func() {
25 r := recover()
26 require.NotNil(t, r, "The code did not panic")
27 }()
28 engine := NewEngineWithConfig(config)
29 require.Nil(t, engine)
30 }
31}

Callers

nothing calls this directly

Calls 2

NewConfigFunction · 0.85
NewEngineWithConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…