• Konstantin Shaposhnikov's avatar
    cmd/vet: make checking example names in _test packages more robust · 85a4f447
    Konstantin Shaposhnikov authored
    Prior to this change package "foo" had to be installed in order to check
    example names in "foo_test" package.
    
    However by the time "foo_test" package is checked a parsed "foo" package
    has been already constructed. Use it to check example names.
    
    Also change TestDivergentPackagesExamples test to pass directory of the
    package to the vet tool as it is the most common way to invoke it. This
    requires changes to errchk to add support for grabbing source files from
    a directory.
    
    Fixes #16189
    
    Change-Id: Ief103d07b024822282b86c24250835cc591793e8
    Reviewed-on: https://go-review.googlesource.com/24488Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    85a4f447
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm 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...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...
yacc Loading commit data...