// Code generated by mockery v2.53.3. DO NOT EDIT.

package mock

import (
	context "context"

	bizerr "github.com/tidbcloud/pkgv2/bizerr"

	create "github.com/tidbcloud/dataflow-service/app/workflow/action/restore/create"

	entity "github.com/tidbcloud/dataflow-service/app/repo/entity"

	mock "github.com/stretchr/testify/mock"
)

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

// CreateRestoreCR provides a mock function with given fields: ctx, restore, input
func (_m *RunRestoringHook) CreateRestoreCR(ctx context.Context, restore *entity.Restore, input *create.RunRestoringParam) bizerr.BizError {
	ret := _m.Called(ctx, restore, input)

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

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *entity.Restore, *create.RunRestoringParam) bizerr.BizError); ok {
		r0 = rf(ctx, restore, input)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

// Name provides a mock function with no fields
func (_m *RunRestoringHook) Name() string {
	ret := _m.Called()

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

	var r0 string
	if rf, ok := ret.Get(0).(func() string); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(string)
	}

	return r0
}

// NewRunRestoringHook creates a new instance of RunRestoringHook. 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 NewRunRestoringHook(t interface {
	mock.TestingT
	Cleanup(func())
}) *RunRestoringHook {
	mock := &RunRestoringHook{}
	mock.Mock.Test(t)

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

	return mock
}
