github.com/vanstinator/golangci-lint@v0.0.0-20240223191551-cc572f00d9d1/test/testdata/paralleltest.go (about)

     1  //golangcitest:args -Eparalleltest
     2  package testdata
     3  
     4  import (
     5  	"fmt"
     6  	"testing"
     7  )
     8  
     9  func TestFunctionSuccessfulRangeTest(t *testing.T) {
    10  	t.Parallel()
    11  
    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 TestFunctionMissingCallToParallel(t *testing.T) {} // want "Function TestFunctionMissingCallToParallel missing the call to method parallel"