25 lines
485 B
Go
25 lines
485 B
Go
//golangcitest:args -Eparalleltest
|
|
package testdata
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestFunctionSuccessfulRangeTest(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
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 TestFunctionMissingCallToParallel(t *testing.T) {} // want "Function TestFunctionMissingCallToParallel missing the call to method parallel"
|