• Michael Matloob's avatar
    cmd/go: add test code packages in list -test · 52cc9e37
    Michael Matloob authored
    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: 's avatarRuss Cox <rsc@golang.org>
    52cc9e37
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
buildid Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
test2json Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...