...

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

Documentation: cmd/go/testdata/script

     1# Matches only benchmarks
     2go test -run '^$' -bench . standalone_benchmark_test.go
     3! stdout '^ok.*\[no tests to run\]'
     4! stderr '^ok.*\[no tests to run\]'
     5stdout '^ok'
     6
     7-- standalone_benchmark_test.go --
     8package standalone_benchmark
     9
    10import "testing"
    11
    12func Benchmark(b *testing.B) {
    13}

View as plain text