]> Cypherpunks repositories - gostls13.git/commit
cmd/go: apply "go vet" to test files
authorIan Lance Taylor <iant@golang.org>
Fri, 12 Jan 2018 23:54:09 +0000 (15:54 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 23 Jan 2018 02:09:05 +0000 (02:09 +0000)
commitcebc7064dfa8c0888f919cfa3310b1608bffb67b
treecf0928f649cbf12d565378b62b7287c7ea71d18e
parentdbd8f3d739fe4ec34dd48f655edc15443c23a580
cmd/go: apply "go vet" to test files

In earlier versions of Go the "go vet" command would run on regular
source files and test files. That was lost in CL74750.  Bring it back.

This required moving a chunk of code from internal/test to
internal/load. The diff looks big but the code is unchanged.

Fixes #23395

Change-Id: Ie9ec183337e8db81c5fc421d118a22b351b5409e
Reviewed-on: https://go-review.googlesource.com/87636
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/test/test.go
src/cmd/go/internal/vet/vet.go