// Code generated by MockGen. DO NOT EDIT.
// Source: ../interfaces/job_access.go
//
// Generated by this command:
//
//	mockgen -source ../interfaces/job_access.go -destination ../interfaces/mock/mock_job_access.go
//

// Package mock_interfaces is a generated GoMock package.
package mock_interfaces

import (
	interfaces "bkn-backend/interfaces"
	context "context"
	sql "database/sql"
	reflect "reflect"

	gomock "go.uber.org/mock/gomock"
)

// MockJobAccess is a mock of JobAccess interface.
type MockJobAccess struct {
	ctrl     *gomock.Controller
	recorder *MockJobAccessMockRecorder
	isgomock struct{}
}

// MockJobAccessMockRecorder is the mock recorder for MockJobAccess.
type MockJobAccessMockRecorder struct {
	mock *MockJobAccess
}

// NewMockJobAccess creates a new mock instance.
func NewMockJobAccess(ctrl *gomock.Controller) *MockJobAccess {
	mock := &MockJobAccess{ctrl: ctrl}
	mock.recorder = &MockJobAccessMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockJobAccess) EXPECT() *MockJobAccessMockRecorder {
	return m.recorder
}

// CreateJob mocks base method.
func (m *MockJobAccess) CreateJob(ctx context.Context, tx *sql.Tx, jobInfo *interfaces.JobInfo) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "CreateJob", ctx, tx, jobInfo)
	ret0, _ := ret[0].(error)
	return ret0
}

// CreateJob indicates an expected call of CreateJob.
func (mr *MockJobAccessMockRecorder) CreateJob(ctx, tx, jobInfo any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateJob", reflect.TypeOf((*MockJobAccess)(nil).CreateJob), ctx, tx, jobInfo)
}

// CreateTasks mocks base method.
func (m *MockJobAccess) CreateTasks(ctx context.Context, tx *sql.Tx, tasks map[string]*interfaces.TaskInfo) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "CreateTasks", ctx, tx, tasks)
	ret0, _ := ret[0].(error)
	return ret0
}

// CreateTasks indicates an expected call of CreateTasks.
func (mr *MockJobAccessMockRecorder) CreateTasks(ctx, tx, tasks any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTasks", reflect.TypeOf((*MockJobAccess)(nil).CreateTasks), ctx, tx, tasks)
}

// DeleteJobsByIDs mocks base method.
func (m *MockJobAccess) DeleteJobsByIDs(ctx context.Context, tx *sql.Tx, jobIDs []string) (int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "DeleteJobsByIDs", ctx, tx, jobIDs)
	ret0, _ := ret[0].(int64)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// DeleteJobsByIDs indicates an expected call of DeleteJobsByIDs.
func (mr *MockJobAccessMockRecorder) DeleteJobsByIDs(ctx, tx, jobIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteJobsByIDs", reflect.TypeOf((*MockJobAccess)(nil).DeleteJobsByIDs), ctx, tx, jobIDs)
}

// DeleteTasksByJobIDs mocks base method.
func (m *MockJobAccess) DeleteTasksByJobIDs(ctx context.Context, tx *sql.Tx, jobIDs []string) (int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "DeleteTasksByJobIDs", ctx, tx, jobIDs)
	ret0, _ := ret[0].(int64)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// DeleteTasksByJobIDs indicates an expected call of DeleteTasksByJobIDs.
func (mr *MockJobAccessMockRecorder) DeleteTasksByJobIDs(ctx, tx, jobIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTasksByJobIDs", reflect.TypeOf((*MockJobAccess)(nil).DeleteTasksByJobIDs), ctx, tx, jobIDs)
}

// GetJobByID mocks base method.
func (m *MockJobAccess) GetJobByID(ctx context.Context, jobID string) (*interfaces.JobInfo, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetJobByID", ctx, jobID)
	ret0, _ := ret[0].(*interfaces.JobInfo)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetJobByID indicates an expected call of GetJobByID.
func (mr *MockJobAccessMockRecorder) GetJobByID(ctx, jobID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobByID", reflect.TypeOf((*MockJobAccess)(nil).GetJobByID), ctx, jobID)
}

// GetJobIDsByKnID mocks base method.
func (m *MockJobAccess) GetJobIDsByKnID(ctx context.Context, tx *sql.Tx, knID, branch string) ([]string, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetJobIDsByKnID", ctx, tx, knID, branch)
	ret0, _ := ret[0].([]string)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetJobIDsByKnID indicates an expected call of GetJobIDsByKnID.
func (mr *MockJobAccessMockRecorder) GetJobIDsByKnID(ctx, tx, knID, branch any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobIDsByKnID", reflect.TypeOf((*MockJobAccess)(nil).GetJobIDsByKnID), ctx, tx, knID, branch)
}

// GetJobsByIDs mocks base method.
func (m *MockJobAccess) GetJobsByIDs(ctx context.Context, jobIDs []string) (map[string]*interfaces.JobInfo, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetJobsByIDs", ctx, jobIDs)
	ret0, _ := ret[0].(map[string]*interfaces.JobInfo)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetJobsByIDs indicates an expected call of GetJobsByIDs.
func (mr *MockJobAccessMockRecorder) GetJobsByIDs(ctx, jobIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobsByIDs", reflect.TypeOf((*MockJobAccess)(nil).GetJobsByIDs), ctx, jobIDs)
}

// GetJobsTotal mocks base method.
func (m *MockJobAccess) GetJobsTotal(ctx context.Context, queryParams interfaces.JobsQueryParams) (int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetJobsTotal", ctx, queryParams)
	ret0, _ := ret[0].(int64)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetJobsTotal indicates an expected call of GetJobsTotal.
func (mr *MockJobAccessMockRecorder) GetJobsTotal(ctx, queryParams any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobsTotal", reflect.TypeOf((*MockJobAccess)(nil).GetJobsTotal), ctx, queryParams)
}

// GetTasksTotal mocks base method.
func (m *MockJobAccess) GetTasksTotal(ctx context.Context, queryParams interfaces.TasksQueryParams) (int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetTasksTotal", ctx, queryParams)
	ret0, _ := ret[0].(int64)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetTasksTotal indicates an expected call of GetTasksTotal.
func (mr *MockJobAccessMockRecorder) GetTasksTotal(ctx, queryParams any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTasksTotal", reflect.TypeOf((*MockJobAccess)(nil).GetTasksTotal), ctx, queryParams)
}

// ListJobs mocks base method.
func (m *MockJobAccess) ListJobs(ctx context.Context, queryParams interfaces.JobsQueryParams) ([]*interfaces.JobInfo, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListJobs", ctx, queryParams)
	ret0, _ := ret[0].([]*interfaces.JobInfo)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListJobs indicates an expected call of ListJobs.
func (mr *MockJobAccessMockRecorder) ListJobs(ctx, queryParams any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListJobs", reflect.TypeOf((*MockJobAccess)(nil).ListJobs), ctx, queryParams)
}

// ListTasks mocks base method.
func (m *MockJobAccess) ListTasks(ctx context.Context, queryParams interfaces.TasksQueryParams) ([]*interfaces.TaskInfo, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListTasks", ctx, queryParams)
	ret0, _ := ret[0].([]*interfaces.TaskInfo)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListTasks indicates an expected call of ListTasks.
func (mr *MockJobAccessMockRecorder) ListTasks(ctx, queryParams any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTasks", reflect.TypeOf((*MockJobAccess)(nil).ListTasks), ctx, queryParams)
}

// UpdateJobState mocks base method.
func (m *MockJobAccess) UpdateJobState(ctx context.Context, tx *sql.Tx, jobID string, stateInfo interfaces.JobStateInfo) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpdateJobState", ctx, tx, jobID, stateInfo)
	ret0, _ := ret[0].(error)
	return ret0
}

// UpdateJobState indicates an expected call of UpdateJobState.
func (mr *MockJobAccessMockRecorder) UpdateJobState(ctx, tx, jobID, stateInfo any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateJobState", reflect.TypeOf((*MockJobAccess)(nil).UpdateJobState), ctx, tx, jobID, stateInfo)
}

// UpdateTaskState mocks base method.
func (m *MockJobAccess) UpdateTaskState(ctx context.Context, taskID string, stateInfo interfaces.TaskStateInfo) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpdateTaskState", ctx, taskID, stateInfo)
	ret0, _ := ret[0].(error)
	return ret0
}

// UpdateTaskState indicates an expected call of UpdateTaskState.
func (mr *MockJobAccessMockRecorder) UpdateTaskState(ctx, taskID, stateInfo any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTaskState", reflect.TypeOf((*MockJobAccess)(nil).UpdateTaskState), ctx, taskID, stateInfo)
}
