-
Notifications
You must be signed in to change notification settings - Fork 116
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: define imported package's local name by using flags #41
Changes from 1 commit
891fb47
b1942a0
edfd5fb
3fa9ecd
e14f5b1
2cf432d
d9bb889
fe571d5
4c28988
85bc09b
4d17cbf
6c2abe5
15ee942
f7c4941
89cfe47
3c30488
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package defined_import_local_name | ||
|
||
import ( | ||
"bytes" | ||
"context" | ||
) | ||
|
||
//go:generate mockgen -package defined_import_local_name -destination mock.go -source input.go -imports b_mock=bytes,c_mock=context | ||
|
||
type WithDotImports interface { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is DotImports referring to? In the spec I see three cases
As a reviewer, the DotImport name makes me think this is that last case in the list, but this test seems to be testing named imports (case 2). |
||
Method1() bytes.Buffer | ||
Method2() context.Context | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Could we add an additional package to test for stdlib and external imports?
Suggestion: Update the method names to reflect which scenario being tested.