File Manager

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

Viewing File: test_match_only_tests.txt

# Matches only tests
go test -run Test standalone_test.go
! stdout '^ok.*\[no tests to run\]'
! stderr '^ok.*\[no tests to run\]'
stdout '^ok'

-- standalone_test.go --
package standalone_test

import "testing"

func Test(t *testing.T) {
}