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

Feature Request: Given an interface, generate a mock #9

Open
ryanwalls opened this issue Apr 11, 2017 · 3 comments
Open

Feature Request: Given an interface, generate a mock #9

ryanwalls opened this issue Apr 11, 2017 · 3 comments
Assignees

Comments

@ryanwalls
Copy link

Would be great if this project had a generator similar to vektra/mockery or gomock's generator.

@maraino
Copy link
Owner

maraino commented Apr 14, 2017

I agree, I'll look into adding one.

@maraino maraino self-assigned this Apr 14, 2017
@au-phiware
Copy link

I've just discovered this project after writing my own mocking framework with a generator, I took inspiration from github.com/google/wire as I find the the generators for mockery and gomock are cumbersome and inflexible.

Would you be interested in this style of generator, see the README? The advantage is it effectively allows the author to add the methods to an existing struct.

@maraino
Copy link
Owner

maraino commented Jan 10, 2024

Hi @au-phiware, sure, I'm interested. But before you spend some time, I want to inform you that this project is inactive.

I know some people are using it. My only commit since 2018 was adding a go.mod because they asked for one. In any case, people using this would love a generator.

I'm now using https://github.com/golang/mock or its fork, https://github.com/uber-go/mock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants