Open arxeiss opened 1 year ago
@arxeiss Thanks for open this issue with introducing my PR.
Your problem will be resolved if that suggestion is applied. I'll port it to this repo as a PR this week end.
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 https://github.com/golang/mock/pull/683