Documentation ¶
Index ¶
- type MockHttpRequestDoer
- type MockHttpRequestDoer_Do_Call
- func (_c *MockHttpRequestDoer_Do_Call) Return(_a0 *http.Response, _a1 error) *MockHttpRequestDoer_Do_Call
- func (_c *MockHttpRequestDoer_Do_Call) Run(run func(req *http.Request)) *MockHttpRequestDoer_Do_Call
- func (_c *MockHttpRequestDoer_Do_Call) RunAndReturn(run func(*http.Request) (*http.Response, error)) *MockHttpRequestDoer_Do_Call
- type MockHttpRequestDoer_Expecter
- type MockLimiter
- type MockLimiter_Expecter
- type MockLimiter_Wait_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHttpRequestDoer ¶
MockHttpRequestDoer is an autogenerated mock type for the HttpRequestDoer type
func NewMockHttpRequestDoer ¶
func NewMockHttpRequestDoer(t interface { mock.TestingT Cleanup(func()) }) *MockHttpRequestDoer
NewMockHttpRequestDoer creates a new instance of MockHttpRequestDoer. 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 (*MockHttpRequestDoer) EXPECT ¶
func (_m *MockHttpRequestDoer) EXPECT() *MockHttpRequestDoer_Expecter
type MockHttpRequestDoer_Do_Call ¶
MockHttpRequestDoer_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do'
func (*MockHttpRequestDoer_Do_Call) Return ¶
func (_c *MockHttpRequestDoer_Do_Call) Return(_a0 *http.Response, _a1 error) *MockHttpRequestDoer_Do_Call
func (*MockHttpRequestDoer_Do_Call) Run ¶
func (_c *MockHttpRequestDoer_Do_Call) Run(run func(req *http.Request)) *MockHttpRequestDoer_Do_Call
func (*MockHttpRequestDoer_Do_Call) RunAndReturn ¶
func (_c *MockHttpRequestDoer_Do_Call) RunAndReturn(run func(*http.Request) (*http.Response, error)) *MockHttpRequestDoer_Do_Call
type MockHttpRequestDoer_Expecter ¶
type MockHttpRequestDoer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockHttpRequestDoer_Expecter) Do ¶
func (_e *MockHttpRequestDoer_Expecter) Do(req interface{}) *MockHttpRequestDoer_Do_Call
Do is a helper method to define mock.On call
- req *http.Request
type MockLimiter ¶
MockLimiter is an autogenerated mock type for the Limiter type
func NewMockLimiter ¶
func NewMockLimiter(t interface { mock.TestingT Cleanup(func()) }) *MockLimiter
NewMockLimiter creates a new instance of MockLimiter. 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 (*MockLimiter) EXPECT ¶
func (_m *MockLimiter) EXPECT() *MockLimiter_Expecter
type MockLimiter_Expecter ¶
type MockLimiter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLimiter_Expecter) Wait ¶
func (_e *MockLimiter_Expecter) Wait(_a0 interface{}) *MockLimiter_Wait_Call
Wait is a helper method to define mock.On call
- _a0 context.Context
type MockLimiter_Wait_Call ¶
MockLimiter_Wait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wait'
func (*MockLimiter_Wait_Call) Return ¶
func (_c *MockLimiter_Wait_Call) Return(_a0 error) *MockLimiter_Wait_Call
func (*MockLimiter_Wait_Call) Run ¶
func (_c *MockLimiter_Wait_Call) Run(run func(_a0 context.Context)) *MockLimiter_Wait_Call
func (*MockLimiter_Wait_Call) RunAndReturn ¶
func (_c *MockLimiter_Wait_Call) RunAndReturn(run func(context.Context) error) *MockLimiter_Wait_Call