src/cmd/go/testdata/script/cover_pkgall_runtime.txt
raw| 1 | env GO111MODULE=off |
| 2 | |
| 3 | # Issue 23882 |
| 4 | |
| 5 | [short] skip |
| 6 | |
| 7 | go test -coverpkg=all x |
| 8 | stdout ok[\s\S]+?coverage |
| 9 | |
| 10 | [!race] stop |
| 11 | |
| 12 | go test -coverpkg=all -race x |
| 13 | stdout ok[\s\S]+?coverage |
| 14 | |
| 15 | -- x/x.go -- |
| 16 | package x |
| 17 | import _ "runtime" |
| 18 | func F() {} |
| 19 | |
| 20 | -- x/x_test.go -- |
| 21 | package x |
| 22 | import "testing" |
| 23 | func TestF(t *testing.T) { F() } |