]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix a misleading sentence
authorRob Pike <r@golang.org>
Mon, 8 Apr 2013 06:27:26 +0000 (23:27 -0700)
committerRob Pike <r@golang.org>
Mon, 8 Apr 2013 06:27:26 +0000 (23:27 -0700)
Apologies for not reviewing the previous CL; I was on the road.
The text was misleading; execution is no more separate than with
any other test. Rewritten. Dropped the odd adverb.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8439045

src/cmd/go/doc.go
src/cmd/go/test.go

index 2867e5f3f9877ca2a67b70cc2a25e1a63b0517f3..d7fca806270eaf81164965cff4e6bb33b38d03b9 100644 (file)
@@ -398,8 +398,8 @@ the file pattern "*_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.
 
-Additionally, test files that declare a package with the suffix "_test" will be
-compiled and executed separately from the package test binary.
+Test files that declare a package with the suffix "_test" will be compiled as a
+separate package, and then linked and run with the main test binary.
 
 By default, go test needs no arguments.  It compiles and tests the package
 with source in the current directory, including tests, and runs the tests.
index 83178d5daebfcd7cc8ebb3aa7ad3b86a5645d104..b1db16f77040059fbad66de8275f7585ec04c4a8 100644 (file)
@@ -50,8 +50,8 @@ the file pattern "*_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.
 
-Additionally, test files that declare a package with the suffix "_test" will be
-compiled and executed separately from the package test binary.
+Test files that declare a package with the suffix "_test" will be compiled as a
+separate package, and then linked and run with the main test binary.
 
 By default, go test needs no arguments.  It compiles and tests the package
 with source in the current directory, including tests, and runs the tests.