-
go version
```
songyanh-C02R52QLG8WM:multipass songyanh$ go version
go version go1.10 darwin/amd64
```
go env
```
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/songyanhou/Library/Caches/go-build"…
-
When running against an empty interface, mockgen is writing out Go files that import the reflect library but don't actually use it causing an unexpected error during test execution:
```
imported a…
-
I'm trying to generate a mock from a source.
```
$ cat x.go
package test
type X struct{}
type S interface {
F(X)
}
```
```
$ mockgen -source x.go
// Automatically generated by MockGen.…
-
Here are my test files (2 packages):
*github.com/anyuser/pkg1/pkg1.go:*
```go
package pkg1
type I interface {
E
}
type E interface {
M()
}
```
*github.com/anyuser/pkg2/pkg2.go:*
…
-
# First and foremost consider this:
- Only RetroArch bugs should be filed here. Not core bugs or game bugs
- This is not a forum or a help section, this is strictly developer oriented
## Descript…
-
The latest release of `v1.0.1` broke our CI builds. It seems that Mockgen no longer honors the vendor folder, and instead only looks in your GOROOT and GOPATH.
Usage (`go generate` command at the t…
-
sample project structure is
```
gomocktst
├── mock_data
│ └── interface_mock.go
├── interface.go
├── interface_test.go
```
`interface.go` contains code:
```go
package gomocktst
…
-
It would be handy if there were mocks of the generated interfaces from these generators. Seems like it would not be a huge deal to add given that these are already autogenerated.
Thoughts?
Exam…
-
$ go get -u github.com/jteeuwen/go-bindata
$ go get -u github.com/golang/mock/mockgen
$ go get -u github.com/maxbrunsfeld/counterfeiter
$ go generate $(glide nv)
2017/12/14 17:24:30 Loading input …
-
Hi! I have failed [build](https://travis-ci.org/kamilsk/form-api/jobs/318024326) with gomock on the master branch.
```
2017/12/18 11:18:46 Loading input failed: gob: name not registered for interf…