mocks

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientWithResponsesInterface added in v0.6.0

type ClientWithResponsesInterface struct {
	mock.Mock
}

ClientWithResponsesInterface is an autogenerated mock type for the ClientWithResponsesInterface type

func NewClientWithResponsesInterface added in v0.6.0

func NewClientWithResponsesInterface(t mockConstructorTestingTNewClientWithResponsesInterface) *ClientWithResponsesInterface

NewClientWithResponsesInterface creates a new instance of ClientWithResponsesInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ClientWithResponsesInterface) CreateTaskWithBodyWithResponse added in v0.6.0

func (_m *ClientWithResponsesInterface) CreateTaskWithBodyWithResponse(ctx context.Context, params *oapigen.CreateTaskParams, contentType string, body io.Reader, reqEditors ...oapigen.RequestEditorFn) (*oapigen.CreateTaskResponse, error)

CreateTaskWithBodyWithResponse provides a mock function with given fields: ctx, params, contentType, body, reqEditors

func (*ClientWithResponsesInterface) CreateTaskWithResponse added in v0.6.0

CreateTaskWithResponse provides a mock function with given fields: ctx, params, body, reqEditors

func (*ClientWithResponsesInterface) DeleteTaskByNameWithResponse added in v0.6.0

func (_m *ClientWithResponsesInterface) DeleteTaskByNameWithResponse(ctx context.Context, name string, reqEditors ...oapigen.RequestEditorFn) (*oapigen.DeleteTaskByNameResponse, error)

DeleteTaskByNameWithResponse provides a mock function with given fields: ctx, name, reqEditors

func (*ClientWithResponsesInterface) GetAllTasksWithResponse added in v0.6.0

func (_m *ClientWithResponsesInterface) GetAllTasksWithResponse(ctx context.Context, reqEditors ...oapigen.RequestEditorFn) (*oapigen.GetAllTasksResponse, error)

GetAllTasksWithResponse provides a mock function with given fields: ctx, reqEditors

func (*ClientWithResponsesInterface) GetClusterStatusWithResponse added in v0.7.0

func (_m *ClientWithResponsesInterface) GetClusterStatusWithResponse(ctx context.Context, reqEditors ...oapigen.RequestEditorFn) (*oapigen.GetClusterStatusResponse, error)

GetClusterStatusWithResponse provides a mock function with given fields: ctx, reqEditors

func (*ClientWithResponsesInterface) GetHealthWithResponse added in v0.6.0

func (_m *ClientWithResponsesInterface) GetHealthWithResponse(ctx context.Context, reqEditors ...oapigen.RequestEditorFn) (*oapigen.GetHealthResponse, error)

GetHealthWithResponse provides a mock function with given fields: ctx, reqEditors

func (*ClientWithResponsesInterface) GetTaskByNameWithResponse added in v0.6.0

func (_m *ClientWithResponsesInterface) GetTaskByNameWithResponse(ctx context.Context, name string, reqEditors ...oapigen.RequestEditorFn) (*oapigen.GetTaskByNameResponse, error)

GetTaskByNameWithResponse provides a mock function with given fields: ctx, name, reqEditors

type HttpClient

type HttpClient struct {
	mock.Mock
}

HttpClient is an autogenerated mock type for the httpClient type

func NewHttpClient added in v0.6.0

func NewHttpClient(t mockConstructorTestingTNewHttpClient) *HttpClient

NewHttpClient creates a new instance of HttpClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*HttpClient) Do

func (_m *HttpClient) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

type Interceptor added in v0.7.0

type Interceptor struct {
	mock.Mock
}

Interceptor is an autogenerated mock type for the Interceptor type

func NewInterceptor added in v0.7.0

func NewInterceptor(t mockConstructorTestingTNewInterceptor) *Interceptor

NewInterceptor creates a new instance of Interceptor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Interceptor) EXPECT added in v0.7.0

func (_m *Interceptor) EXPECT() *Interceptor_Expecter

func (*Interceptor) Intercept added in v0.7.0

func (_m *Interceptor) Intercept(_a0 http.ResponseWriter, _a1 *http.Request)

Intercept provides a mock function with given fields: _a0, _a1

func (*Interceptor) ShouldIntercept added in v0.7.0

func (_m *Interceptor) ShouldIntercept(_a0 *http.Request) bool

ShouldIntercept provides a mock function with given fields: _a0

type Interceptor_Expecter added in v0.7.0

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

func (*Interceptor_Expecter) Intercept added in v0.7.0

func (_e *Interceptor_Expecter) Intercept(_a0 interface{}, _a1 interface{}) *Interceptor_Intercept_Call

Intercept is a helper method to define mock.On call

  • _a0 http.ResponseWriter
  • _a1 *http.Request

func (*Interceptor_Expecter) ShouldIntercept added in v0.7.0

func (_e *Interceptor_Expecter) ShouldIntercept(_a0 interface{}) *Interceptor_ShouldIntercept_Call

ShouldIntercept is a helper method to define mock.On call

  • _a0 *http.Request

type Interceptor_Intercept_Call added in v0.7.0

type Interceptor_Intercept_Call struct {
	*mock.Call
}

Interceptor_Intercept_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Intercept'

func (*Interceptor_Intercept_Call) Return added in v0.7.0

func (*Interceptor_Intercept_Call) Run added in v0.7.0

type Interceptor_ShouldIntercept_Call added in v0.7.0

type Interceptor_ShouldIntercept_Call struct {
	*mock.Call
}

Interceptor_ShouldIntercept_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShouldIntercept'

func (*Interceptor_ShouldIntercept_Call) Return added in v0.7.0

func (*Interceptor_ShouldIntercept_Call) Run added in v0.7.0

Jump to

Keyboard shortcuts

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