blob: 83eef0c8a8bb733da5c838dd144bed1e6cd0e13a [file] [log] [blame]
[gccgo] skip # gccgo has no cover tool
! go test -n importmain/test
stderr 'not an importable package' # check that import main was detected
! go test -n -cover importmain/test
stderr 'not an importable package' # check that import main was detected
-- importmain/ismain/main.go --
package main
import _ "importmain/test"
func main() {}
-- importmain/test/test.go --
package test
-- importmain/test/test_test.go --
package test_test
import "testing"
import _ "importmain/ismain"
func TestCase(t *testing.T) {}