-
# 使用 Gomock 进行单元测试
[https://eddycjy.com/posts/go/talk/2018-11-25-gomock/](https://eddycjy.com/posts/go/talk/2018-11-25-gomock/)
-
This appears to only affect reflect mode. Source mode works correctly. It may be that this bug exists because type aliases are not available through reflection. If that is the case, feel free to close…
-
We've found that gomock introduces more problems than it solves. I'd recommend removing it and replacing with simple interface embedding. The following provides the same functionality as gomock:
```
…
-
Time to migrate a newer version of mockgen on `steve`, currently from 0.1.6 to 0.4.0, and stop using the archived github.com/golang/mock/gomock
Issue #46972 did this on other modules, but didn't co…
-
What methods in redismock can replace gomock.Any()?
-
**Requested feature**
A helper method that would make inline construction of mocks possible.
**Why the feature is needed**
So the test code would look nicer
**Proposed solution**
Maybe so…
mniak updated
10 months ago
-
There is a strange behaviour for the `Call` when triggered in go routines, a `data race` will be detected from timer triggered go routine but not in channel triggered go routine, see the bellow test c…
-
redis.MGet only accepts two params. First is context, Second is a string slice.
So you can try change as this:
mockRedis.EXPECT().MGet(gomock.Any(), gomock.Any(), gomock.Any()).DoAndReturn(func(con…
-
Update to https://github.com/container-storage-interface/spec/pull/552/ has broken quite some Kubernetes CSI sidecars.
So far I identified two issues:
1. [gomock](https://github.com/golang/mock…
-
`mocks` package uses `mockery` and we are using `gomocks` everywhere else. Mocks can be easily generated by customers using `mockgen` tool from `gomocks` framework.