2020-11-22 22:28:38 +03:00

25 lines
474 B
Go

//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) {} // ERROR "Function TestFunctionMissingCallToParallel missing the call to method parallel"