Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecordedResponse ¶
type TestServer ¶
type TestServer struct { EnqueuedResponses map[string][]RecordedResponse ObservedRequests []*http.Request Server *httptest.Server }
func NewTestServer ¶
func NewTestServer(l logging.SimpleLogger) (*TestServer, func())
func (*TestServer) EnqueueResponse ¶
func (*TestServer) LastRequest ¶
func (ts *TestServer) LastRequest() (*http.Request, error)
func (*TestServer) Reset ¶
func (ts *TestServer) Reset()
Click to show internal directories.
Click to hide internal directories.