• Rob Pike's avatar
    cmd/doc: add test · d0652e7f
    Rob Pike authored
    Refactor main a bit to make it possible to run tests without an exec every time.
    (Makes a huge difference in run time.)
    
    Add a silver test. Not quite golden, since it looks for pieces rather than the
    full output, and also includes tests for what should not appear.
    
    Fixes #10920.
    
    Change-Id: I6a4951cc14e61763379754a10b0cc3484d30c267
    Reviewed-on: https://go-review.googlesource.com/11272Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    Run-TryBot: Rob Pike <r@golang.org>
    d0652e7f
Name
Last commit
Last update
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...