• 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
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...