-
Hello, does this linter support checking of a library usage too?
If yes, I would like to open a PR for this
## Background
As highlighted in https://pkg.go.dev/github.com/golang/mock/gomock#NewCon…
-
I've been trying to use the gomock to perform some table driven testing. I need to be able to change the expected return values based on permutations of different errors and events.
But what I've …
-
```
Loose mocks, i.e. mocks that simply return defaults for unexpected methods are
fairly common in other mock frameworks. I experimentally added this to gomock
and it seems to work. By allowing thi…
-
## Test for MongoDB
There is not in-memory MongoDB for test. [Mgo](https://github.com/go-mgo/mgo) which is the MongoDB driver for Go, also has to run its unit test on a local MongoDB server.
#…
-
gomock caller.SetArg recognizes variadic pointer parameter as a single param
## Code example
```// Some Sample Function
func (p *pkg) VariadicInterface(data ...interface{}) {
for i := range dat…
-
### What version of rules_go are you using?
v0.30.0
### What version of gazelle are you using?
v0.24.0
### What version of Bazel are you using?
4.2.1
### Does this issue re…
-
**Actual behavior** A clear and concise description of what the bug is.
I used to this kind of situation where go generate fails and the mockgen leftovers got not clean
**Expected behavior** A c…
-
```
Loose mocks, i.e. mocks that simply return defaults for unexpected methods are
fairly common in other mock frameworks. I experimentally added this to gomock
and it seems to work. By allowing thi…
-
```
Loose mocks, i.e. mocks that simply return defaults for unexpected methods are
fairly common in other mock frameworks. I experimentally added this to gomock
and it seems to work. By allowing thi…
-
https://geektutu.com/post/quick-gomock.html
gomock 是Go语言/golang 官方提供的mock库,用于在单元测试(unit tests) 中模拟一些依赖复杂,难以直接调用的场景,比如网络请求、数据库依赖和文件I/O等。本文介绍了 gomock 的使用方法,包括模拟参数(Any, Nil, Not, Eq)和返回值(Do, Return, D…