Documentation
¶
Index ¶
- func AssertInvalid(t *testing.T, tests []InvalidTestcase)
- func AssertProtoEqual(t *testing.T, expected, actual any, opts ...cmp.Option) bool
- func AssertValid(t *testing.T, tests []ValidTestcase)
- func Cmp(t *testing.T, expected any, opts ...cmp.Option) gomock.Matcher
- func ProtoEq(t *testing.T, msg any, opts ...cmp.Option) gomock.Matcher
- type InvalidTestcase
- type ValidTestcase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertInvalid ¶
func AssertInvalid(t *testing.T, tests []InvalidTestcase)
func AssertProtoEqual ¶
func AssertValid ¶
func AssertValid(t *testing.T, tests []ValidTestcase)
func Cmp ¶
Cmp compares the given arguments t may be nil Cmp compares the given arguments t may be nil
func ProtoEq ¶
ProtoEq is a better gomock.Eq() that works correctly for protobuf messages. Use this matcher when checking equality of structs that: - are v1 protobuf messages (i.e. implement "github.com/golang/protobuf/proto".Message). - are v2 protobuf messages (i.e. implement "google.golang.org/protobuf/proto".Message). - have fields of the above types. See https://blog.golang.org/protobuf-apiv2 for v1 vs v2 details. t may be nil
Types ¶
type InvalidTestcase ¶
type ValidTestcase ¶
Click to show internal directories.
Click to hide internal directories.