Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockHTTPClient ¶
func MockHTTPClient(rules ...ResponseRule) *http.Client
Types ¶
type ResponseRule ¶
type SimpleUrlRule ¶
func NewSimpleUrlRule ¶
func NewSimpleUrlRule(rawUrl string, response []byte) (SimpleUrlRule, error)
func (SimpleUrlRule) Apply ¶
func (s SimpleUrlRule) Apply(resp *http.Response)
Apply implements ResponseRule.
Click to show internal directories.
Click to hide internal directories.