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

Fix log callers when the cleanup uses t.Helper() #19

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

prashantv
Copy link
Owner

If every function in t.Cleanup uses t.Helper() and logs, then the caller information skips to the caller of t.Cleanup. Track the caller of Cleanup and use that instead of reporting faketb as caller.

If every function in `t.Cleanup` uses `t.Helper()`
and logs, then the caller information skips to the
caller of `t.Cleanup`. Track the caller of `Cleanup`
and use that instead of reporting faketb as caller.
@prashantv prashantv force-pushed the prashant/cleanup-helper branch from 3f8e965 to 13ece45 Compare January 12, 2025 05:28
@prashantv prashantv merged commit 4fa12ef into main Jan 12, 2025
3 checks passed
@prashantv prashantv deleted the prashant/cleanup-helper branch January 12, 2025 05:29
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.

1 participant