gojuno / minimock

Powerful mock generation tool for Go programming language
MIT License
633 stars 38 forks source link

Use more unique variable name for mock #39

Closed jonathanbp closed 5 years ago

jonathanbp commented 5 years ago

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 commented 5 years ago

Hi @jonathanbp !

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

jonathanbp commented 5 years ago

It works - thanks for the quick response!