...
1 package vs
2
3 import (
4 _ "embed"
5 "testing"
6 )
7
8 var (
9
10
11
12
13
14 shorthashWasm []byte
15 shorthashConfig *RuntimeConfig
16 )
17
18 func init() {
19 shorthashConfig = &RuntimeConfig{
20 ModuleName: "shorthash",
21 ModuleWasm: shorthashWasm,
22 NeedsWASI: true,
23 }
24 }
25
26 func RunTestShorthash(t *testing.T, runtime func() Runtime) {
27
28 testInstantiate(t, runtime, shorthashConfig)
29 }
30
31 func RunBenchmarkShorthash(b *testing.B, runtime func() Runtime) {
32 benchmark(b, runtime, shorthashConfig, nil)
33 }
34
View as plain text