mocks

package
v0.0.0-...-706d53e Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackgroundWorkerClient

type BackgroundWorkerClient struct {
	mock.Mock
}

BackgroundWorkerClient is an autogenerated mock type for the BackgroundWorkerClient type

func NewBackgroundWorkerClient

func NewBackgroundWorkerClient(t mockConstructorTestingTNewBackgroundWorkerClient) *BackgroundWorkerClient

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

func (*BackgroundWorkerClient) EXPECT

func (*BackgroundWorkerClient) Enqueue

func (_m *BackgroundWorkerClient) Enqueue(task *asynq.Task, opts ...asynq.Option) (*asynq.TaskInfo, error)

Enqueue provides a mock function with given fields: task, opts

type BackgroundWorkerClient_Enqueue_Call

type BackgroundWorkerClient_Enqueue_Call struct {
	*mock.Call
}

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

func (*BackgroundWorkerClient_Enqueue_Call) Return

func (*BackgroundWorkerClient_Enqueue_Call) Run

type BackgroundWorkerClient_Expecter

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

func (*BackgroundWorkerClient_Expecter) Enqueue

func (_e *BackgroundWorkerClient_Expecter) Enqueue(task interface{}, opts ...interface{}) *BackgroundWorkerClient_Enqueue_Call

Enqueue is a helper method to define mock.On call

  • task *asynq.Task
  • opts ...asynq.Option

Jump to

Keyboard shortcuts

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