mock icon indicating copy to clipboard operation
mock copied to clipboard

GoMock is a mocking framework for the Go programming language.

Results 86 mock issues
Sort by recently updated
recently updated
newest added

*Requested feature* Mockgen supports creating `github.com/golang/mock/mockgen/model.Interface` models from `reflect.Type` data using https://github.com/golang/mock/blob/6d816de489c18a7e9a8fbd2aa5bb2dd75f2bbc86/mockgen/model/model.go#L295 But there is no analogue for creating `model.Interface`'s for mock generation from `go/types.Type` data. *Why the feature is...

type: feature request

Hello I am seeing an issue when trying to mock a method and not sure how to solve. Its a very simple error, but sort of says I'm getting the...

Is it possible to generate unexported mock types? i.e input: ```go package user type userRepo interface {} ``` output: ```go package user type mockUserRepo struct {} ``` This way mocks...

type: feature request

I want to be able to check whether all expected calls have been made before `Controller#Finish()` gets invoked as the code being tested is running asynchronously and I can only...

type: feature request

Would be nice to have a flag to toggle off all generated comments not only the package one.

type: feature request

The default package name is `mock_`. This is fine if the destination is outside the current directory, however it is invalid if you place it in the same directory as...

type: feature request

Hi. I would appreciate your feedback for this pull request. It is kind of similar to: https://github.com/golang/mock/pull/188 For each method you can define a fallback / default behaviour by calling:...

*Requested feature* Provide possibility to setup default Matcher so you would not need to wrap all your arguments into your custom matcher. *Why the feature is needed* When you have...

status: needs discussion
type: feature request

Allow stacking mocks on top of real implementations (or other mocks). If a call doesn't match an expectation in one layer, it can defer the call to the next layer....

status: needs discussion
type: feature request

Hi team. ## What It would be nice if the core logic of mockgen is placed in some package other than `main`. This makes mockgen importable. `main` package should contain...

status: needs discussion
type: feature request