1
0
mirror of https://github.com/golang/go synced 2024-11-26 04:17:59 -07:00
go/doc/next
Alan Donovan ff2a57ba92 cmd/go/internal/test: add 'tests' vet check to 'go test' suite
(Second attempt at CL 529816 (f1d6050), reverted in
CL 571695 (1304d98) due to broken longtest builder.)

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.

A number of tests of "go vet" needed to be updated, either
to avoid mistakes caught by the analyzer, or to suppress
the analyzer when the mistakes were intended.

Also, reflect the change in go test help message.

+ release note

Fixes golang/go#44251

Change-Id: I1c311086815fe55a66cce001eaab9b41e27d1144
Reviewed-on: https://go-review.googlesource.com/c/go/+/603476
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-08-09 19:57:59 +00:00
..
6-stdlib crypto/tls: expose extensions presented by client to GetCertificate 2024-08-09 18:45:11 +00:00
1-intro.md doc: initialize next directory for Go 1.24 2024-07-22 17:55:04 +00:00
2-language.md doc: initialize next directory for Go 1.24 2024-07-22 17:55:04 +00:00
3-tools.md cmd/go/internal/test: add 'tests' vet check to 'go test' suite 2024-08-09 19:57:59 +00:00
4-runtime.md doc: initialize next directory for Go 1.24 2024-07-22 17:55:04 +00:00
5-toolchain.md doc: initialize next directory for Go 1.24 2024-07-22 17:55:04 +00:00
7-ports.md doc: initialize next directory for Go 1.24 2024-07-22 17:55:04 +00:00