mocks

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewQueueT added in v1.5.0

type NewQueueT interface {
	mock.TestingT
	Cleanup(func())
}

type NewTaskT added in v1.5.0

type NewTaskT interface {
	mock.TestingT
	Cleanup(func())
}

type Queue

type Queue struct {
	mock.Mock
}

Queue is an autogenerated mock type for the Queue type

func NewQueue

func NewQueue(t NewQueueT) *Queue

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

func (*Queue) Chain

func (_m *Queue) Chain(jobs []queue.Jobs) queue.Task

Chain provides a mock function with given fields: jobs

func (*Queue) GetJobs

func (_m *Queue) GetJobs() []queue.Job

GetJobs provides a mock function with given fields:

func (*Queue) Job

func (_m *Queue) Job(job queue.Job, args []queue.Arg) queue.Task

Job provides a mock function with given fields: job, args

func (*Queue) Register

func (_m *Queue) Register(jobs []queue.Job)

Register provides a mock function with given fields: jobs

func (*Queue) Worker

func (_m *Queue) Worker(args *queue.Args) queue.Worker

Worker provides a mock function with given fields: args

type Task

type Task struct {
	mock.Mock
}

Task is an autogenerated mock type for the Task type

func NewTask

func NewTask(t NewTaskT) *Task

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

func (*Task) Dispatch

func (_m *Task) Dispatch() error

Dispatch provides a mock function with given fields:

func (*Task) DispatchSync

func (_m *Task) DispatchSync() error

DispatchSync provides a mock function with given fields:

func (*Task) OnConnection

func (_m *Task) OnConnection(connection string) queue.Task

OnConnection provides a mock function with given fields: connection

func (*Task) OnQueue

func (_m *Task) OnQueue(_a0 string) queue.Task

OnQueue 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