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

package mock

import (
	context "context"

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

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

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

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

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

	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
}

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

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

	return mock
}
