Text file src/cmd/go/testdata/script/cover_sync_atomic_import.txt
1 [short] skip 2 [gccgo] skip # gccgo has no cover tool 3 4 go test -short -cover -covermode=atomic -coverpkg=coverdep/p1 coverdep 5 6 -- go.mod -- 7 module coverdep 8 9 go 1.16 10 -- p.go -- 11 package p 12 13 import _ "coverdep/p1" 14 15 func F() { 16 } 17 -- p1/p1.go -- 18 package p1 19 20 import _ "errors" 21 -- p_test.go -- 22 package p 23 24 import "testing" 25 26 func Test(t *testing.T) { 27 F() 28 } 29