-
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
-
I am aware that FreeBSD is not officially supported to run temporal. Nevertheless, I was trying to build the latest version on FreeBSD 14.0-ALPHA4 amd64. Here is how far I got:
Install dependenci…
-
@mrgAndysm Can you please re-create this issue with our template and give more information how to reproduce. Thanks!
_Originally posted by @codyoss in https://github.com/golang/mock/issues/652#issu…
-
The [go.uber.org/encoded](https://godoc.org/go.uber.org/cadence/encoded) package declares three interfaces as
aliases of `internal` package versions of those interfaces.
```go
package encoded
…
-
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 …
-
`mocks` package uses `mockery` and we are using `gomocks` everywhere else. Mocks can be easily generated by customers using `mockgen` tool from `gomocks` framework.
-
**Actual behavior** when "go list" is invoked the exit-code is discarded in `createPackageMap()`.
**Expected behavior** The exit code should be checked and if non-zero the error could be printed.
…
-
*Requested feature*
Optional -interfaces flag for source mode so it will be possible to list only those interfaces that needed to be mocked.
*Why the feature is needed*
Using reflect mode it is …
-
I have a project here, [github.com/sysulq/struct2interface](https://github.com/sysulq/struct2interface), which converts structs into interfaces. I'm looking to take it a step further—being able to aut…