Documentation
¶
Overview ¶
Package echidnatesting provides the exported MockClient for all tests that need to send web requests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient lets us Mock the http.client's Do() func so we can do testing without making requests
func (*MockClient) DummyBody ¶
func (m *MockClient) DummyBody() string
DummyBody returns a byte array containing a fake wp plugin struct that can be unmarshaled
func (*MockClient) SetReply ¶
func (m *MockClient) SetReply(resCode int, body, err string)
SetReply lets us set the servers reply for the mocked request
Click to show internal directories.
Click to hide internal directories.