github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/experimental/opt/opt_test.go (about) 1 package opt_test 2 3 import ( 4 "context" 5 "runtime" 6 "testing" 7 8 "github.com/bananabytelabs/wazero" 9 "github.com/bananabytelabs/wazero/experimental/opt" 10 "github.com/bananabytelabs/wazero/internal/testing/require" 11 ) 12 13 func TestUseOptimizingCompiler(t *testing.T) { 14 if runtime.GOARCH != "arm64" { 15 return 16 } 17 c := opt.NewRuntimeConfigOptimizingCompiler() 18 r := wazero.NewRuntimeWithConfig(context.Background(), c) 19 require.NoError(t, r.Close(context.Background())) 20 }