...

Text file src/cmd/go/testdata/script/cover_pkgall_runtime.txt

Documentation: cmd/go/testdata/script

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

View as plain text