Text file src/cmd/go/testdata/script/test_match_only_subtests.txt
1 # Matches only subtests 2 go test -run Test/Sub standalone_sub_test.go 3 ! stdout '^ok.*\[no tests to run\]' 4 ! stderr '^ok.*\[no tests to run\]' 5 stdout '^ok' 6 7 -- standalone_sub_test.go -- 8 package standalone_sub_test 9 10 import "testing" 11 12 func Test(t *testing.T) { 13 t.Run("Sub", func(t *testing.T) {}) 14 }