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

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

View as plain text