-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embed original interface into Mock struct #64
Comments
@arxeiss Your problem will be resolved if that suggestion is applied. |
Just encountered this issue. Trying to generate mocks for OpenTelemetry interfaces and they have embedded interfaces with private methods. Sigh. |
@stoikheia kindly ping. Now I meet this problem. And I also ported your PR but need you to sign CLA |
Requested feature
I would like to have option to embed original interface into generated Go structure.
Why the feature is needed
If the interface has unexported methods, the generated mock cannot be used as it does not fulfill the original interface. Embedding it however solves the issue. As discussed here https://groups.google.com/g/golang-nuts/c/6hpUErAfMHI
(Optional) Proposed solution
Solution should be pretty easy, as @stoikheia created PR in old repo golang/mock#683
The text was updated successfully, but these errors were encountered: