Skip to content

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

@eaigner

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions