-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
mock: simplify implementation of FunctionalOptions #1571
Conversation
@snirye Could you review this change as you are a |
@nbaztec Could you review this change as you wrote the initial implementation? |
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
I did some testing. No behavioural change but less uncecessary reflection.
Remove unnecessary use of reflect in the implementation of mock.FunctionalOptions().
2a14d5a
to
d4a63f5
Compare
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.
Still LGTM
Summary
Remove unnecessary use of reflect in the implementation of mock.FunctionalOptions().
Changes
FunctionalOptionsArgument
to be a slice of arguments to match the variadic argument ofFunctionalOptions
.reflect
.Motivation