Skip to content
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

Implement OverridableController to allow for mock overrides #22

Merged
merged 4 commits into from
Jul 5, 2023

Conversation

styeung
Copy link
Contributor

@styeung styeung commented Jun 29, 2023

This is an initial implementation of the proposal outlined in this issue, golang/mock#685

@sywhang sywhang mentioned this pull request Jun 30, 2023
sywhang added a commit that referenced this pull request Jul 1, 2023
Originally discussed in golang/mock#238.

This adds a functional option parameter to NewController to allow adding
future configurations to control the behavior of Controller.

This will come in handy for implementing features like the one in #22.
gomock/callset.go Outdated Show resolved Hide resolved
gomock/controller.go Outdated Show resolved Hide resolved
gomock/callset.go Outdated Show resolved Hide resolved
@sywhang sywhang merged commit 82f990d into uber-go:main Jul 5, 2023
sywhang added a commit to sywhang/mock that referenced this pull request Jul 5, 2023
Originally discussed in golang/mock#238.

This adds a functional option parameter to NewController to allow adding
future configurations to control the behavior of Controller.

This will come in handy for implementing features like the one in uber-go#22.
sywhang pushed a commit to sywhang/mock that referenced this pull request Jul 5, 2023
This is an initial implementation of the proposal outlined in this
issue, golang/mock#685
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants