cataas

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClientInterface

type MockClientInterface struct {
	mock.Mock
}

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

type MockClientInterface_CatRandomText_Call

type MockClientInterface_CatRandomText_Call struct {
	*mock.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 (*MockClientInterface_CatRandomText_Call) Run

func (*MockClientInterface_CatRandomText_Call) RunAndReturn

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

type MockClientWithResponsesInterface struct {
	mock.Mock
}

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

type MockClientWithResponsesInterface_CatRandomTextWithResponse_Call

type MockClientWithResponsesInterface_CatRandomTextWithResponse_Call struct {
	*mock.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 (*MockClientWithResponsesInterface_CatRandomTextWithResponse_Call) Run

func (*MockClientWithResponsesInterface_CatRandomTextWithResponse_Call) RunAndReturn

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

type MockHttpRequestDoer struct {
	mock.Mock
}

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) Do

func (_mock *MockHttpRequestDoer) Do(req *http.Request) (*http.Response, error)

Do provides a mock function for the type MockHttpRequestDoer

func (*MockHttpRequestDoer) EXPECT

type MockHttpRequestDoer_Do_Call

type MockHttpRequestDoer_Do_Call struct {
	*mock.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 (*MockHttpRequestDoer_Do_Call) Run

func (*MockHttpRequestDoer_Do_Call) RunAndReturn

type MockHttpRequestDoer_Expecter

type MockHttpRequestDoer_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockHttpRequestDoer_Expecter) Do

Do is a helper method to define mock.On call

  • req *http.Request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL