Skip to content

Commit a696277

Browse files
tbpgianlancetaylor
authored andcommitted
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 <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent de22318 commit a696277

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/container/heap/heap_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func (h *myHeap) Push(v interface{}) {
3333
}
3434

3535
func (h myHeap) verify(t *testing.T, i int) {
36+
t.Helper()
3637
n := h.Len()
3738
j1 := 2*i + 1
3839
j2 := 2*i + 2

0 commit comments

Comments
 (0)