• Russ Cox's avatar
    cmd/vet: limit printf check to known Printf-like functions · 558eeb2d
    Russ Cox authored
    The name-based heuristics fail too often to be on during "go test",
    but we really want the printf vet check in "go test", so change to
    a list of exactly which standard library functions are print-like.
    
    For a later release we'd like to bring back checking for user-defined
    wrappers, but in a completely precise way. Not for Go 1.10, though.
    
    The new, more precise list includes t.Skipf, which caught some
    mistakes in standard library tests.
    
    Fixes #22936.
    
    Change-Id: I110448e3f6b75afd4327cf87b6abb4cc2021fd0d
    Reviewed-on: https://go-review.googlesource.com/83838
    Run-TryBot: Russ Cox <rsc@golang.org>
    Reviewed-by: 's avatarRob Pike <r@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    558eeb2d
Name
Last commit
Last update
..
asm Loading commit data...
buildtag Loading commit data...
cgo Loading commit data...
divergent Loading commit data...
incomplete Loading commit data...
tagtest Loading commit data...
testingpkg Loading commit data...
asm8.s Loading commit data...
assign.go Loading commit data...
atomic.go Loading commit data...
bool.go Loading commit data...
composite.go Loading commit data...
copylock.go Loading commit data...
copylock_func.go Loading commit data...
copylock_range.go Loading commit data...
deadcode.go Loading commit data...
httpresponse.go Loading commit data...
lostcancel.go Loading commit data...
method.go Loading commit data...
nilfunc.go Loading commit data...
print.go Loading commit data...
rangeloop.go Loading commit data...
shadow.go Loading commit data...
shift.go Loading commit data...
structtag.go Loading commit data...
unsafeptr.go Loading commit data...
unused.go Loading commit data...