]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: mention that _test.go files are ignored when building
authorAndrew Gerrand <adg@golang.org>
Mon, 18 Apr 2016 03:31:50 +0000 (13:31 +1000)
committerAndrew Gerrand <adg@golang.org>
Mon, 18 Apr 2016 04:05:23 +0000 (04:05 +0000)
Fixes #15315

Change-Id: I8fea31507a5f83df8a86fb067f1b11d90133dc09
Reviewed-on: https://go-review.googlesource.com/22180
Reviewed-by: Chris Broadfoot <cbro@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/build.go

index ac975c0ab7b652e44a9302df49eac00ef0d6d6ed..090b207db7fe025683216a6090b74a021ea4bf5f 100644 (file)
@@ -69,6 +69,8 @@ When compiling multiple packages or a single non-main package,
 build compiles the packages but discards the resulting object,
 serving only as a check that the packages can be built.
 
+When compiling packages, build ignores files that end in '_test.go'.
+
 The -o flag, only allowed when compiling a single package,
 forces build to write the resulting executable or object
 to the named output file, instead of the default behavior described
index c0de2e069573e6f6b62227ff7548fc6fbd6e3d4d..0d01ee1f73669600e33b05247e20a7e08f775f5c 100644 (file)
@@ -48,6 +48,8 @@ When compiling multiple packages or a single non-main package,
 build compiles the packages but discards the resulting object,
 serving only as a check that the packages can be built.
 
+When compiling packages, build ignores files that end in '_test.go'.
+
 The -o flag, only allowed when compiling a single package,
 forces build to write the resulting executable or object
 to the named output file, instead of the default behavior described