github.com/nuvolaris/goja@v0.0.0-20230825100449-967811910c6d/tc39_norace_test.go (about) 1 //go:build !race 2 // +build !race 3 4 package goja 5 6 import "testing" 7 8 // Prevent linter warnings about unused type 9 var _ = tc39Test{name: "", f: nil} 10 11 func (ctx *tc39TestCtx) runTest(name string, f func(t *testing.T)) { 12 ctx.t.Run(name, func(t *testing.T) { 13 t.Parallel() 14 f(t) 15 }) 16 } 17 18 func (ctx *tc39TestCtx) flush() { 19 }