Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(84)

Issue 5492060: code review 5492060: testing: allow benchmarks to print and fail (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by r
Modified:
13 years, 10 months ago
Reviewers:
CC:
bradfitz, adg1, rsc, golang-dev
Visibility:
Public.

Description

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.

Patch Set 1 #

Patch Set 2 : diff -r 6ec0a5c12d75 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r f3617695d05d https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r f3617695d05d https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r f3617695d05d https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r f3617695d05d https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r f3617695d05d https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r f3617695d05d https://go.googlecode.com/hg/ #

Patch Set 9 : diff -r f3617695d05d https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r f2d3849606f5 https://go.googlecode.com/hg/ #

Patch Set 11 : diff -r f2d3849606f5 https://go.googlecode.com/hg/ #

Patch Set 12 : diff -r f2d3849606f5 https://go.googlecode.com/hg/ #

Patch Set 13 : diff -r 2f970046e1ba https://code.google.com/p/go #

Patch Set 14 : diff -r 2f970046e1ba https://code.google.com/p/go #

Patch Set 15 : diff -r 1bf987b51921 https://code.google.com/p/go #

Total comments: 4

Patch Set 16 : diff -r 5795c64ddd2a https://code.google.com/p/go #

Patch Set 17 : diff -r c5b714cc9df6 https://code.google.com/p/go #

Total comments: 3

Patch Set 18 : diff -r ce82818e2d45 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -59 lines) Patch
M src/pkg/testing/benchmark.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +60 lines, -11 lines 0 comments Download
M src/pkg/testing/testing.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +64 lines, -46 lines 0 comments Download
M test/fixedbugs/bug229.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
13 years, 10 months ago (2011-12-19 23:25:37 UTC) #1
bradfitz
yay! On Mon, Dec 19, 2011 at 3:25 PM, <r@golang.org> wrote: > Reviewers: golang-dev_googlegroups.com, > ...
13 years, 10 months ago (2011-12-19 23:39:54 UTC) #2
adg1
http://codereview.appspot.com/5492060/diff/5006/src/pkg/testing/benchmark.go File src/pkg/testing/benchmark.go (right): http://codereview.appspot.com/5492060/diff/5006/src/pkg/testing/benchmark.go#newcode165 src/pkg/testing/benchmark.go:165: b.result = BenchmarkResult{b.N, b.duration, b.bytes} there's a race here. ...
13 years, 10 months ago (2011-12-20 02:26:15 UTC) #3
r
Hello golang-dev@googlegroups.com, bradfitz@golang.org, adg@google.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-12-20 16:39:01 UTC) #4
rsc
LGTM http://codereview.appspot.com/5492060/diff/11001/src/pkg/testing/benchmark.go File src/pkg/testing/benchmark.go (right): http://codereview.appspot.com/5492060/diff/11001/src/pkg/testing/benchmark.go#newcode225 src/pkg/testing/benchmark.go:225: signal := make(chan interface{}) Please move the chan ...
13 years, 10 months ago (2011-12-20 17:36:27 UTC) #5
r
13 years, 10 months ago (2011-12-20 17:51:44 UTC) #6
*** Submitted as 67b329eb1ecb ***

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
http://codereview.appspot.com/5492060
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b