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

Merged
merged 1 commit into from
Jan 22, 2025
Merged

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.
@ethomson ethomson merged commit 1e421ff into main Jan 22, 2025
6 checks passed
@ethomson ethomson deleted the ethomson/invoke branch January 22, 2025 23:03
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