Documentation
¶
Overview ¶
Package httpmock provides stretchr/testify/mock integration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseIdler ¶
type CloseIdler struct {
RoundTripper
}
CloseIdler is a mocked httpaux.CloseIdler that also mocks http.RoundTripper
func (*CloseIdler) CloseIdleConnections ¶
func (m *CloseIdler) CloseIdleConnections()
CloseIdleConnections implements httpaux.CloseIdler and is driven by this mock's expectations
func (*CloseIdler) OnCloseIdleConnections ¶
func (m *CloseIdler) OnCloseIdleConnections() *mock.Call
OnCloseIdleConnections starts a fluent chain for defining a CloseIdleConnections expectation
type RoundTripCall ¶
RoundTripCall is syntactic sugar around a RoundTrip *mock.Call
func (RoundTripCall) Return ¶
func (rtc RoundTripCall) Return(r *http.Response, err error) RoundTripCall
Return establishes the return values for this RoundTrip invocation
type RoundTripper ¶
RoundTripper is a mocked http.RoundTripper
func (*RoundTripper) OnRoundTrip ¶
func (m *RoundTripper) OnRoundTrip(expected interface{}) RoundTripCall
OnRoundTrip starts a *mock.Call fluent chain to define an expectation
Click to show internal directories.
Click to hide internal directories.