github.com/jmigpin/editor@v1.6.0/core/godebug/testdata/src04.txt (about) 1 # executes, but no test is run 2 exec go test main_test.go 3 4 # executes, but no test is run 5 exec go test -run=Test001 main_test.go 6 7 # TODO: should not run tests as well as the std go above? 8 9 ucmd godebugtester test main_test.go 10 contains stdout "=> println(2)" 11 12 fail exec go test 13 contains stderr "go.mod file not found" 14 fail ucmd godebugtester test 15 contains error "go.mod file not found" 16 17 -- main_test.go -- 18 package main 19 import "testing" 20 func Test001(t*testing.T){ 21 _=1 22 println(2) 23 }