Closed Jasrags closed 7 years ago
Hmm weird, @Jasrags I wonder if you could submit a PR with a test that fails demonstrating this?
Strange, now that i run it again it works as expected.
hmmm... probably something slightly different the first time you did it.
Let me know if you see it again.
Thanks @matryer! Super interested in https://github.com/matryer/moq/issues/32 BTW. Thanks for the tool.
Fancy helping with it?
If i can, i have a fork already and spent a few minutes on it just now. I'll keep on looking.
First off, thanks for the cool tool, it's a time saver. I have noticed that when generating mocks via
go generate <pkg>
and the file to be mocked having//go:generate moq -out ./mock/service_moq.go -pkg mock . Service
The generated file has the original package name of
service
and notmock
as expected. When runningmoq -out ./mock/service_moq.go -pkg mock . Service
from the service directory the generated file package is set tomock
as expected.Let me know if you need any further info from me.