blob: 30f4be8a84b1ede46e274fc277287fd70876156f [file] [log] [blame]
# Matches no benchmarks
go test -run '^$' -bench ThisWillNotMatch 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) {
}