...

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

Documentation: cmd/go/testdata/script

     1# Tests issue #26242
     2
     3go test testnorun
     4stdout 'testnorun\t\[no test files\]'
     5
     6-- go.mod --
     7module testnorun
     8
     9go 1.16
    10-- p.go --
    11package p
    12
    13func init() {
    14	panic("go test must not link and run test binaries without tests")
    15}

View as plain text