mock icon indicating copy to clipboard operation
mock copied to clipboard

Added WithStack method to Call struct

Open rusinov-artem opened this issue 1 year ago • 1 comments

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

rusinov-artem avatar Jul 13 '25 19:07 rusinov-artem

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 13 '25 19:07 CLAassistant