This repository was archived by the owner on Jun 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 608
mockgen: record invocation arguments in generated code #554
Open
rogpeppe opened this issue
May 12, 2021
· 1 comment
· Fixed by uber-go/mock#31 · May be fixed by #702
Open
mockgen: record invocation arguments in generated code #554
rogpeppe opened this issue
May 12, 2021
· 1 comment
· Fixed by uber-go/mock#31 · May be fixed by #702
Labels
Comments
Hey, thanks for the feature request, I like this idea! I think it would also be useful to record what version of mockgen generated the mock as well. I would be happy to accept a PR for such a feature 😃 |
This was referenced Jun 12, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It's not always obvious how
mockgen
-generated code has been created,particularly when coming to it without prior knowledge of it. Good practice
would be to include a
go:generate
directive that can be used to regeneratethe code, but that's not always done.
Currently the comments on the generated code look something like this:
I propose something along the lines of this:
The text was updated successfully, but these errors were encountered: