Versions in this module Expand all Collapse all v0 v0.0.5 May 6, 2019 Changes in this version + type ActionResponse struct + Body *ResponseBody + Delay *Delay + Headers map[string][]string + StatusCode int + type Client struct + BaseURL string + T *testing.T + func (c *Client) AddExpectation(exp *Expectation) + func (c *Client) AddVerification(exp *Expectation) + func (c *Client) AddVerificationSequence(exps ...*Expectation) + func (c *Client) Clear(path string) + func (c *Client) Reset() + type Delay struct + TimeUnit string + Value int + type Expectation struct + Request *RequestMatcher + Response *ActionResponse + Times *Times + func CreateExpectation(opts ...ExpectationOption) *Expectation + func CreateVerification(opts ...ExpectationOption) *Expectation + type ExpectationOption func(e *Expectation) *Expectation + func ThenAtLeastCalls(times int) ExpectationOption + func ThenAtMostCalls(times int) ExpectationOption + func ThenResponseDelay(delay time.Duration) ExpectationOption + func ThenResponseJSON(body string) ExpectationOption + func ThenResponseStatus(statusCode int) ExpectationOption + func ThenResponseText(body string) ExpectationOption + func WhenRequestAuth(authToken string) ExpectationOption + func WhenRequestHeaders(headers map[string][]string) ExpectationOption + func WhenRequestMethod(method string) ExpectationOption + func WhenRequestPath(path string) ExpectationOption + func WhenRequestQueryStringParameters(qsp map[string][]string) ExpectationOption + func WhenTimes(times int) ExpectationOption + type RequestMatcher struct + Headers map[string][]string + Method string + Path string + QueryStringParameters map[string][]string + type ResponseBody struct + String string + Type string + type Times struct + AtLeast *int + AtMost *int + RemainingTimes int + Unlimited *bool + type VerificationSequence struct + Requests []*RequestMatcher