aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql
diff options
context:
space:
mode:
authorCatalin Nicutar <cnicutar@google.com>2016-02-21 18:32:25 +0000
committerRob Pike <r@golang.org>2016-02-24 10:40:34 +0000
commit6e6637bdb478e98d32dd10659ea1975a00aeda0a (patch)
treec04f4c9c5fcb0ee6a6690b8f489876b306c7600e /src/database/sql
parentc3ecded729214abf8a146902741cd6f9d257f68c (diff)
downloadgo-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