-
Yo,
When using Gomock with Ginkgo and calling `ctrl := gomock.NewController(GinkgoT())` I get:
```
golang/mock@v1.6.0/gomock/controller.go:137
You must call DeferCleanup inside a setup node …
-
so we can use them as gomock EXPECT arguments. the original matchers of gomock is too weak when dealing with complex types and assertions.
-
`github.com/golang/mock` is no longer maintained (archived since June'23, latest release on June'21). The README suggest to use the fork at `go.uber.org/mock`.
It's a drop-in replacement, so the chan…
-
The following changes InOrder to return the last called Call. This
allows a more fluent design when using InOrder, things can be better
chained together and allows composing of numerous InOrder call…
-
### Requested feature
A function to make a reference of a call into a call variable:
```go
func Ref(dest **gomock.Call, call *gomock.Call) *gomock.Call {
*dest = call
return call
}
…
-
## 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 si…
-
```
go_library(
name = "server",
srcs = [
"server.go",
":hello_go_mock",
],
importpath = "depot/codelab/hello/server",
visibility = ["//visibility:public"],…
-
I believe this custom mock is starting to reach the point of complexity and custom logic where simply using gomock and explicitly mocking each function call and return values within each test case yie…
-
```
Loose mocks, i.e. mocks that simply return defaults for unexpected methods are
fairly common in other mock frameworks. I experimentally added this to gomock
and it seems to work. By allowing thi…
-
*Requested feature*
Generate typed `Times()`, just as `Return`, `Do` and `DoAndReturn`
*Why the feature is needed*
I would like both of these cases supported:
```golang
// Supported, Return is …