1
0
mirror of https://github.com/golang/go synced 2024-11-08 00:26:18 -07:00
go/src/cmd
Michael Matloob 52cc9e3762 cmd/go: add test code packages in list -test
Previously go list -test <pkg> would return pkg and, if it exists,
pkg.test, the test main package. This change will also list the
two test code packages (if they exist) that contain testing functions,
<pkg> [<pkg>.test] and <pkg>_test [<pkg>.test].

These packages which contain testing code are usually the packages
go list users desire to know about, so they should be surfaced
in go list -test.

See the discussion at
golang.org/cl/123635#message-5befbc66663063fb7247645a02ab1327a681e362
for more context.

Change-Id: I7170b539d02b548c050ac54048735ed785f47389
Reviewed-on: https://go-review.googlesource.com/126475
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2018-07-30 16:40:04 +00:00
..
addr2line
api
asm cmd/internal/obj/arm64: reject incorrect form of LDP/STP 2018-07-30 15:31:06 +00:00
buildid
cgo cmd/cgo: document that #including source files in subdirectories is a bad idea 2018-07-28 01:14:45 +00:00
compile cmd/compile: set stricter inlining threshold in large functions 2018-07-24 16:11:08 +00:00
cover cmd/cover: invoke go command to find packages 2018-07-10 03:56:55 +00:00
dist cmd/cgo: update JNI's jobject to uintptr check for newer Android NDKs 2018-07-17 16:51:15 +00:00
doc cmd/doc: continue to search when package import fails 2018-06-11 22:09:14 +00:00
fix
go cmd/go: add test code packages in list -test 2018-07-30 16:40:04 +00:00
gofmt
internal cmd/internal/obj/arm64: reject incorrect form of LDP/STP 2018-07-30 15:31:06 +00:00
link cmd/link: added test of availability of gcc 2018-07-27 18:35:13 +00:00
nm cmd/nm: fix TestGoExec on Plan 9 2018-06-11 20:58:09 +00:00
objdump
pack
pprof cmd/pprof: disable readline UI support for TERM=dumb 2018-07-11 01:08:56 +00:00
test2json
trace runtime, sycall/js: add support for callbacks from JavaScript 2018-06-14 21:50:53 +00:00
vendor cmd/vendor/golang.org/x/sys/unix: pick up fixes for TestUtimesNanoAt 2018-07-02 15:39:44 +00:00
vet cmd/vet: if a function modifies its args, it's not a print wrapper 2018-07-23 22:45:16 +00:00