From 00d0f8e3201d1865b7cd1efa031c4dbe4a96dd7e Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Thu, 9 Feb 2012 14:12:18 +1100 Subject: [PATCH] cmd/go: rearrange help for 'go test' Put the 'go test' flags into 'go help test', so 'go help testflags' is about the flags for the compiled test binary. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5641060 --- src/cmd/go/test.go | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go index e052353413..bc2af619c2 100644 --- a/src/cmd/go/test.go +++ b/src/cmd/go/test.go @@ -56,23 +56,7 @@ compiled.) The package is built in a temporary directory so it does not interfere with the non-test installation. -See 'go help testflag' for details about flags handled by 'go test' -and the test binary. - -See 'go help importpath' for more about import paths. - -See also: go build, go vet. - `, -} - -var helpTestflag = &Command{ - UsageLine: "testflag", - Short: "description of testing flags", - Long: ` -The 'go test' command takes both flags that apply to 'go test' itself -and flags that apply to the resulting test binary. - -The flags handled by 'go test' are: +The flags handled by 'go test' itself are: -c Compile the test binary to pkg.test but do not run it. @@ -90,7 +74,23 @@ The flags handled by 'go test' are: -x Print each subcommand go test executes. -The resulting test binary, called pkg.test, where pkg is the name of the +The test binary also accepts flags that control execution of the test; these +flags are also accessible by 'go test'. See 'go help testflag' for details. + +See 'go help importpath' for more about import paths. + +See also: go build, go vet. + `, +} + +var helpTestflag = &Command{ + UsageLine: "testflag", + Short: "description of testing flags", + Long: ` +The 'go test' command takes both flags that apply to 'go test' itself +and flags that apply to the resulting test binary. + +The test binary, called pkg.test, where pkg is the name of the directory containing the package sources, has its own flags: -test.v -- 2.50.0