Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mark all test helper funcs via t.Helper #276

Merged
merged 1 commit into from
Nov 19, 2021
Merged

mark all test helper funcs via t.Helper #276

merged 1 commit into from
Nov 19, 2021

Conversation

mvdan
Copy link
Contributor

@mvdan mvdan commented Nov 19, 2021

(see commit message)

This will allow testing errors to point to the caller position,
which is more useful than where the test helper is declared.

While here, use testing.TB for its intended purpose.
That interface is broader than TestingT,
but we're also never going to use an implementation other than testing.
@welcome

This comment has been minimized.

@hannahhoward hannahhoward merged commit 5cc467f into ipfs:main Nov 19, 2021
@hannahhoward
Copy link
Collaborator

I didn't know about t.Helper! Thanks @mvdan

rvagg pushed a commit that referenced this pull request Nov 30, 2021
This will allow testing errors to point to the caller position,
which is more useful than where the test helper is declared.

While here, use testing.TB for its intended purpose.
That interface is broader than TestingT,
but we're also never going to use an implementation other than testing.
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
@mvdan mvdan deleted the tests-1 branch December 17, 2021 14:02
marten-seemann pushed a commit that referenced this pull request Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants