aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/alldocs.go
diff options
context:
space:
mode:
authorAlan Donovan <adonovan@google.com>2023-09-20 14:13:35 -0400
committerGopher Robot <gobot@golang.org>2024-03-14 03:12:27 +0000
commitf1d60500bcc48f06c8d322dac1e48dd4c22f5863 (patch)
tree27d971c56a9d4171f961f7a4c2644cdc38d13d6e /src/cmd/go/alldocs.go
parent6133c1e4e202af2b2a6d4873d5a28ea3438e5554 (diff)
downloadgo-f1d60500bcc48f06c8d322dac1e48dd4c22f5863.tar.gz
go-f1d60500bcc48f06c8d322dac1e48dd4c22f5863.zip
cmd/go/internal/test: add 'tests' vet check to 'go test' suite
The tests analyser reports structural problems in test declarations. Presumably most of these would be caught by go test itself, which compiles and runs (some subset of) the tests, but Benchmark and Fuzz functions are executed less frequently and may benefit more from static checks. Also, reflect the change in go test help message. + release note Fixes golang/go#44251 Change-Id: If5b9dee6d18fa0bc4de7f5f5f549eddeae953fc2 Reviewed-on: https://go-review.googlesource.com/c/go/+/529816 Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/cmd/go/alldocs.go')
-rw-r--r--src/cmd/go/alldocs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go
index dde47ac1b86..cf3485faac2 100644
--- a/src/cmd/go/alldocs.go
+++ b/src/cmd/go/alldocs.go
@@ -1756,7 +1756,7 @@
// 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, directive, errorsas,
-// ifaceassert, nilfunc, printf, and stringintconv. You can see
+// ifaceassert, nilfunc, printf, stringintconv, and tests. 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. To run all
// checks, use the -vet=all flag.