Skip to content

assert: document that filename and line number are included#233

Merged
dnephin merged 1 commit intogotestyourself:mainfrom
dnephin:improve-godoc
Apr 16, 2022
Merged

assert: document that filename and line number are included#233
dnephin merged 1 commit intogotestyourself:mainfrom
dnephin:improve-godoc

Conversation

@dnephin
Copy link
Member

@dnephin dnephin commented Apr 16, 2022

Another small improvement that I missed in #229

Anyone not familiar with the stdlib testing package may not know how the filename and line number work. This PR adds some detail to the package godoc for the assert package to explain how it works, and give some guidance for how to keep it working when assertions are called from helper functions.

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