Skip to content

container/heap: use t.Helper() in verify #21863

@tbpg

Description

@tbpg

What version of Go are you using (go version)?

go version go1.9 linux/amd64

Does this issue reproduce with the latest release?

Yes.

What operating system and processor architecture are you using (go env)?

GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"

What did you do?

I read https://golang.org/src/container/heap/heap_test.go.

What did you expect to see?

I expected verify() to use t.Helper(), making test failures print the line of the call to verify().

What did you see instead?

Failures print the line where t.Errorf() was called.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions