github.com/chenfeining/golangci-lint@v1.0.2-0.20230730162517-14c6c67868df/test/testdata/paralleltest_custom.go (about)

     1  //golangcitest:args -Eparalleltest
     2  //golangcitest:config_path testdata/configs/paralleltest.yml
     3  //golangcitest:expected_exitcode 0
     4  package testdata
     5  
     6  import (
     7  	"fmt"
     8  	"testing"
     9  )
    10  
    11  func TestParallelTestIgnore(t *testing.T) {
    12  	testCases := []struct {
    13  		name string
    14  	}{{name: "foo"}}
    15  	for _, tc := range testCases {
    16  		tc := tc
    17  		t.Run(tc.name, func(t *testing.T) {
    18  			t.Parallel()
    19  			fmt.Println(tc.name)
    20  		})
    21  	}
    22  }
    23  
    24  func TestParallelTestEmptyIgnore(t *testing.T) {}