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