| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/go/src/cmd/go/testdata/script/ |
Upload File : |
env GO111MODULE=on
# go list -compiled -test must handle test-only packages
# golang.org/issue/27097.
go list -compiled -test
stdout -count=4 '^.' # 4 lines
stdout '^m$'
stdout '^m\.test$'
stdout '^m \[m\.test\]$'
stdout '^m_test \[m\.test\]$'
# https://golang.org/issue/39974: test packages should have the Module field populated.
go list -test -f '{{.ImportPath}}{{with .Module}}: {{.Path}}{{end}}'
stdout -count=4 '^.' # 4 lines
stdout '^m: m$'
stdout '^m\.test: m$'
stdout '^m \[m\.test\]: m$'
stdout '^m_test \[m\.test\]: m$'
-- go.mod --
module m
-- x_test.go --
package x
import "testing"
func Test(t *testing.T) {}
-- x_x_test.go --
package x_test
import "testing"
func Test(t *testing.T) {}