Documentation ¶
Index ¶
- type Client
- type ResponseHandler
- type ResponseMatcher
- func (m *ResponseMatcher) FailureMessage(actual interface{}) (message string)
- func (m *ResponseMatcher) Match(actual interface{}) (bool, error)
- func (m *ResponseMatcher) NegatedFailureMessage(actual interface{}) (message string)
- func (m *ResponseMatcher) Variables() (map[string]template.Variable, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client defines client which can run round-trip of API test
type ResponseHandler ¶
type ResponseHandler interface { gomegatypes.GomegaMatcher // Variables returns variables defined in the round trip Variables() (map[string]template.Variable, error) }
ResponseHandler defines handler for response It implements gomegatypes.GomegaMatcher
func MatchResponse ¶
MatchResponse returns a response matcher
type ResponseMatcher ¶
type ResponseMatcher struct {
// contains filtered or unexported fields
}
ResponseMatcher defines a matcher to match http response
func (*ResponseMatcher) FailureMessage ¶
func (m *ResponseMatcher) FailureMessage(actual interface{}) (message string)
FailureMessage implements gomegatypes.GomegaMatcher
func (*ResponseMatcher) Match ¶
func (m *ResponseMatcher) Match(actual interface{}) (bool, error)
Match implements gomegatypes.GomegaMatcher
func (*ResponseMatcher) NegatedFailureMessage ¶
func (m *ResponseMatcher) NegatedFailureMessage(actual interface{}) (message string)
NegatedFailureMessage implements gomegatypes.GomegaMatcher
Click to show internal directories.
Click to hide internal directories.