golangci-lint/test/testdata/tparallel_missing_toplevel_test.go

13 lines
247 B
Go

//golangcitest:args -Etparallel
package testdata
import (
"testing"
)
func TestTopLevel(t *testing.T) { // want "TestTopLevel should call t.Parallel on the top level as well as its subtests"
t.Run("", func(t *testing.T) {
t.Parallel()
})
}