mock
mock copied to clipboard
GoMock is a mocking framework for the Go programming language.
I would like to share my experience for working with `mockgen`. In my project I have several files that I would like to generate mocks and thus I have created...
Generating mocks (reflect mode) fails with `Failed to format generated source code:` if the interface contains methods with generic types. The generated code contains the full package path as the...
resolves #554
This is an initial implementation of the proposal outlined in this issue, [Proposal: Provide an option where every invocation of EXPECT() of a mock should override any previous invocations. #685](https://github.com/golang/mock/issues/685)
Motivation is documented here: - https://github.com/golang/mock/issues/153#issuecomment-1462571305 Fixes #153
*Requested feature* A clear description of the desired feature and an example of how it would be used. For each generated interface mock include a line like: `var _ Interface...