diff options
author | Andrew Gerrand <adg@golang.org> | 2013-06-20 10:29:38 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2013-06-20 10:29:38 +1000 |
commit | ce0a33bb5e272a51e14e7791d1106f3f27ccc69a (patch) | |
tree | d63a5dcb687d7d8fe3e275f30e8575abcc3ee35a /src/cmd/go/test.go | |
parent | 4a62af7b08cdef5045a12db02e349ddb15a14490 (diff) | |
download | go-ce0a33bb5e272a51e14e7791d1106f3f27ccc69a.tar.gz |
cmd/go: document that files beginning with . or _ are ignored
Fixes issue 5655.
R=golang-dev, minux.ma, r
CC=golang-dev
https://codereview.appspot.com/10410045
Diffstat (limited to 'src/cmd/go/test.go')
-rw-r--r-- | src/cmd/go/test.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go index c06fe378b..2e2352653 100644 --- a/src/cmd/go/test.go +++ b/src/cmd/go/test.go @@ -45,9 +45,11 @@ It prints a summary of the test results in the format: followed by detailed output for each failed package. -'Go test' recompiles each package along with any files with names ending in -"_test.go". These additional files can contain test functions, -benchmark functions, and example functions. See 'go help testfunc' for more. +'Go test' recompiles each package along with any files with names matching +the file pattern "*_test.go". +Files whose names begin with "_" (including "_test.go") or "." are ignored. +These additional files can contain test functions, benchmark functions, and +example functions. See 'go help testfunc' for more. Each listed package causes the execution of a separate test binary. Test files that declare a package with the suffix "_test" will be compiled as a |