-
**Actual behavior** A clear and concise description of what the bug is.
```
=== RUN TestA
tests/A_test.go:15: Unexpected call to *tests.MockAer.Hello([[]]) at tests/A_test.go:15 because:
…
-
```go
import (
"reflect"
"testing"
"github.com/agiledragon/gomonkey"
"github.com/gin-gonic/gin"
"github.com/golang/mock/gomock"
)
func TestSeq_GIN(t *testing.T) {
ctrl := gomock.New…
-
### What would you like to be added?
Some of Kubernetes’ dependencies require contributors to sign CLAs, and some of them may not be acceptable to some of `k/k`’s contributors (or their employers). I…
skitt updated
4 weeks ago
-
Hi,
I recently installed withmock.After installation I got lots of errors in the "qur/withmock/scenarios" directory.
The type of errors were like "C source files not allowed when not using cgo or SWIG…
-
-
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 …
-
| desc | Go | Rust |
| ---------------------- | -------------------------------…
-
The `github.com/golang/gomock` library is no longer maintained as of last month (June 2023) according to the [README](https://github.com/golang/mock#gomock). The message says to switch to [go.uber.org…
-
Majority of the functions involve calls to functions from external packages which need to be mocked. Adding support for mocks can take `gotests` to the next level I believe.
e.g. An example functio…
-
In my code, there are some private interfaces that should only be accessed within the current package. However, when I use gomock to generate mock code, other packages can call NewmockXXX to create a …