Skip to content

Use more unique variable name for mock #39

@jonathanbp

Description

@jonathanbp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions