golangci-lint/test/testdata/paralleltest_custom.go

25 lines
462 B
Go

//golangcitest:args -Eparalleltest
//golangcitest:config_path testdata/configs/paralleltest.yml
//golangcitest:expected_exitcode 0
package testdata
import (
"fmt"
"testing"
)
func TestParallelTestIgnore(t *testing.T) {
testCases := []struct {
name string
}{{name: "foo"}}
for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
fmt.Println(tc.name)
})
}
}
func TestParallelTestEmptyIgnore(t *testing.T) {}