-
Notifications
You must be signed in to change notification settings - Fork 608
genmock doesn't import self_package when interface use structure that have same package with interface #11
Comments
+1 (having the same issue) |
How are you running genmock? If I add that example to |
Thanks @dsymonds for taking a look. I call
and then e.g. i can imagine that it's a bit tricky (or not possible) to reliably generate the import statement for mocked package when using the filename (like generating a mock this way works fine:
I'm not sure if that's a bug or expected behavior, but could be eventually handy to mention this as a caveat of using |
Source mode is pretty hard to get right, and gomock can't tell what |
Makes sense. I've updated my
Thanks a lot, really appreciated. |
You shouldn't have to use |
Reason for using |
Why not use the |
Because |
Flags have to go before non-flag args. |
|
Could this be reopened? I'm trying to use the Specifically, mockgen with |
source code
Mock that was generate from genmock will have error because when genmock create mock file mock package is mock_* so mock won't find struct A in mock_* package
The text was updated successfully, but these errors were encountered: