-
### What version of Go are you using (`go version`)?
$ go version
go version go1.21rc2 linux/amd64
### Does this issue reproduce with the latest release?
This was introduced in 1.21rc1…
-
**Requested feature**
A new matcher combinator like `All` but returns true when **one of** the matchers returns true.
**Why the feature is needed**
We currently have `All` that matches **all*…
-
I was using gomock and wanted to use our matchers.
Sadly it didn't work out because our matchers don't implement the `gomock.Matcher` interface:
```go
type Matcher interface {
// Matches retur…
-
you can't use EXPECT() for functions that recieve a complex object with random values. Other then that, objects that hold fields that are irellevant for the matching can't be matched with the given ma…
-
It would be nice to mock method with statically typed arguments, rather than using interface arguments. I find myself check argument types all the time when mock a method, that is annoying and ineffic…
-
https://github.com/golang/mock/blob/22bbf0ddf08105dfa364d0a2fa619dfa71014af5/gomock/matchers.go#L53
When printing output for matched errors, if the expected and actual value have different types, e…
-
**Actual behavior**
Protobufs generated using google.golang.org/protobuf/cmd/protoc-gen-go are not being reliably matched by the gomock Matcher.
**Expected behavior**
The default matcher for go…
-
See also issue #233 which is related.
When a gomock call fails an expectation, if the argument is an `interface`, the output, based on the `%v` format character, is not terribly helpful, e.g.,
…
-
### What version of Go are you using (`go version`)?
$ go version
go version go1.16.5 linux/amd64
### Does this issue reproduce with the latest release?
### What operating system…
-
Hi,
I want to validate only subfields of an object, sadly i did not find a way to do this using gomock. Is there a way to create a custom matcher ? for example passing a fonction `f(interface...) …