From: Shenghou Ma Date: Wed, 12 Jun 2013 11:40:58 +0000 (+0800) Subject: cmd/go: clarify test filenames in help messages X-Git-Tag: go1.2rc2~1267 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=da634dd703a10bde7a923075241fcd43048d529b;p=gostls13.git cmd/go: clarify test filenames in help messages Fixes #5655. R=golang-dev, r CC=golang-dev https://golang.org/cl/9944044 --- diff --git a/src/cmd/go/doc.go b/src/cmd/go/doc.go index eb22fe583d..9a83a2026d 100644 --- a/src/cmd/go/doc.go +++ b/src/cmd/go/doc.go @@ -396,8 +396,8 @@ 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 matching -the file pattern "*_test.go". These additional files can contain test functions, +'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. Each listed package causes the execution of a separate test binary. diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go index 6e77f190a6..8a115f3153 100644 --- a/src/cmd/go/test.go +++ b/src/cmd/go/test.go @@ -45,8 +45,8 @@ 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 matching -the file pattern "*_test.go". These additional files can contain test functions, +'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. Each listed package causes the execution of a separate test binary.