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

package mock

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

	context "context"

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

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

// RecycleBucketReplication provides a mock function with given fields: ctx
func (_m *BucketReplicationWorker) RecycleBucketReplication(ctx context.Context) bizerr.BizError {
	ret := _m.Called(ctx)

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

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context) bizerr.BizError); ok {
		r0 = rf(ctx)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

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

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

	return mock
}
