]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add go list -test to describe test binaries
authorRuss Cox <rsc@golang.org>
Wed, 18 Apr 2018 18:42:47 +0000 (14:42 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 26 Apr 2018 02:20:04 +0000 (02:20 +0000)
commit296e676575af1967e681b85a5f14b56ddd4a6e29
tree4bf17454cd8ec81eb6a95fdd925083bcc68fe290
parentc5f0104daf974ad8ef736dfa7cb44059ac293291
cmd/go: add go list -test to describe test binaries

Tools should be able to ask cmd/go about the dependency
graph for test binaries instead of reinventing it themselves.
Allow them to do so, with the new list -test flag.

This also fixes and tests for a bug introduced in CL 104315
that was not properly splitting dependencies on the path
between package main and the package being tested.

Change-Id: I29eb454c82893f5ee70252aaaecd9fa376eaf3c8
Reviewed-on: https://go-review.googlesource.com/107916
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/alldocs.go
src/cmd/go/go_test.go
src/cmd/go/internal/list/list.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/load/test.go
src/cmd/go/internal/test/test.go
src/cmd/go/internal/vet/vet.go