...

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

Documentation: cmd/go/testdata/script

     1[short] skip
     2[compiler:gccgo] skip # gccgo has no cover tool
     3
     4go test -coverpkg=coverdot/a,coverdot/b coverdot/b
     5! stderr '[^0-9]0\.0%'
     6! stdout '[^0-9]0\.0%'
     7
     8-- go.mod --
     9module coverdot
    10
    11go 1.16
    12-- a/a.go --
    13package a
    14
    15func F() {}
    16-- b/b.go --
    17package b
    18
    19import . "coverdot/a"
    20
    21func G() { F() }
    22-- b/b_test.go --
    23package b
    24
    25import "testing"
    26
    27func TestG(t *testing.T) {
    28	G()
    29}

View as plain text