-
```
What steps will reproduce the problem?
1. Acquire https://github.com/fluffle/goirc/blob/master/event/registry.go
2. Run mockgen -source registry.go -destination mock_registry.go -package event
Wh…
-
`mocks` package uses `mockery` and we are using `gomocks` everywhere else. Mocks can be easily generated by customers using `mockgen` tool from `gomocks` framework.
-
Hi team.
## What
It would be nice if the core logic of mockgen is placed in some package other than `main`. This makes mockgen importable.
`main` package should contain only CLI-related proce…
-
```
What steps will reproduce the problem?
1. Acquire https://github.com/fluffle/goirc/blob/master/event/registry.go
2. Run mockgen -source registry.go -destination mock_registry.go -package event
Wh…
-
**Actual behavior** A clear and concise description of what the bug is.
I used to this kind of situation where go generate fails and the mockgen leftovers got not clean
**Expected behavior** A c…
-
**Actual behavior**
mockgen generates a uncompilable mock file for interface using alternate major version package and generic types.
Here is a reproduce:
```go
package mockgenrepro
impo…
bcho updated
9 months ago
-
**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 issues:
* if w…
-
Suppose mockgen was run on a source file that specified `proto.Message`. Today, mockgen will generate a file that imports `"github.com/golang/protobuf/proto"`, which is the current place that `proto.M…
dsnet updated
2 years ago
-
Mockgen can't generate mocks for interfaces whose method param or return types are unnamed non-empty structs. For example:
Suppose I have a `foo.go` file whose package import path is `foo`:
```go
…
-
It's not always obvious how `mockgen`-generated code has been created,
particularly when coming to it without prior knowledge of it. Good practice
would be to include a `go:generate` directive that …