]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: move the tests into separate files
authorRob Pike <r@golang.org>
Tue, 26 Feb 2013 00:25:34 +0000 (16:25 -0800)
committerRob Pike <r@golang.org>
Tue, 26 Feb 2013 00:25:34 +0000 (16:25 -0800)
commit31444a796a70530238b23d7603f85bf8d524d5da
tree6f83d7632225e5ecfdf7892ad04ee558bbfc9832
parent71b3b460738decbce5f1797492eaa59b06d69687
cmd/vet: move the tests into separate files
Then mark them with a build tag so they're not compiled into the binary.
They are called test_*.go rather than *_test.go because they are not
for go test. Use make test to test the command.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/7377052
16 files changed:
src/cmd/vet/Makefile
src/cmd/vet/atomic.go
src/cmd/vet/buildtag.go
src/cmd/vet/method.go
src/cmd/vet/print.go
src/cmd/vet/print_unsafe.go [deleted file]
src/cmd/vet/rangeloop.go
src/cmd/vet/structtag.go
src/cmd/vet/taglit.go
src/cmd/vet/test_atomic.go [new file with mode: 0644]
src/cmd/vet/test_buildtag.go [new file with mode: 0644]
src/cmd/vet/test_method.go [new file with mode: 0644]
src/cmd/vet/test_print.go [new file with mode: 0644]
src/cmd/vet/test_rangeloop.go [new file with mode: 0644]
src/cmd/vet/test_structtag.go [new file with mode: 0644]
src/cmd/vet/test_taglit.go [new file with mode: 0644]