Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceResponseMatcher ¶
type ServiceResponseMatcher struct { ExpectedSuccess bool ExpectedResults interface{} // contains filtered or unexported fields }
ServiceResponseMatcher checks that a service response object has the expected success value and results.
func (*ServiceResponseMatcher) FailureMessage ¶
func (sr *ServiceResponseMatcher) FailureMessage(actual interface{}) string
FailureMessage returns the failure message.
func (*ServiceResponseMatcher) Match ¶
func (sr *ServiceResponseMatcher) Match(actual interface{}) (bool, error)
Match returns true if actual matches the expected response.
func (*ServiceResponseMatcher) NegatedFailureMessage ¶
func (sr *ServiceResponseMatcher) NegatedFailureMessage(actual interface{}) string
NegatedFailureMessage returns the negated failure message.
Click to show internal directories.
Click to hide internal directories.