// Code generated by MockGen. DO NOT EDIT.
// Source: ./pkg/domain/repo/workflow_lock.go

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

import (
	context "context"
	reflect "reflect"

	gomock "github.com/golang/mock/gomock"
	constant "github.com/tidbcloud/chaos-svc/pkg/domain/constant"
	bizerr "github.com/tidbcloud/pkgv2/bizerr"
)

// MockWorkflowLockRepo is a mock of WorkflowLockRepo interface.
type MockWorkflowLockRepo struct {
	ctrl     *gomock.Controller
	recorder *MockWorkflowLockRepoMockRecorder
}

// MockWorkflowLockRepoMockRecorder is the mock recorder for MockWorkflowLockRepo.
type MockWorkflowLockRepoMockRecorder struct {
	mock *MockWorkflowLockRepo
}

// NewMockWorkflowLockRepo creates a new mock instance.
func NewMockWorkflowLockRepo(ctrl *gomock.Controller) *MockWorkflowLockRepo {
	mock := &MockWorkflowLockRepo{ctrl: ctrl}
	mock.recorder = &MockWorkflowLockRepoMockRecorder{mock}
	return mock
}

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

// Lock mocks base method.
func (m *MockWorkflowLockRepo) Lock(ctx context.Context, scene constant.LockScene, identifier string) bizerr.BizError {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Lock", ctx, scene, identifier)
	ret0, _ := ret[0].(bizerr.BizError)
	return ret0
}

// Lock indicates an expected call of Lock.
func (mr *MockWorkflowLockRepoMockRecorder) Lock(ctx, scene, identifier interface{}) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Lock", reflect.TypeOf((*MockWorkflowLockRepo)(nil).Lock), ctx, scene, identifier)
}

// Unlock mocks base method.
func (m *MockWorkflowLockRepo) Unlock(ctx context.Context, scene constant.LockScene, identifier string) bizerr.BizError {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Unlock", ctx, scene, identifier)
	ret0, _ := ret[0].(bizerr.BizError)
	return ret0
}

// Unlock indicates an expected call of Unlock.
func (mr *MockWorkflowLockRepoMockRecorder) Unlock(ctx, scene, identifier interface{}) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unlock", reflect.TypeOf((*MockWorkflowLockRepo)(nil).Unlock), ctx, scene, identifier)
}
