github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/cover_import_main_loop.txt (about)

     1  [gccgo] skip # gccgo has no cover tool
     2  
     3  ! go test -n importmain/test
     4  stderr 'not an importable package' # check that import main was detected
     5  ! go test -n -cover importmain/test
     6  stderr 'not an importable package' # check that import main was detected
     7  
     8  -- importmain/ismain/main.go --
     9  package main
    10  
    11  import _ "importmain/test"
    12  
    13  func main() {}
    14  -- importmain/test/test.go --
    15  package test
    16  -- importmain/test/test_test.go --
    17  package test_test
    18  
    19  import "testing"
    20  import _ "importmain/ismain"
    21  
    22  func TestCase(t *testing.T) {}