mock
mock copied to clipboard
Improve default failed equality match output to more clearly show diffs
Hi, maintainers! I would like to express my sincere gratitude for your efforts in maintaining gomock.
Requested feature Is the issue https://github.com/golang/mock/issues/616 resolved? If not, i hope improvement the diffs when tests fails.
I didn't find out whether the problem resolved or not as the original repository has the issue archived and cannot ask there.
Why the feature is needed As showing the original issue, it is often hard to understand and interpret the diffs.
(Optional) Proposed solution i think we can solve this problem by using the method indicated in the following comments:
- https://github.com/golang/mock/issues/616#issuecomment-1081616088
- https://github.com/golang/mock/issues/616#issuecomment-1081616088
Alternatively, adding an option to change the default matcher may resolve this, as it would allow for the use of this way.