File Manager

Path: /opt/golang/1.22.0/src/cmd/go/testdata/script/

Viewing File: test_match_only_benchmarks.txt

# 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) {
}