...

Text file src/cmd/go/testdata/script/cover_test_race_issue56370.txt

Documentation: cmd/go/testdata/script

     1[short] skip
     2[!race] skip
     3
     4go test -race -cover issue.56370/filter
     5
     6-- go.mod --
     7module issue.56370
     8
     9go 1.20
    10
    11-- filter/filter.go --
    12
    13package filter
    14
    15func New() func(error) bool {
    16	return func(error) bool {
    17		return false
    18	}
    19}
    20
    21-- filter/filter_test.go --
    22
    23package filter_test
    24
    25import (
    26	"testing"
    27
    28	"issue.56370/filter"
    29)
    30
    31func Test1(t *testing.T) {
    32	t.Parallel()
    33
    34	_ = filter.New()
    35}
    36
    37func Test2(t *testing.T) {
    38	t.Parallel()
    39
    40	_ = filter.New()
    41}
    42
    43func Test3(t *testing.T) {
    44	t.Parallel()
    45
    46	_ = filter.New()
    47}
    48
    49func Test4(t *testing.T) {
    50	t.Parallel()
    51
    52	_ = filter.New()
    53}
    54

View as plain text