-
# Introduction
I use `go:generate` in my source code to invoke `mockgen` to generate mocked interfaces.
e.g.
```go
//go:generate mockgen -destination=mocks/foo.pb.go github.com/xxx/xxx/pkg/x…
-
docker image: golang:1.13
go version: go1.13.5
gomock version: all after v1.1.0
gomock work mode: reflect mode
However, in OSX, without docker, mockgen works well with go.mod. Very strange!
-
I want to try to use the standard library for mocking the interface, which is using mockgen.
but your package use tag versioning, which doesn't work with mockgen. I haven't try the mockery yet.
but …
-
golang 1.9 introduce this type alias feature where you can define type as alias of another type.
There are many different legit use case of that type alias.
The mockgen does not seem to be able to g…
-
### Terraform Version
```console
$ terraform version
Terraform v0.11.12
$ terraform0.12-beta1 version
Terraform v0.12.0-beta1
```
### Console Output
```console
$ terraform console…
bflad updated
4 years ago
-
Now that we are reaching the horizon of TeleIRC handler development, we need to focus on how exactly we are going to implement unit tests. We cannot move forward without having clear testing guideline…
-
I have a project that is has a v2 sub-directory like the following.
```go
// File: github.com/user/samplepkg/v2
package samplepkg
type Printer interface{
}
```
When I run a `mockgen` lik…
-
When using `-source=interface.go` the package that interface.go belongs to gets compiled/parsed before the mock is generated.
This is a problem if the tests that uses this mock also resides in the …
-
MockProtocol is hard coded in action/protocol/registry_test.go now. We would like to generate it using mockgen
-
### Situation 1
```bash
[INFO] --> Fetching google.golang.org/appengine.
[WARN] Unable to checkout google.golang.org/appengine
[ERROR] Update failed for google.golang.org/appengine: Cannot detec…
sotex updated
5 years ago