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

@mrgAndysm Can you please re-create this issue with our template and give more information how to reproduce. Thanks! _Originally posted by @codyoss in https://github.com/golang/mock/issues/652#issuecomment-1179214001_ hi i also encounter the same...

type: question
status: needs more info

# Related Issue(s) The related issues can be found in the `1.7.0 Milestone` doc: https://github.com/golang/mock/milestone/5, specifically issues #643 and #649 # Goals - [x] handle embedded interfaces from src pkg...

This works like an OR the same way that All works like an AND. If you pass 0 parameters it works the same way it always has.

mockgen should try to load all the files in the package in source mode so the user shouldn't need to specify aux_file.

type: feature request

## Requested feature This issue proposal generating a typed `.Return(` for `*gomock.Call`. it's a re-open for closed issue #427 . ## Why the feature is needed currently `.Return(` has a...

status: needs more info
type: feature request

1. ... mockgen --source model/dao/rpc/base.go --destination mock/mock_base.go only create: // Code generated by MockGen. DO NOT EDIT. // Source: model/dao/rpc/base.go // Package mock_rpc is a generated GoMock package. package mock_rpc...

type: question
status: needs more info

### Requested feature A `In([]T)` matcher which returns true if it matches one of the given value. For Example: ```go m. EXPECT(). CheckIsFruit(gomock.In([]string{"Apple", "Banana", "Cherry"})). Return(True) ``` ### Why the...

status: needs discussion
type: feature request

*Requested feature* Optional -interfaces flag for source mode so it will be possible to list only those interfaces that needed to be mocked. *Why the feature is needed* Using reflect...

type: feature request