mock icon indicating copy to clipboard operation
mock copied to clipboard

GoMock is a mocking framework for the Go programming language.

Results 86 mock issues
Sort by recently updated
recently updated
newest added

Add stacktrace on fatal exit of mocked call to allow maintainers of tests using this API to understand what is actually going wrong

H High severity golang.org/x/crypto Improper Signature Verification VULNERABILITY [CWE-347](https://cwe.mitre.org/data/definitions/347.html) [CVE-2020-9283](https://www.cve.org/CVERecord?id=CVE-2020-9283) [CVSS 8.6](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L/E:F/RL:O/RC:R) HIGH [SNYK-GOLANG-GOLANGORGXCRYPTOSSH-551923](https://app.snyk.io/vuln/SNYK-GOLANG-GOLANGORGXCRYPTOSSH-551923) SCORE 601 Introduced through github.com/golang/[email protected], github.com/gosnmp/[email protected] and others Fixed in golang.org/x/[email protected] Exploit maturity MATURE Show less...

Hi team, The proposal here is to allow for an option to bring GoMock closer in line with other mocking libraries that exist for other languages. In particular, the GoMock...

type: feature request

1. template code ```go package mock import "github.com/songzhibin97/gkit/timeout" type TestInterface interface { Call() Generics[timeout.DbJSON] } type Generics[T any] struct { generics *T } ``` 2. use comment ```shell mockgen -destination=./mocks/test.go...

This proposal is to add an option `-embed` into mockgen. Why: Sometimes we need to embed the source's interface (or structure) into a mock. For example, a grpc server takes...