mocks

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiddlewareFunc

type MiddlewareFunc struct {
	mock.Mock
}

MiddlewareFunc is an autogenerated mock type for the MiddlewareFunc type

func NewMiddlewareFunc added in v1.11.21

func NewMiddlewareFunc(t mockConstructorTestingTNewMiddlewareFunc) *MiddlewareFunc

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

func (*MiddlewareFunc) Execute

func (_m *MiddlewareFunc) Execute(_a0 context.Context) context.Context

Execute provides a mock function with given fields: _a0

type WorkerErrorHandler

type WorkerErrorHandler struct {
	mock.Mock
}

WorkerErrorHandler is an autogenerated mock type for the WorkerErrorHandler type

func (*WorkerErrorHandler) Execute

func (_m *WorkerErrorHandler) Execute(ctx context.Context, workerType types.Worker, workerName string, message []byte, err error)

Execute provides a mock function with given fields: ctx, workerType, workerName, message, err

type WorkerHandlerFunc

type WorkerHandlerFunc struct {
	mock.Mock
}

WorkerHandlerFunc is an autogenerated mock type for the WorkerHandlerFunc type

func NewWorkerHandlerFunc added in v1.11.21

func NewWorkerHandlerFunc(t mockConstructorTestingTNewWorkerHandlerFunc) *WorkerHandlerFunc

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

func (*WorkerHandlerFunc) Execute

func (_m *WorkerHandlerFunc) Execute(ctx *candishared.EventContext) error

Execute provides a mock function with given fields: ctx

type WorkerHandlerOptionFunc added in v1.7.0

type WorkerHandlerOptionFunc struct {
	mock.Mock
}

WorkerHandlerOptionFunc is an autogenerated mock type for the WorkerHandlerOptionFunc type

func NewWorkerHandlerOptionFunc added in v1.11.21

func NewWorkerHandlerOptionFunc(t mockConstructorTestingTNewWorkerHandlerOptionFunc) *WorkerHandlerOptionFunc

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

func (*WorkerHandlerOptionFunc) Execute added in v1.7.0

func (_m *WorkerHandlerOptionFunc) Execute(_a0 *types.WorkerHandler)

Execute provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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