go/analysis/passes/tests: add pointer to where test name conventions are specified

Change-Id: Id177e04271f4549d79547b6c88a99a52058288ca
Reviewed-on: https://go-review.googlesource.com/c/tools/+/162079
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
This commit is contained in:
Michael Matloob 2019-02-12 13:25:49 -05:00
parent d850aa06e8
commit fb6c8ffd22
1 changed files with 4 additions and 1 deletions

View File

@ -20,7 +20,10 @@ const Doc = `check for common mistaken usages of tests and examples
The tests checker walks Test, Benchmark and Example functions checking The tests checker walks Test, Benchmark and Example functions checking
malformed names, wrong signatures and examples documenting non-existent malformed names, wrong signatures and examples documenting non-existent
identifiers.` identifiers.
Please see the documentation for package testing in golang.org/pkg/testing
for the conventions that are enforced for Tests, Benchmarks, and Examples.`
var Analyzer = &analysis.Analyzer{ var Analyzer = &analysis.Analyzer{
Name: "tests", Name: "tests",