Documentation ¶
Overview ¶
Package testhelper provides helper utilities for tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTransport ¶
type MockTransport struct {
// contains filtered or unexported fields
}
MockTransport is a fake HTTP transport for tests.
func (*MockTransport) AddResponse ¶
func (t *MockTransport) AddResponse(urlStr, body string)
AddResponse adds a fake response for the given URL.
Click to show internal directories.
Click to hide internal directories.