Documentation ¶
Index ¶
- func MatchStatusCode(expected any, matchMessage ...types.GomegaMatcher) types.GomegaMatcher
- func Must[T any](t T, err ...error) T
- type ProtoMatcher
- func (matcher *ProtoMatcher) FailureMessage(actual any) (message string)
- func (matcher *ProtoMatcher) Match(actual any) (success bool, err error)
- func (matcher *ProtoMatcher) Matches(x interface{}) bool
- func (matcher *ProtoMatcher) NegatedFailureMessage(actual any) (message string)
- func (matcher *ProtoMatcher) String() string
- type ProtoValueMatcher
- type StatusCodeMatcher
- func (m *StatusCodeMatcher) FailureMessage(actual any) (message string)
- func (m *StatusCodeMatcher) Match(actual any) (success bool, err error)
- func (m *StatusCodeMatcher) Matches(x interface{}) bool
- func (m *StatusCodeMatcher) NegatedFailureMessage(actual any) (message string)
- func (m *StatusCodeMatcher) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchStatusCode ¶
func MatchStatusCode(expected any, matchMessage ...types.GomegaMatcher) types.GomegaMatcher
Types ¶
type ProtoMatcher ¶
func ProtoEqual ¶
func ProtoEqual(expected proto.Message) *ProtoMatcher
func (*ProtoMatcher) FailureMessage ¶
func (matcher *ProtoMatcher) FailureMessage(actual any) (message string)
func (*ProtoMatcher) Match ¶
func (matcher *ProtoMatcher) Match(actual any) (success bool, err error)
func (*ProtoMatcher) Matches ¶
func (matcher *ProtoMatcher) Matches(x interface{}) bool
implements gomock.Matcher
func (*ProtoMatcher) NegatedFailureMessage ¶
func (matcher *ProtoMatcher) NegatedFailureMessage(actual any) (message string)
func (*ProtoMatcher) String ¶
func (matcher *ProtoMatcher) String() string
implements gomock.Matcher
type ProtoValueMatcher ¶
type ProtoValueMatcher struct {
Expected protoreflect.Value
}
func ProtoValueEqual ¶
func ProtoValueEqual(expected protoreflect.Value) *ProtoValueMatcher
func (*ProtoValueMatcher) FailureMessage ¶
func (matcher *ProtoValueMatcher) FailureMessage(actual any) (message string)
func (*ProtoValueMatcher) Match ¶
func (matcher *ProtoValueMatcher) Match(actual any) (success bool, err error)
func (*ProtoValueMatcher) NegatedFailureMessage ¶
func (matcher *ProtoValueMatcher) NegatedFailureMessage(actual any) (message string)
type StatusCodeMatcher ¶
type StatusCodeMatcher struct { Expected any // contains filtered or unexported fields }
func (*StatusCodeMatcher) FailureMessage ¶
func (m *StatusCodeMatcher) FailureMessage(actual any) (message string)
func (*StatusCodeMatcher) Match ¶
func (m *StatusCodeMatcher) Match(actual any) (success bool, err error)
func (*StatusCodeMatcher) Matches ¶
func (m *StatusCodeMatcher) Matches(x interface{}) bool
implements gomock.Matcher
func (*StatusCodeMatcher) NegatedFailureMessage ¶
func (m *StatusCodeMatcher) NegatedFailureMessage(actual any) (message string)
func (*StatusCodeMatcher) String ¶
func (m *StatusCodeMatcher) String() string
implements gomock.Matcher
Click to show internal directories.
Click to hide internal directories.