-
```
What steps will reproduce the problem?
1. Acquire https://github.com/fluffle/goirc/blob/master/event/registry.go
2. Run mockgen -source registry.go -destination mock_registry.go -package event
Wh…
-
The default package name is `mock_`. This is fine if the destination is outside the current directory, however it is invalid if you place it in the same directory as the source. A valid package would …
-
```
What steps will reproduce the problem?
1. Acquire https://github.com/fluffle/goirc/blob/master/event/registry.go
2. Run mockgen -source registry.go -destination mock_registry.go -package event
Wh…
-
Tests should include unit testing function and integration tests/ mocking on services and route handlers.
-
- [awesome](https://awesome-go.com/)
## practice
1. gin module: [oneid-aacs](https://github.com/micro-services-roadmap/oneid-aacs)
2. gin with auth & permission: [gav-server](https://github.com…
-
### What version of trpc-cmdline are you using?
v1.0.9
### Does this issue reproduce with the latest release?
yes
### What operating system and processor architecture are you using (`go en…
-
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
…
-
```
What steps will reproduce the problem?
1. Acquire https://github.com/fluffle/goirc/blob/master/event/registry.go
2. Run mockgen -source registry.go -destination mock_registry.go -package event
Wh…
-
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:…
-
```
What steps will reproduce the problem?
1. Acquire https://github.com/fluffle/goirc/blob/master/event/registry.go
2. Run mockgen -source registry.go -destination mock_registry.go -package event
Wh…