]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/test: add 'tests' vet check to 'go test' suite
authorAlan Donovan <adonovan@google.com>
Wed, 20 Sep 2023 18:13:35 +0000 (14:13 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 14 Mar 2024 03:12:27 +0000 (03:12 +0000)
commitf1d60500bcc48f06c8d322dac1e48dd4c22f5863
tree27d971c56a9d4171f961f7a4c2644cdc38d13d6e
parent6133c1e4e202af2b2a6d4873d5a28ea3438e5554
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>
doc/next/3-tools.md
src/cmd/go/alldocs.go
src/cmd/go/internal/test/test.go
src/cmd/go/testdata/script/test_bad_example.txt