Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMatchFnInvalidArg = errors.New("match fn invalid arg")
)
View Source
var (
ErrNotEq = errors.New("match not eq")
)
Functions ¶
This section is empty.
Types ¶
type DeepEqualType ¶
type DeepEqualType struct {
// contains filtered or unexported fields
}
func DeepEqual ¶
func DeepEqual(exp interface{}) *DeepEqualType
func (*DeepEqualType) Match ¶
func (m *DeepEqualType) Match(got interface{}) error
type GRPCErrType ¶
func GRPCStatusCode ¶
func GRPCStatusCode(code codes.Code) *GRPCErrType
func (*GRPCErrType) Match ¶
func (m *GRPCErrType) Match(err error) error
type PayloadMatcher ¶
type PayloadMatcher struct {
Exp interface{}
}
func Payload ¶
func Payload(message interface{}) *PayloadMatcher
func (*PayloadMatcher) Match ¶
func (m *PayloadMatcher) Match(err error, got interface{}) error
func (*PayloadMatcher) Validate ¶
func (m *PayloadMatcher) Validate() error
type ProtoEqualType ¶
type ProtoEqualType struct {
// contains filtered or unexported fields
}
func ProtoEqual ¶
func ProtoEqual(exp interface{}) *ProtoEqualType
func (*ProtoEqualType) Match ¶
func (m *ProtoEqualType) Match(got interface{}) error
Click to show internal directories.
Click to hide internal directories.