mock
mock copied to clipboard
GoMock is a mocking framework for the Go programming language.
Here is my codes: type A interface { aaa() string cstring() string } type B struct { c string } func (b *B) aaa() string { ... s := b.cstring()...
Seems like no PR has been reviewed for several months now and the last commit was Aug 12, 2022. The last official release was 2021...
**Actual behavior** A clear and concise description of what the bug is. For the interface with generics ```go type Model[T any] interface { *T TableName() string } ``` ``` go...
*Requested feature* Add builtin custom matcher function *Why the feature is needed* Currently, we should implement Matcher interface in our own code, and it can be useful to provide the...
`golang.org/x/text v0.3.0` is generating a "High Severity" warning found here: https://github.com/advisories/GHSA-69ch-w2m2-3vjp for all depending tools. [Reference in go.sum](https://github.com/golang/mock/blob/main/go.sum#L19) This should probably be updated to v0.3.8.
**Actual behaviour** Setting up a Mock with exact parameters for a method with `interface{}` varags, doesn't match. I'm writing unit tests for gocql and to allow `mockgen` to generate mocks,...
**Actual behavior** Using -aux_files when generating a mock for an interface with an embedded interface, combined with overlapping package names and a resulting named import can cause the generated code...
*Requested feature* If a test makes an unexpected use of a mocked function, the call should result in a stack trace to fasten reaction to that error and help to...
**Actual behavior** A clear and concise description of what the bug is. **Expected behavior** A clear and concise description of what you expected to happen. **To Reproduce** Steps to reproduce...