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

invoke: preserve line numbers during helper methods #111

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ethomson
Copy link
Member

When invoking a helper function (or "auxiliary method", in the documentation), we lose the file/function/line information of the current call point. This means that we attribute failures to the helper function instead of the actual test.

Provide a cl_invoke function that will preserve the current state. This allows callers to use the simpler "clar style" as documented, but get the correct failure location.

When invoking a helper function (or "auxiliary method", in the
documentation), we lose the file/function/line information of the
current call point. This means that we attribute failures to the helper
function instead of the actual test.

Provide a `cl_invoke` function that will preserve the current state.
This allows callers to use the simpler "clar style" as documented, but
get the correct failure location.
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