Documentation
¶
Index ¶
- type MockClientInterface
- type MockClientInterface_CatRandomText_Call
- func (_c *MockClientInterface_CatRandomText_Call) Return(response *http.Response, err error) *MockClientInterface_CatRandomText_Call
- func (_c *MockClientInterface_CatRandomText_Call) Run(...) *MockClientInterface_CatRandomText_Call
- func (_c *MockClientInterface_CatRandomText_Call) RunAndReturn(...) *MockClientInterface_CatRandomText_Call
- type MockClientInterface_Expecter
- type MockClientWithResponsesInterface
- type MockClientWithResponsesInterface_CatRandomTextWithResponse_Call
- func (_c *MockClientWithResponsesInterface_CatRandomTextWithResponse_Call) Return(catRandomTextResponse *cataas.CatRandomTextResponse, err error) *MockClientWithResponsesInterface_CatRandomTextWithResponse_Call
- func (_c *MockClientWithResponsesInterface_CatRandomTextWithResponse_Call) Run(...) *MockClientWithResponsesInterface_CatRandomTextWithResponse_Call
- func (_c *MockClientWithResponsesInterface_CatRandomTextWithResponse_Call) RunAndReturn(...) *MockClientWithResponsesInterface_CatRandomTextWithResponse_Call
- type MockClientWithResponsesInterface_Expecter
- type MockHttpRequestDoer
- type MockHttpRequestDoer_Do_Call
- func (_c *MockHttpRequestDoer_Do_Call) Return(response *http.Response, err 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(req *http.Request) (*http.Response, error)) *MockHttpRequestDoer_Do_Call
- type MockHttpRequestDoer_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClientInterface ¶
MockClientInterface is an autogenerated mock type for the ClientInterface type
func NewMockClientInterface ¶
func NewMockClientInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockClientInterface
NewMockClientInterface creates a new instance of MockClientInterface. 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 (*MockClientInterface) CatRandomText ¶
func (_mock *MockClientInterface) CatRandomText(ctx context.Context, text string, params *cataas.CatRandomTextParams, reqEditors ...cataas.RequestEditorFn) (*http.Response, error)
CatRandomText provides a mock function for the type MockClientInterface
func (*MockClientInterface) EXPECT ¶
func (_m *MockClientInterface) EXPECT() *MockClientInterface_Expecter
type MockClientInterface_CatRandomText_Call ¶
MockClientInterface_CatRandomText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CatRandomText'
func (*MockClientInterface_CatRandomText_Call) Return ¶
func (_c *MockClientInterface_CatRandomText_Call) Return(response *http.Response, err error) *MockClientInterface_CatRandomText_Call
func (*MockClientInterface_CatRandomText_Call) Run ¶
func (_c *MockClientInterface_CatRandomText_Call) Run(run func(ctx context.Context, text string, params *cataas.CatRandomTextParams, reqEditors ...cataas.RequestEditorFn)) *MockClientInterface_CatRandomText_Call
func (*MockClientInterface_CatRandomText_Call) RunAndReturn ¶
func (_c *MockClientInterface_CatRandomText_Call) RunAndReturn(run func(ctx context.Context, text string, params *cataas.CatRandomTextParams, reqEditors ...cataas.RequestEditorFn) (*http.Response, error)) *MockClientInterface_CatRandomText_Call
type MockClientInterface_Expecter ¶
type MockClientInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClientInterface_Expecter) CatRandomText ¶
func (_e *MockClientInterface_Expecter) CatRandomText(ctx interface{}, text interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_CatRandomText_Call
CatRandomText is a helper method to define mock.On call
- ctx context.Context
- text string
- params *cataas.CatRandomTextParams
- reqEditors ...cataas.RequestEditorFn
type MockClientWithResponsesInterface ¶
MockClientWithResponsesInterface is an autogenerated mock type for the ClientWithResponsesInterface type
func NewMockClientWithResponsesInterface ¶
func NewMockClientWithResponsesInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockClientWithResponsesInterface
NewMockClientWithResponsesInterface creates a new instance of MockClientWithResponsesInterface. 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 (*MockClientWithResponsesInterface) CatRandomTextWithResponse ¶
func (_mock *MockClientWithResponsesInterface) CatRandomTextWithResponse(ctx context.Context, text string, params *cataas.CatRandomTextParams, reqEditors ...cataas.RequestEditorFn) (*cataas.CatRandomTextResponse, error)
CatRandomTextWithResponse provides a mock function for the type MockClientWithResponsesInterface
func (*MockClientWithResponsesInterface) EXPECT ¶
func (_m *MockClientWithResponsesInterface) EXPECT() *MockClientWithResponsesInterface_Expecter
type MockClientWithResponsesInterface_CatRandomTextWithResponse_Call ¶
MockClientWithResponsesInterface_CatRandomTextWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CatRandomTextWithResponse'
func (*MockClientWithResponsesInterface_CatRandomTextWithResponse_Call) Return ¶
func (_c *MockClientWithResponsesInterface_CatRandomTextWithResponse_Call) Return(catRandomTextResponse *cataas.CatRandomTextResponse, err error) *MockClientWithResponsesInterface_CatRandomTextWithResponse_Call
func (*MockClientWithResponsesInterface_CatRandomTextWithResponse_Call) Run ¶
func (_c *MockClientWithResponsesInterface_CatRandomTextWithResponse_Call) Run(run func(ctx context.Context, text string, params *cataas.CatRandomTextParams, reqEditors ...cataas.RequestEditorFn)) *MockClientWithResponsesInterface_CatRandomTextWithResponse_Call
func (*MockClientWithResponsesInterface_CatRandomTextWithResponse_Call) RunAndReturn ¶
func (_c *MockClientWithResponsesInterface_CatRandomTextWithResponse_Call) RunAndReturn(run func(ctx context.Context, text string, params *cataas.CatRandomTextParams, reqEditors ...cataas.RequestEditorFn) (*cataas.CatRandomTextResponse, error)) *MockClientWithResponsesInterface_CatRandomTextWithResponse_Call
type MockClientWithResponsesInterface_Expecter ¶
type MockClientWithResponsesInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClientWithResponsesInterface_Expecter) CatRandomTextWithResponse ¶
func (_e *MockClientWithResponsesInterface_Expecter) CatRandomTextWithResponse(ctx interface{}, text interface{}, params interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_CatRandomTextWithResponse_Call
CatRandomTextWithResponse is a helper method to define mock.On call
- ctx context.Context
- text string
- params *cataas.CatRandomTextParams
- reqEditors ...cataas.RequestEditorFn
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(response *http.Response, err 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(req *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