newComponent compiles `wat` into a fresh [Component] for tests. The returned component must be closed by the caller.
(t *testing.T, engine *Engine, wat string)
| 24 | // newComponent compiles `wat` into a fresh [Component] for tests. The |
| 25 | // returned component must be closed by the caller. |
| 26 | func newComponent(t *testing.T, engine *Engine, wat string) *Component { |
| 27 | t.Helper() |
| 28 | wasm, err := Wat2Wasm(wat) |
| 29 | require.NoError(t, err) |
| 30 | component, err := NewComponent(engine, wasm) |
| 31 | require.NoError(t, err) |
| 32 | return component |
| 33 | } |
no test coverage detected
searching dependent graphs…