...

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

Documentation: cmd/go/testdata/script

     1# Named explicitly, test-only packages should be reported as
     2# unbuildable/uninstallable, even if there is a wildcard also matching.
     3! go build m/testonly m/testonly...
     4stderr 'no non-test Go files in'
     5! go install ./testonly
     6stderr 'no non-test Go files in'
     7
     8# Named through a wildcard, the test-only packages should be silently ignored.
     9go build m/testonly...
    10go install ./testonly...
    11
    12-- go.mod --
    13module m
    14
    15go 1.16
    16-- testonly/t_test.go --
    17package testonly
    18-- testonly2/t.go --
    19package testonly2

View as plain text