matryer / moq

Interface mocking tool for go generate
http://bit.ly/meetmoq
MIT License
2k stars 127 forks source link

Improve comment on type guard in template #113

Closed sudo-suhas closed 5 years ago

sudo-suhas commented 5 years ago

If the user specifies a different package and the mock name is the same as the interface name, the type guard comment will be of the following format:

Ensure, that MyInterface does implement MyInterface.

So use the $sourcePackagePrefix in the comment.

sudo-suhas commented 5 years ago

Travis CI error is spurious and would pass if it were retried. Since this is a very minor change, merging it in. I can't, so triggering build with a force push.