Skip to content

testing: add t.Helper to make file:line results more useful #4899

Description

@eaigner
Currently the caller level of T's decorate function is fixed

    _, file, line, ok := runtime.Caller(3) // decorate + log + public function.

When wrapping common assertions in a code block, it would be useful to be able to modify
the caller level for correct log output.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions