This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 606
Adding line number of caller #20
Comments
There isn't a way, but that's a perfectly reasonable request. I'll see if I can come up with something. |
I made #25 to do this. Actually... it doesn't do exactly what you asked for, but it does add filenames and line numbers to errors, which seems to suffice. |
@dsymonds Any progress on this? It would be hugely helpful to see both where an expected call was indicated that did not occur, and where a call was made that was not expected. Either one would be a big win but both would be amazing. |
Would also like to see this |
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
Our team is really enjoying the mock support. Is there a way to get the controller to print the caller class and line number...
For example
Instead of controller.go:113 or 158, could the name of the function caller be included in the error message? This would help identify where in the code is actually trying to use the mock.
Thanks for this great library!
The text was updated successfully, but these errors were encountered: