Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackgroundWorkerClient ¶
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 (_m *BackgroundWorkerClient) EXPECT() *BackgroundWorkerClient_Expecter
type BackgroundWorkerClient_Enqueue_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 (_c *BackgroundWorkerClient_Enqueue_Call) Return(_a0 *asynq.TaskInfo, _a1 error) *BackgroundWorkerClient_Enqueue_Call
func (*BackgroundWorkerClient_Enqueue_Call) Run ¶
func (_c *BackgroundWorkerClient_Enqueue_Call) Run(run func(task *asynq.Task, opts ...asynq.Option)) *BackgroundWorkerClient_Enqueue_Call
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
Click to show internal directories.
Click to hide internal directories.