• Robert Griesemer's avatar
    cmd/compile: provide updating mechanism for format test · 69010963
    Robert Griesemer authored
    The compiler's Format test verifies that the correct format
    strings for the given arguments are used in the compiler
    sources. The format strings are fairly specialized which is
    why we cannot use go vet; and the mapping is based on a
    hard-wired map.
    
    In the past, if that map got out of sync with the compiler
    sources, it was necessary to manually update the map. This
    change introduces an update mechanism which simply requires
    the test to be run with the -u flag.
    
    (Formerly, the -u flag was used to automatically rewrite
    format strings; now we use -r for that.)
    
    Change-Id: I9259566a6120a13cf34b143875975ada62697890
    Reviewed-on: https://go-review.googlesource.com/c/149460
    Run-TryBot: Robert Griesemer <gri@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarAustin Clements <austin@google.com>
    69010963
Name
Last commit
Last update
..
internal Loading commit data...
README.md Loading commit data...
doc.go Loading commit data...
fmt_test.go Loading commit data...
fmtmap_test.go Loading commit data...
main.go Loading commit data...