]> Cypherpunks repositories - gostls13.git/commit
cmd/doc: add test
authorRob Pike <r@golang.org>
Fri, 19 Jun 2015 02:39:02 +0000 (12:39 +1000)
committerRob Pike <r@golang.org>
Fri, 19 Jun 2015 21:56:59 +0000 (21:56 +0000)
commitd0652e7f82da12e84fb143c4ad6c19e39f238f05
treea51e213ea5f835e1cfbbcc577905ab8aa8e9d337
parent5ac5a9856288d20634ac21b457ec458f19ea0a37
cmd/doc: add test

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/11272
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Rob Pike <r@golang.org>
misc/nacl/testzip.proto
src/cmd/doc/doc_test.go [new file with mode: 0644]
src/cmd/doc/main.go
src/cmd/doc/pkg.go
src/cmd/doc/testdata/pkg.go [new file with mode: 0644]