mirror of https://github.com/golang/go.git
cmd/go: document which vet tests are enabled during go test
Update #18085 Fixes #24009 Change-Id: I655ad76284480002f8d49da269be92ded306128b Reviewed-on: https://go-review.googlesource.com/107077 Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
1f5a0e8ccd
commit
4e6fe71380
|
|
@ -755,9 +755,12 @@
|
|||
//
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue