• Kevin Burke's avatar
    cmd/go: test whether alldocs.go is up to date · d169a429
    Kevin Burke authored
    A common error is to update the help text for a command in cmd/go, but
    fail to update alldocs.go, which actually prints the help text for the
    most common commands.
    
    Add a test that the long-form documentation help text matches the
    contents of alldocs.go, which will fail the build if we fail to keep
    the documentation in sync. We can get fancier with the test output if
    this is not sufficient.
    
    Fixes golang/go#26735.
    
    Change-Id: I2509765315eeb0f362633d812343d1324a01b73b
    Reviewed-on: https://go-review.googlesource.com/127920
    Run-TryBot: Kevin Burke <kev@inburke.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    d169a429
Name
Last commit
Last update
..
internal Loading commit data...
testdata Loading commit data...
alldocs.go Loading commit data...
go11.go Loading commit data...
go_test.go Loading commit data...
go_unix_test.go Loading commit data...
go_windows_test.go Loading commit data...
help_test.go Loading commit data...
main.go Loading commit data...
mkalldocs.sh Loading commit data...
note_test.go Loading commit data...
proxy_test.go Loading commit data...
script_test.go Loading commit data...
vendor_test.go Loading commit data...