]> Cypherpunks repositories - gostls13.git/commit
container/heap: call t.Helper() in verify()
authorTyler Bui-Palsulich <tpalsulich@google.com>
Wed, 13 Sep 2017 15:09:21 +0000 (08:09 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 13 Sep 2017 17:22:00 +0000 (17:22 +0000)
commita696277243fdb8049de8e1b10ce6144a69b12c61
treeba66e25632efc6e3cae62dec464ada0261d0531a
parentde2231888821add783305e7674bbb43d4d8453dc
container/heap: call t.Helper() in verify()

I modified verify() to fail every time to test the change. Before adding
t.Helper() (line 37 is in verify()):
/.../go/src/container/heap/heap_test.go:37: forced failure
FAIL

Afer adding t.Helper() (line 67 is where verify() is called):
/.../go/src/container/heap/heap_test.go:67: forced failure
FAIL

Fixes #21863

Change-Id: I46f0c8ec413cc664358c568fc53e48bb4a1d03d0
Reviewed-on: https://go-review.googlesource.com/63570
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/container/heap/heap_test.go