Testing using GoMock package

Requirement:
While mocking a function a blank parameter is passed which should get populated by the function internally.
Using gomock.Matcher it works via force assigning but using gomock.AssignableToTypeOf fails.
Need help to acheive this without using the matcher.

Example:
https://play.golang.org/p/i_l-6CTOM-f

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.