mock
mock copied to clipboard
Added WithStack method to Call struct
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