-
**Actual behavior**
Generated code doesn't take into account whether a function parameter might shadow an imported package name.
**Expected behavior**
The generated code should use imported p…
-
Any documented `make` commands seem to require the installation of `mockgen`:
```
$ make
/home/appuser/go/bin/mockgen -destination=mock_markdown/converter.go github.com/stevejefferson/trac2gitea/…
-
**Actual behavior** A clear and concise description of what the bug is.
**Expected behavior** A clear and concise description of what you expected to
happen.
**To Reproduce** Steps to reproduce…
-
**Actual behavior** A clear and concise description of what the bug is.
generated code
```
// GetMoreRecordsJSON mocks base method.
func (m *MockCountryRepositoryInterface) GetMoreRecordsJSON(arg…
-
I'm using the Pulumi automation API in an application that i'm writing however I am having trouble writing tests that mock the functionality. Do mocks already exist for the pulumi automation API and i…
-
## Repo's worth a 2nd look
[IBM](https://github.com/IBM/ibm-auditlogging-operator/tree/master)
[IBM ibm-common-service-operator](https://github.com/IBM/ibm-common-service-operator)
[cert-manager]…
-
Consider a source file `notifier.go` we want to mock, with the following pattern :
```go
type Clonable[T any] interface {
Clone() T
}
type Finder[T Clonable[T]] interface {
Find(ctx context.…
-
I would like to share my experience for working with `mockgen`.
In my project I have several files that I would like to generate mocks and thus I have created a bash script to automate the operatio…
-
1. template code
```go
package mock
import "github.com/songzhibin97/gkit/timeout"
type TestInterface interface {
Call() Generics[timeout.DbJSON]
}
type Generics[T any] struct {
generic…
-
Currently, there's no CI/CD tool in place in the repository. Github Actions might be a good solution, alternatively CircleCI is fine also.
The CI must perform:
- [x] unit tests
- [x] static chec…