github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/mod_list_test.txt (about)

     1  env GO111MODULE=on
     2  
     3  # go list -compiled -test must handle test-only packages
     4  # golang.org/issue/27097.
     5  go list -compiled -test
     6  stdout '^m$'
     7  stdout '^m\.test$'
     8  stdout '^m \[m\.test\]$'
     9  
    10  -- go.mod --
    11  module m
    12  
    13  -- x_test.go --
    14  package x
    15  import "testing"
    16  func Test(t *testing.T) {}