@@ -63,11 +63,11 @@ func (b *reportBuilder) ProcessEvent(ev Event) {
63
63
case "end_test" :
64
64
b .EndTest (ev .Name , ev .Result , ev .Duration , ev .Indent )
65
65
case "run_benchmark" :
66
- b .CreateBenchmark (ev .Name )
66
+ b .CreateTest (ev .Name )
67
67
case "benchmark" :
68
68
b .BenchmarkResult (ev .Name , ev .Iterations , ev .NsPerOp , ev .MBPerSec , ev .BytesPerOp , ev .AllocsPerOp )
69
69
case "end_benchmark" :
70
- b .EndBenchmark (ev .Name , ev .Result )
70
+ b .EndTest (ev .Name , ev .Result , 0 , 0 )
71
71
case "status" :
72
72
b .End ()
73
73
case "summary" :
@@ -157,14 +157,6 @@ func (b *reportBuilder) End() {
157
157
b .lastID = 0
158
158
}
159
159
160
- // CreateBenchmark adds a benchmark with the given name to the report, and
161
- // marks it as active. If more than one benchmark exists with this name, the
162
- // most recently created benchmark will be updated. If no benchmark exists with
163
- // this name, a new benchmark is created.
164
- func (b * reportBuilder ) CreateBenchmark (name string ) {
165
- b .CreateTest (name )
166
- }
167
-
168
160
// BenchmarkResult updates an existing or adds a new test with the given
169
161
// results and marks it as active. If an existing test with this name exists
170
162
// but without result, then that one is updated. Otherwise a new one is added
@@ -184,14 +176,6 @@ func (b *reportBuilder) BenchmarkResult(name string, iterations int64, nsPerOp,
184
176
b .tests [id ] = test
185
177
}
186
178
187
- // EndBenchmark finds the benchmark with the given name and sets the result. If
188
- // more than one benchmark exists with this name, the most recently created
189
- // benchmark will be used. If no benchmark exists with this name, a new
190
- // benchmark is created.
191
- func (b * reportBuilder ) EndBenchmark (name , result string ) {
192
- b .EndTest (name , result , 0 , 0 )
193
- }
194
-
195
179
// CreateBuildError creates a new build error and marks it as active.
196
180
func (b * reportBuilder ) CreateBuildError (packageName string ) {
197
181
id := b .newID ()
0 commit comments