aboutsummaryrefslogtreecommitdiff
path: root/src/testing/sub_test.go
diff options
context:
space:
mode:
authorMarcel van Lohuizen <mpvl@golang.org>2016-01-29 17:14:51 +0100
committerMarcel van Lohuizen <mpvl@golang.org>2016-03-22 14:56:15 +0000
commit23a756d856dabd86e3f83480f31c291cbcd6464a (patch)
tree7be25347c8fb9ef4979d5af09b3f0bb1606a5d22 /src/testing/sub_test.go
parent00a2a94c1eab027bc1ac5bbb9f30329dec14cf87 (diff)
downloadgo-23a756d856dabd86e3f83480f31c291cbcd6464a.tar.xz
testing: expose subtest and subbenchmark functionality
Fixes #12166 Change-Id: Ie62cba2c39beb5732447ba3688c93c08ef12abb5 Reviewed-on: https://go-review.googlesource.com/18898 Reviewed-by: Russ Cox <rsc@golang.org> Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
Diffstat (limited to 'src/testing/sub_test.go')
-rw-r--r--src/testing/sub_test.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/testing/sub_test.go b/src/testing/sub_test.go
index 58def85441..660028e700 100644
--- a/src/testing/sub_test.go
+++ b/src/testing/sub_test.go
@@ -107,9 +107,6 @@ func TestTestContext(t *T) {
}
}
-// TODO: remove this stub when API is exposed
-func (t *T) Run(name string, f func(t *T)) bool { return t.run(name, f) }
-
func TestTRun(t *T) {
realTest := t
testCases := []struct {
@@ -330,9 +327,6 @@ func TestTRun(t *T) {
}
}
-// TODO: remove this stub when API is exposed
-func (b *B) Run(name string, f func(b *B)) bool { return b.runBench(name, f) }
-
func TestBRun(t *T) {
work := func(b *B) {
for i := 0; i < b.N; i++ {