You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package second
typeClientinterface {
Method()
AnotherMethod()
}
Both first.Client and second.Client are named the same.
As a result, when I try to create the mocks, I get two files, both with NewMockClient() in them. Is there anyway I can specify a way to override the function name? Like NewMockFirstClient() and NewMockSecondClient()?
I can change the package, but then I get issues with Go (and Linters) complaining there is more than one package in the same folder.
The text was updated successfully, but these errors were encountered:
In general, I avoided documenting CLI options that are more or less obvious from the CLI help to avoid repeating the description. For such options, the README specifically says:
For more flags, run:
pegomock --help
If you feel like this is still worth being documented explicitly, I'd be happy to merge a PR ;-).
Do you have any suggestions for duplicate interface names?
For example, I have this type:
Both
first.Client
andsecond.Client
are named the same.As a result, when I try to create the mocks, I get two files, both with
NewMockClient()
in them. Is there anyway I can specify a way to override the function name? LikeNewMockFirstClient()
andNewMockSecondClient()
?I can change the package, but then I get issues with Go (and Linters) complaining there is more than one package in the same folder.
The text was updated successfully, but these errors were encountered: