...

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

Documentation: cmd/go/testdata/script

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

View as plain text