aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/cover_import_main_loop.txt
blob: eb6de6778a9bf35e98ba7be6320270644b04610c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[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

-- go.mod --
module importmain

go 1.16
-- ismain/main.go --
package main

import _ "importmain/test"

func main() {}
-- test/test.go --
package test
-- test/test_test.go --
package test_test

import "testing"
import _ "importmain/ismain"

func TestCase(t *testing.T) {}