Documentation ¶
Index ¶
- func EqPrefixedStatus(status error) gomock.Matcher
- func EqProto(t *testing.T, proto proto.Message) gomock.Matcher
- func EqStatus(t *testing.T, s error) gomock.Matcher
- func RequireEqualProto(t *testing.T, want, got proto.Message)
- func RequireEqualStatus(t *testing.T, want, got error)
- func RequirePrefixedStatus(t *testing.T, want, got error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqPrefixedStatus ¶
EqPrefixedStatus is a gomock matcher for gRPC status equality allowing trailing characters in the message.
func RequireEqualProto ¶
RequireEqualProto asserts that the two passed protocol buffer messages are equal.
Because maps in protocol buffers aren't serialized deterministically (and can be embedded into google.protobuf.Any values), this function falls back to doing a string comparison upon failure.
func RequireEqualStatus ¶
RequireEqualStatus asserts that two grpc Statuses are equal.
func RequirePrefixedStatus ¶
RequirePrefixedStatus compares that two errors, assumed to be grpc Statuses, are the same, except got may have extra trailing characters in its message.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.