diff options
| author | Catalin Nicutar <cnicutar@google.com> | 2016-02-21 18:32:25 +0000 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2016-02-24 10:40:34 +0000 |
| commit | 6e6637bdb478e98d32dd10659ea1975a00aeda0a (patch) | |
| tree | c04f4c9c5fcb0ee6a6690b8f489876b306c7600e /src/database/sql | |
| parent | c3ecded729214abf8a146902741cd6f9d257f68c (diff) | |
| download | go-6e6637bdb478e98d32dd10659ea1975a00aeda0a.tar.xz | |
cmd/vet: add a check for tests with malformed names
According to golang.org/pkg/testing the first character after Test has
to be non-lowercase. Functions that don't conform to this are not
considered tests and are not loaded which can cause surprises.
This change adds a check to warn about Test-like functions in a _test
file that are not actually run by go test.
Moved over from https://go-review.googlesource.com/#/c/19466/
Change-Id: I2f89676058b27a0e35f721bdabc9fa8a9d34430d
Reviewed-on: https://go-review.googlesource.com/19724
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions
