Skip to content

Added WithStack method to Call struct #270

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

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

Conversation

rusinov-artem
Copy link

This method allow to see not only file:line where the mock was called from, but also some file:line entries down the stack.

Why do I need it?

#269

Some times i like to declare my mock calls not directly in the test, but in a helper function. And than i use this helper function to make my tests more readable.
When mock expectations fails error message point me to the helper function
file:line position, but i want also see where it was called in the test func

This method allow to see not only file:line where the mock was called
from, but also some file:line entries down the stack
@CLAassistant
Copy link

CLAassistant commented Jul 13, 2025

CLA assistant check
All committers have signed the CLA.

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.

2 participants