...

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

Documentation: cmd/go/testdata/script

     1# The subtests don't match
     2go test -run Test/ThisWillNotMatch standalone_sub_test.go
     3stdout '^ok.*\[no tests to run\]'
     4
     5-- standalone_sub_test.go --
     6package standalone_sub_test
     7
     8import "testing"
     9
    10func Test(t *testing.T) {
    11	t.Run("Sub", func(t *testing.T) {})
    12}

View as plain text