github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/cover_pattern.txt (about) 1 [gccgo] skip 2 3 # If coverpkg=sleepy... expands by package loading 4 # (as opposed to pattern matching on deps) 5 # then it will try to load sleepybad, which does not compile, 6 # and the test command will fail. 7 ! go list sleepy... 8 go test -c -n -coverprofile=$TMPDIR/cover.out -coverpkg=sleepy... -run=^$ sleepy1 9 10 -- sleepy1/p_test.go -- 11 package p 12 13 import ( 14 "testing" 15 "time" 16 ) 17 18 func Test1(t *testing.T) { 19 time.Sleep(200 * time.Millisecond) 20 } 21 -- sleepy2/p_test.go -- 22 package p 23 24 import ( 25 "testing" 26 "time" 27 ) 28 29 func Test1(t *testing.T) { 30 time.Sleep(200 * time.Millisecond) 31 } 32 -- sleepybad/p.go -- 33 package p 34 35 import ^ 36 37 var _ = io.DoesNotExist