Versions in this module Expand all Collapse all v0 v0.2.0 Jan 31, 2023 v0.1.0 Jan 23, 2023 Changes in this version + type DoerSpy struct + func NewDoerSpy(doer httpclient.Doer) *DoerSpy + func (d *DoerSpy) Calls() []DoerSpyRecord + func (d *DoerSpy) Do(req *http.Request) (*http.Response, error) + type DoerSpyRecord struct + InputRequest *http.Request + OutputError error + OutputResponse *http.Response + type DoerStub struct + func NewDoerStub(calls []DoerStubCall, strictOrder bool) *DoerStub + func (d *DoerStub) Do(req *http.Request) (*http.Response, error) + func (d *DoerStub) RemainingCalls() []DoerStubCall + type DoerStubCall struct + Error error + Matcher RequestMatcher + Response *http.Response + type RequestMatcher interface + MatchRequest func(req *http.Request) error + type RequestMatcherBuilder struct + func NewRequestMatcherBuilder() *RequestMatcherBuilder + func (b *RequestMatcherBuilder) BodyForm(compareWith url.Values, strict bool) *RequestMatcherBuilder + func (b *RequestMatcherBuilder) BodyJSON(compareWith any, getDest func() any, strict bool) *RequestMatcherBuilder + func (b *RequestMatcherBuilder) HeadersContains(headers http.Header) *RequestMatcherBuilder + func (b *RequestMatcherBuilder) MatchRequest(req *http.Request) error + func (b *RequestMatcherBuilder) Method(method string) *RequestMatcherBuilder + func (b *RequestMatcherBuilder) URLHost(host string) *RequestMatcherBuilder + func (b *RequestMatcherBuilder) URLPath(path string) *RequestMatcherBuilder + func (b *RequestMatcherBuilder) URLQueryParamsContains(params url.Values) *RequestMatcherBuilder + type Server struct + func NewServer(...) *Server + func (srv *Server) AssertRequest(requestExpectations RequestMatcher, ...) error