-
**Actual behavior**.
On go 1.14.
Running `go generate ./...` when the `vendor` dir is present fails with:
```
package github.com/golang/mock/mockgen: cannot find package "." in:
/Us…
-
```bash
$ golangci-lint --version
golangci-lint has version 1.10.2 built from dbfcf63 on 2018-09-02T12:30:29Z
$ go version && go env
go version go1.10.2 linux/amd64
GOARCH="amd64"
GOBIN=""
GO…
-
The README at: https://github.com/golang/mock/blob/master/sample/README.md mentions an inexistent script used to generate the sample code:
> See ../update_mocks.sh for the command used to generate …
-
Mocking a method with int and string parameters generates a mock that does not expect those types. However, if both parameters are of type string, it works properly.
##### output
```
alem@alem-vm:~/W…
-
Is there way do return value depend on the input?
I want to do something like the following pseudo-code
`var response string
mock.EXPECT().SomeMethod(gomock.Any()).AnyTimes().Do(func(input string)…
-
Hi,
I am trying to use this automation/test.sh script on my laptop (Fedora 25),
to deploy and execute tests for kubevirt. and I am hitting issues with it.
Here is what I do:
```sh
unset GOROO…