-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: import and arg collision #219
fix: import and arg collision #219
Conversation
I'm not a maintainer; I reported the bug. I like the fix. Name collisions have always been possible: they didn't happen so much because "arg0"..."arg5" are not usual package names. -func (m *MockMything) DoThat(arg0 int) internalpackage.FooExported {
+func (m *MockMything) DoThat(internalpackage_arg0 int) internalpackage.FooExported { this way we still get the v0.5.0 feature that provides human readable names when using mocks in all cases. |
Interesting, I like that idea but I wonder if it could cause more confusion. Auto-complete from the LSP could show |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment. Also, could you re-generate existing test mocks?
1a87bd5
to
92587e1
Compare
Done. Thanks for your review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you for your contribution!
@tchung1118 can we expect a new patch/minor release for this fix anytime soon? |
Resolves #218
This is my first time contributing to this project, please let me know if there is anything I need to change. Thanks!