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

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

View as plain text