-
`protoc` is required for the build and it may need to be re-compiled surprisingly frequently. Updating environment variables and specifically `PATH` can require re-compilation. See https://github.com/…
-
I want to be able to check whether all expected calls have been made before `Controller#Finish()` gets invoked as the code being tested is running asynchronously and I can only approximate when all ca…
-
Seems like no PR has been reviewed for several months now and the last commit was Aug 12, 2022.
The last official release was 2021...
-
Suppose I have a method below,
```go
func DoSomething(result interface{}) error {
// write some data to result
return nil
}
```
so the caller can call `DoSomething` as following
```go
…
-
As can be seen in `go.mod`, we depend on `golang/mock` for mocking:
https://github.com/kubevirt/kubevirt/blob/176d0529256dc8f7263e348b1743a89ec614cb51/go.mod#L20
However, as can be seen in https:…
-
Just wanted to start a discussion on unit testing, since @diwakergupta and @GrantSeltzer mentioned it and it's been on my mind as well.
Should we mock all the API responses? It'd be simpler and less …
waits updated
7 years ago
-
**Actual behavior** A clear and concise description of what the bug is.
generated code
```
// GetMoreRecordsJSON mocks base method.
func (m *MockCountryRepositoryInterface) GetMoreRecordsJSON(arg…
-
Suppose mockgen was run on a source file that specified `proto.Message`. Today, mockgen will generate a file that imports `"github.com/golang/protobuf/proto"`, which is the current place that `proto.M…
dsnet updated
2 years ago
-
# Summary
I built a library - a very basic version of what https://github.com/cucumber/aruba does for ruby - which is used with `go test`.
# Details
Using the standard library I have `testi…
-
When mocking a function that takes arguments, not specifying those arguments causes the test to panic with following error: "runtime error: index out of range". [Example](https://gist.github.com/seppe…