// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify

package queueing

import (
	"context"

	"github.com/CMSgov/bcda-app/bcdaworker/queueing/worker_types"
	mock "github.com/stretchr/testify/mock"
)

// NewMockEnqueuer creates a new instance of MockEnqueuer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewMockEnqueuer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEnqueuer {
	mock := &MockEnqueuer{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}

// MockEnqueuer is an autogenerated mock type for the Enqueuer type
type MockEnqueuer struct {
	mock.Mock
}

type MockEnqueuer_Expecter struct {
	mock *mock.Mock
}

func (_m *MockEnqueuer) EXPECT() *MockEnqueuer_Expecter {
	return &MockEnqueuer_Expecter{mock: &_m.Mock}
}

// AddJob provides a mock function for the type MockEnqueuer
func (_mock *MockEnqueuer) AddJob(ctx context.Context, job worker_types.JobEnqueueArgs, priority int) error {
	ret := _mock.Called(ctx, job, priority)

	if len(ret) == 0 {
		panic("no return value specified for AddJob")
	}

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, worker_types.JobEnqueueArgs, int) error); ok {
		r0 = returnFunc(ctx, job, priority)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

// MockEnqueuer_AddJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddJob'
type MockEnqueuer_AddJob_Call struct {
	*mock.Call
}

// AddJob is a helper method to define mock.On call
//   - ctx context.Context
//   - job worker_types.JobEnqueueArgs
//   - priority int
func (_e *MockEnqueuer_Expecter) AddJob(ctx interface{}, job interface{}, priority interface{}) *MockEnqueuer_AddJob_Call {
	return &MockEnqueuer_AddJob_Call{Call: _e.mock.On("AddJob", ctx, job, priority)}
}

func (_c *MockEnqueuer_AddJob_Call) Run(run func(ctx context.Context, job worker_types.JobEnqueueArgs, priority int)) *MockEnqueuer_AddJob_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 worker_types.JobEnqueueArgs
		if args[1] != nil {
			arg1 = args[1].(worker_types.JobEnqueueArgs)
		}
		var arg2 int
		if args[2] != nil {
			arg2 = args[2].(int)
		}
		run(
			arg0,
			arg1,
			arg2,
		)
	})
	return _c
}

func (_c *MockEnqueuer_AddJob_Call) Return(err error) *MockEnqueuer_AddJob_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *MockEnqueuer_AddJob_Call) RunAndReturn(run func(ctx context.Context, job worker_types.JobEnqueueArgs, priority int) error) *MockEnqueuer_AddJob_Call {
	_c.Call.Return(run)
	return _c
}

// AddPrepareJob provides a mock function for the type MockEnqueuer
func (_mock *MockEnqueuer) AddPrepareJob(ctx context.Context, job worker_types.PrepareJobArgs) error {
	ret := _mock.Called(ctx, job)

	if len(ret) == 0 {
		panic("no return value specified for AddPrepareJob")
	}

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, worker_types.PrepareJobArgs) error); ok {
		r0 = returnFunc(ctx, job)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

// MockEnqueuer_AddPrepareJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddPrepareJob'
type MockEnqueuer_AddPrepareJob_Call struct {
	*mock.Call
}

// AddPrepareJob is a helper method to define mock.On call
//   - ctx context.Context
//   - job worker_types.PrepareJobArgs
func (_e *MockEnqueuer_Expecter) AddPrepareJob(ctx interface{}, job interface{}) *MockEnqueuer_AddPrepareJob_Call {
	return &MockEnqueuer_AddPrepareJob_Call{Call: _e.mock.On("AddPrepareJob", ctx, job)}
}

func (_c *MockEnqueuer_AddPrepareJob_Call) Run(run func(ctx context.Context, job worker_types.PrepareJobArgs)) *MockEnqueuer_AddPrepareJob_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 worker_types.PrepareJobArgs
		if args[1] != nil {
			arg1 = args[1].(worker_types.PrepareJobArgs)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *MockEnqueuer_AddPrepareJob_Call) Return(err error) *MockEnqueuer_AddPrepareJob_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *MockEnqueuer_AddPrepareJob_Call) RunAndReturn(run func(ctx context.Context, job worker_types.PrepareJobArgs) error) *MockEnqueuer_AddPrepareJob_Call {
	_c.Call.Return(run)
	return _c
}
