aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_list_test.txt
blob: a99e4f36cd58745b47b8a09efac3ce072771d713 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
env GO111MODULE=on

# go list -compiled -test must handle test-only packages
# golang.org/issue/27097.
go list -compiled -test
stdout '^m$'
stdout '^m\.test$'
stdout '^m \[m\.test\]$'

-- go.mod --
module m

-- x_test.go --
package x
import "testing"
func Test(t *testing.T) {}