]> Cypherpunks repositories - gostls13.git/commit
testing: allow benchmarks to print and fail
authorRob Pike <r@golang.org>
Tue, 20 Dec 2011 17:51:39 +0000 (09:51 -0800)
committerRob Pike <r@golang.org>
Tue, 20 Dec 2011 17:51:39 +0000 (09:51 -0800)
commitc50e4f5e2f260ff2b68a127843b197443460043f
treeb80376779c06e96ef4f703b3d436ea9c00856517
parent7be6229f9fa404eaac0d98951c2b6c970a3ee8d9
testing: allow benchmarks to print and fail
Refactors the benchmarks and test code.
Now benchmarks can call Errorf, Fail, etc.,
and the runner will act accordingly.

Because functionality has been folded into an
embedded type, a number of methods' docs
no longer appear in godoc output. A fix is
underway; if it doesn't happen fast enough,
I'll add wrapper methods to restore the
documentation.

R=bradfitz, adg, rsc
CC=golang-dev
https://golang.org/cl/5492060
src/pkg/testing/benchmark.go
src/pkg/testing/testing.go
test/fixedbugs/bug229.go