matchers

package
v0.35.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func GomockMatchPublicFields(actual interface{}) gomock.Matcher

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL