aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/test_match_only_benchmarks.txt
blob: 5dfb96eae234bfdcf9707d538b1a9821de9bb973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Matches only benchmarks
go test -run '^$' -bench . standalone_benchmark_test.go
! stdout '^ok.*\[no tests to run\]'
! stderr '^ok.*\[no tests to run\]'
stdout '^ok'

-- standalone_benchmark_test.go --
package standalone_benchmark

import "testing"

func Benchmark(b *testing.B) {
}