mocks

package
v0.6.0-beta1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MPL-2.0 Imports: 6 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 testing.TB) *ClientWithResponsesInterface

NewClientWithResponsesInterface creates a new instance of ClientWithResponsesInterface. It also registers the testing.TB 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) 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 testing.TB) *HttpClient

NewHttpClient creates a new instance of HttpClient. It also registers the testing.TB 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

Jump to

Keyboard shortcuts

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