]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: document which vet tests are enabled during go test
authorAlberto Donizetti <alb.donizetti@gmail.com>
Mon, 16 Apr 2018 09:05:47 +0000 (11:05 +0200)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Fri, 20 Apr 2018 08:29:00 +0000 (08:29 +0000)
Update #18085
Fixes #24009

Change-Id: I655ad76284480002f8d49da269be92ded306128b
Reviewed-on: https://go-review.googlesource.com/107077
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/test/test.go

index 8cceb7d231e6511f130f8e4d8016ccca3f042cc8..0eb1a072408a26cff38b4834eef0633b1048eae1 100644 (file)
 //
 // As part of building a test binary, go test runs go vet on the package
 // and its test source files to identify significant problems. If go vet
-// finds any problems, go test reports those and does not run the test binary.
-// Only a high-confidence subset of the default go vet checks are used.
-// To disable the running of go vet, use the -vet=off flag.
+// finds any problems, go test reports those and does not run the test
+// binary. Only a high-confidence subset of the default go vet checks are
+// used. That subset is: 'atomic', 'bool', 'buildtags', 'nilfunc', and
+// 'printf'. You can see the documentation for these and other vet tests
+// via "go doc cmd/vet". To disable the running of go vet, use the
+// -vet=off flag.
 //
 // All test output and summary lines are printed to the go command's
 // standard output, even if the test printed them to its own standard
index 7244717d73ee31073464f0348b2c90a3fbbd0597..d9931a333e30174e2ece15ae2913eaf3d563c868 100644 (file)
@@ -76,9 +76,12 @@ to hold ancillary data needed by the tests.
 
 As part of building a test binary, go test runs go vet on the package
 and its test source files to identify significant problems. If go vet
-finds any problems, go test reports those and does not run the test binary.
-Only a high-confidence subset of the default go vet checks are used.
-To disable the running of go vet, use the -vet=off flag.
+finds any problems, go test reports those and does not run the test
+binary. Only a high-confidence subset of the default go vet checks are
+used. That subset is: 'atomic', 'bool', 'buildtags', 'nilfunc', and
+'printf'. You can see the documentation for these and other vet tests
+via "go doc cmd/vet". To disable the running of go vet, use the
+-vet=off flag.
 
 All test output and summary lines are printed to the go command's
 standard output, even if the test printed them to its own standard