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* Check type of arguments and return type for callback function in Do/DoAndReturn while add callback, similar to check types of return values in Return function. *Why the feature...

type: feature request

*Requested feature* Sometimes I'll generate a mock and `EXPECT` some calls. In cases where the test fails because the mock was called with a different input, it can be very...

type: feature request

*Requested feature* Generate more appropriate GoDoc for generated interface methods, taking into account the existing docs, if any, and describe the method parameter names. *Why the feature is needed* When...

type: feature request

**Actual behavior** A clear and concise description of what the bug is. The package alias produced by mockgen is variable for the same inputs. Specifically, sometimes we see `extract "github.com/codeclysm/extract/v3"`...

type: bug

Per https://github.com/golang/mock/issues/616#issuecomment-1120449706

I explained the background and implementation in #617. As I already implemented it I took the liberty of just opening the MR now straight away to perhaps speed up the...

This CL adds archive mode, which takes advantage of go/gcexportdata and go/types packages to extract typing info from a package archive file. Given the way go archive is designed, we...

*Requested feature* Mark a mock configuration helper function as such so that error traces point back to the call to this mock configuration helping function instead of the call to...

type: feature request

# Requested feature Similar to https://github.com/golang/mock/issues/622, having a type-safe `Do()` and `DoAndReturn()`: 1. Makes it easier to write `Do()` and `DoAndReturn()` code with autocomplete and type checks 2. When functions...

type: feature request

**Actual behavior** We have a fairly large project and running mockgen takes several minutes. During that time all of the generated mock files get deleted and rewritten. This causes 2...

help wanted
type: feature request