aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/cover_dot_import.txt
blob: d492e42e2a9265f66a6a96a4698b231d39032760 (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
27
28
29
[short] skip
[gccgo] skip # gccgo has no cover tool

go test -coverpkg=coverdot/a,coverdot/b coverdot/b
! stderr '[^0-9]0\.0%'
! stdout '[^0-9]0\.0%'

-- go.mod --
module coverdot

go 1.16
-- a/a.go --
package a

func F() {}
-- b/b.go --
package b

import . "coverdot/a"

func G() { F() }
-- b/b_test.go --
package b

import "testing"

func TestG(t *testing.T) {
	G()
}