Skip to content
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

Use more unique variable name for mock #39

Closed
jonathanbp opened this issue Jun 17, 2019 · 2 comments
Closed

Use more unique variable name for mock #39

jonathanbp opened this issue Jun 17, 2019 · 2 comments

Comments

@jonathanbp
Copy link

I have a generated mock that doesn't compile because it has a method where one of the arguments has the name m. This conflicts with the m name given to the mock itself in the Expect method:

func (m *mContextManager_ContextParticipantStreamServerMockRecvMsg) Expect(m interface{}) *mContextManager_ContextParticipantStreamServerMockRecvMsg {
...

This could be fixed by having a more unique name for the mock (in template.go?), I think.

@hexdigest
Copy link
Collaborator

Hi @jonathanbp !

Thanks for raising the issue, please check that v2.1.7 works for you.

@jonathanbp
Copy link
Author

It works - thanks for the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants