]> Cypherpunks repositories - gostls13.git/commit
testing: hoisted chunks of code to prepare for Run method
authorMarcel van Lohuizen <mpvl@golang.org>
Fri, 29 Jan 2016 15:55:35 +0000 (16:55 +0100)
committerMarcel van Lohuizen <mpvl@golang.org>
Fri, 18 Mar 2016 11:35:16 +0000 (11:35 +0000)
commit89cda2db007c8389ba39d292c6372ff0c6a7622f
treeacc06bf69c07456fd6b8607cbf0222d6cc01cb6b
parent5c83e651adfa78d73634557cfaf2fbc9bde599f0
testing: hoisted chunks of code to prepare for Run method

testing.go:
- run method will evolve into the Run method.
- added level field in common

benchmark.go:
- benchContext will be central to distinguish handling of benchmarks
  between normal Run methods and ones called from within Benchmark
  function.
- expandCPU will evolve into the processing hook for Run methods
  called within normal processing.
- runBench will evolve into the Run method.

Change-Id: I1816f9985d5ba94deb0ad062302ea9aee0bb5338
Reviewed-on: https://go-review.googlesource.com/18894
Reviewed-by: Russ Cox <rsc@golang.org>
src/testing/benchmark.go
src/testing/testing.go