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