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

package mock

import (
	context "context"

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

	v1 "github.com/tidbcloud/infra-api/api/v1"
)

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

// CanScaleTiCDC provides a mock function with given fields: cdcCluster
func (_m *TiCDCFacade) CanScaleTiCDC(cdcCluster *v1.TiCDC) bool {
	ret := _m.Called(cdcCluster)

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

	var r0 bool
	if rf, ok := ret.Get(0).(func(*v1.TiCDC) bool); ok {
		r0 = rf(cdcCluster)
	} else {
		r0 = ret.Get(0).(bool)
	}

	return r0
}

// CreateTicdcIgnoreExist provides a mock function with given fields: ctx, projectID, clusterID, cr
func (_m *TiCDCFacade) CreateTicdcIgnoreExist(ctx context.Context, projectID uint64, clusterID uint64, cr *v1.TiCDC) error {
	ret := _m.Called(ctx, projectID, clusterID, cr)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, uint64, uint64, *v1.TiCDC) error); ok {
		r0 = rf(ctx, projectID, clusterID, cr)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// DeleteTicdcIfExist provides a mock function with given fields: ctx, projectID, clusterID
func (_m *TiCDCFacade) DeleteTicdcIfExist(ctx context.Context, projectID uint64, clusterID uint64) error {
	ret := _m.Called(ctx, projectID, clusterID)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, uint64, uint64) error); ok {
		r0 = rf(ctx, projectID, clusterID)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// GetTicdc provides a mock function with given fields: ctx, projectID, clusterID
func (_m *TiCDCFacade) GetTicdc(ctx context.Context, projectID uint64, clusterID uint64) (*v1.TiCDC, error) {
	ret := _m.Called(ctx, projectID, clusterID)

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

	var r0 *v1.TiCDC
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, uint64, uint64) (*v1.TiCDC, error)); ok {
		return rf(ctx, projectID, clusterID)
	}
	if rf, ok := ret.Get(0).(func(context.Context, uint64, uint64) *v1.TiCDC); ok {
		r0 = rf(ctx, projectID, clusterID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*v1.TiCDC)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, uint64, uint64) error); ok {
		r1 = rf(ctx, projectID, clusterID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// IsTiCDCEnabledScaling provides a mock function with given fields: cdcCluster
func (_m *TiCDCFacade) IsTiCDCEnabledScaling(cdcCluster *v1.TiCDC) bool {
	ret := _m.Called(cdcCluster)

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

	var r0 bool
	if rf, ok := ret.Get(0).(func(*v1.TiCDC) bool); ok {
		r0 = rf(cdcCluster)
	} else {
		r0 = ret.Get(0).(bool)
	}

	return r0
}

// UpdateTicdc provides a mock function with given fields: ctx, d
func (_m *TiCDCFacade) UpdateTicdc(ctx context.Context, d *v1.TiCDC) error {
	ret := _m.Called(ctx, d)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, *v1.TiCDC) error); ok {
		r0 = rf(ctx, d)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

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

	return mock
}
