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

package mock

import (
	biz_changefeed "github.com/tidbcloud/dataflow-service-ng/app/repo/biz_changefeed"
	bizerr "github.com/tidbcloud/pkgv2/bizerr"

	context "context"

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

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

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

// GetChangefeedSpecification provides a mock function with given fields: ctx, filter
func (_m *ChangefeedSpecificationRepo) GetChangefeedSpecification(ctx context.Context, filter biz_changefeed.ChangefeedSpecificationFilter) (*entity.ChangefeedSpecification, bizerr.BizError) {
	ret := _m.Called(ctx, filter)

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

	var r0 *entity.ChangefeedSpecification
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, biz_changefeed.ChangefeedSpecificationFilter) (*entity.ChangefeedSpecification, bizerr.BizError)); ok {
		return rf(ctx, filter)
	}
	if rf, ok := ret.Get(0).(func(context.Context, biz_changefeed.ChangefeedSpecificationFilter) *entity.ChangefeedSpecification); ok {
		r0 = rf(ctx, filter)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*entity.ChangefeedSpecification)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, biz_changefeed.ChangefeedSpecificationFilter) bizerr.BizError); ok {
		r1 = rf(ctx, filter)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// ListChangefeedSpecification provides a mock function with given fields: ctx, filter
func (_m *ChangefeedSpecificationRepo) ListChangefeedSpecification(ctx context.Context, filter biz_changefeed.ChangefeedSpecificationFilter) ([]*entity.ChangefeedSpecification, bizerr.BizError) {
	ret := _m.Called(ctx, filter)

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

	var r0 []*entity.ChangefeedSpecification
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, biz_changefeed.ChangefeedSpecificationFilter) ([]*entity.ChangefeedSpecification, bizerr.BizError)); ok {
		return rf(ctx, filter)
	}
	if rf, ok := ret.Get(0).(func(context.Context, biz_changefeed.ChangefeedSpecificationFilter) []*entity.ChangefeedSpecification); ok {
		r0 = rf(ctx, filter)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*entity.ChangefeedSpecification)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, biz_changefeed.ChangefeedSpecificationFilter) bizerr.BizError); ok {
		r1 = rf(ctx, filter)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// SaveChangefeedSpecification provides a mock function with given fields: ctx, instanceType
func (_m *ChangefeedSpecificationRepo) SaveChangefeedSpecification(ctx context.Context, instanceType *entity.ChangefeedSpecification) bizerr.BizError {
	ret := _m.Called(ctx, instanceType)

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

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

	return r0
}

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

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

	return mock
}
