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

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

View as plain text