Documentation ¶
Index ¶
- func ConsistOfProtos(msgs ...proto.Message) types.GomegaMatcher
- func ContainProto(msg proto.Message) types.GomegaMatcher
- func GomockMatchPublicFields(actual interface{}) gomock.Matcher
- func MatchProto(msg proto.Message) types.GomegaMatcher
- func MatchPublicFields(actual interface{}) types.GomegaMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsistOfProtos ¶ added in v0.17.0
func ConsistOfProtos(msgs ...proto.Message) types.GomegaMatcher
func ContainProto ¶
func ContainProto(msg proto.Message) types.GomegaMatcher
func GomockMatchPublicFields ¶ added in v0.17.0
Use this in a gomock EXPECT call e.g. `client.EXPECT().Update(ctx, GomockMatchPublicFields(expected)).Return(nil)`
func MatchProto ¶
func MatchProto(msg proto.Message) types.GomegaMatcher
Use this in an Expect call e.g. Expect(result).To(MatchProto(expected))
func MatchPublicFields ¶ added in v0.17.0
func MatchPublicFields(actual interface{}) types.GomegaMatcher
Use this in an Expect call e.g. Expect(result).To(MatchProto(expected)) especially when the `expected` type is an skv2 type with no String() function implemented.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.