issue-1092: implement verification for private types#1094
issue-1092: implement verification for private types#1094
Conversation
|
Thank you! I'll take a look in a few days. |
|
I haven't yet looked too deeply into the implementation of this, but I think what we should do is retain the current behavior and add a warning log when mockery detects this that prompts the user to enable something like We should also add a mechanism for users to disable the warning log. You might be able to borrow the logic in v2 that lets users disable certain deprecation warnings. |
If the package name is different, even the scenario you mentioned is not applicable. So maybe there is a need for 2 detection layers, a different package name, and a different package path. |
Description
Small draft for issue #1092
Do not merge!
Type of change
Version of Go used when building/testing:
How Has This Been Tested?
Added test files for confirming no generation of invalid code, while all other test fixtures remain unchanged.
Checklist