Documentation ¶
Index ¶
- type RoundTripperMock
- type RoundTripperMock_Expecter
- type RoundTripperMock_RoundTrip_Call
- func (_c *RoundTripperMock_RoundTrip_Call) Return(_a0 *http.Response, _a1 error) *RoundTripperMock_RoundTrip_Call
- func (_c *RoundTripperMock_RoundTrip_Call) Run(run func(_a0 *http.Request)) *RoundTripperMock_RoundTrip_Call
- func (_c *RoundTripperMock_RoundTrip_Call) RunAndReturn(run func(*http.Request) (*http.Response, error)) *RoundTripperMock_RoundTrip_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoundTripperMock ¶
RoundTripperMock is an autogenerated mock type for the RoundTripper type
func NewRoundTripperMock ¶
func NewRoundTripperMock(t mockConstructorTestingTNewRoundTripperMock) *RoundTripperMock
NewRoundTripperMock creates a new instance of RoundTripperMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RoundTripperMock) EXPECT ¶
func (_m *RoundTripperMock) EXPECT() *RoundTripperMock_Expecter
type RoundTripperMock_Expecter ¶
type RoundTripperMock_Expecter struct {
// contains filtered or unexported fields
}
func (*RoundTripperMock_Expecter) RoundTrip ¶
func (_e *RoundTripperMock_Expecter) RoundTrip(_a0 interface{}) *RoundTripperMock_RoundTrip_Call
RoundTrip is a helper method to define mock.On call
- _a0 *http.Request
type RoundTripperMock_RoundTrip_Call ¶
RoundTripperMock_RoundTrip_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoundTrip'
func (*RoundTripperMock_RoundTrip_Call) Return ¶
func (_c *RoundTripperMock_RoundTrip_Call) Return(_a0 *http.Response, _a1 error) *RoundTripperMock_RoundTrip_Call
func (*RoundTripperMock_RoundTrip_Call) Run ¶
func (_c *RoundTripperMock_RoundTrip_Call) Run(run func(_a0 *http.Request)) *RoundTripperMock_RoundTrip_Call
func (*RoundTripperMock_RoundTrip_Call) RunAndReturn ¶
func (_c *RoundTripperMock_RoundTrip_Call) RunAndReturn(run func(*http.Request) (*http.Response, error)) *RoundTripperMock_RoundTrip_Call
Click to show internal directories.
Click to hide internal directories.