Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
Equal asserts that [got] and [want] are two equal protobuf messages. Under the hood, this uses the go-cmp package in combination with protocmp and also supplies a diff, in case the messages to do not match.
func EqualSlice ¶
EqualSlice asserts that [got] and [want] are two equal protobuf message slices. Under the hood, this uses the go-cmp package in combination with protocmp and also supplies a diff, in case the messages to do not match.
func NewAny ¶
NewAny creates a new *anypb.Any from a proto.Message with an assert that no error has been thrown.
func NewAnyWithPanic ¶
NewAny creates a new *anypb.Any from a proto.Message with a panic if an error has been thrown.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.