-
Hello.
I want to mock this class: https://github.com/segmentio/kafka-go/blob/master/dialer.go
I'm spinning in circles without any tangible results. Can someone please give me a hint on how to mo…
-
*Requested feature*
The source mode supports the `-destination` parameter.
This parameter is not flagged in the documentation as `(source mode)` only, so it looks like it's possible to use it fo…
-
How to reproduce:
1. Go to any project with go modules
2. Run `mockgen -destination=mockhttp.go -package=mockhttp net/http RoundTripper`
Detailed steps:
```bash
# reinstall latest mockgen versi…
-
Hi,
I'd like to generate a mock object for an inteface importing and using cgo, _i.e._ there are functions whose argument is C.some_type.
The mock object is being generated alright (with mockgen) …
-
Ran installation as in README.md and for every file I run mockgen I get:
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0…
-
With GO111MODULE=on running the following command:
```
mockgen -source=mypackage/ -destination=service_mocks.go -package=service_test Service
```
And getting an error:
`Loading input failed: load…
-
There is so many flag,I have to do this.
`mockgen -source=client.go > mock_client.go`
I wonder all flag set by default.just need
`mockgen .`
-
Hi,
Over in Boulder, we're trying to [update to the latest certificate-transparency-go](https://github.com/letsencrypt/boulder/pull/4632). We're having trouble because go mod wants to pull in a lot…
-
- Have file with //go:generate mockgen -destination mock_x/x.pb.go A/B/C/D/E/F YYY
- run go generate ./...
or alternatively run:
mockgen -destination mock_x/x.pb.go A/B/C/D/E/F YYY
from the same d…
-
I am using the latest mockgen as of today.
When I use mockgen against generated protobuf golang files, the resulting generated mock file is unusable.
These are the errors I get:
```
# github.c…