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

     1  [short] skip
     2  [compiler:gccgo] skip
     3  
     4  # Test for issue 24588
     5  
     6  go test -c -o $WORK/coverdep -coverprofile=$WORK/no/such/dir/cover.out coverdep
     7  exists -exec $WORK/coverdep
     8  
     9  -- go.mod --
    10  module coverdep
    11  
    12  go 1.16
    13  -- p.go --
    14  package p
    15  
    16  import _ "coverdep/p1"
    17  
    18  func F() {
    19  }
    20  -- p1/p1.go --
    21  package p1
    22  
    23  import _ "errors"
    24  -- p_test.go --
    25  package p
    26  
    27  import "testing"
    28  
    29  func Test(t *testing.T) {
    30  	F()
    31  }
    32  

View as plain text