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

package mock

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

	context "context"

	domain "github.com/tidbcloud/dataflow-service/app/models/domain"

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

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

// GetAndInitConfigVersion provides a mock function with given fields: ctx, req
func (_m *ConfigCenterManager) GetAndInitConfigVersion(ctx context.Context, req *domain.InitConfigVersionReq) (*domain.ConfigVersionInfo, bizerr.BizError) {
	ret := _m.Called(ctx, req)

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

	var r0 *domain.ConfigVersionInfo
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.InitConfigVersionReq) (*domain.ConfigVersionInfo, bizerr.BizError)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *domain.InitConfigVersionReq) *domain.ConfigVersionInfo); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*domain.ConfigVersionInfo)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *domain.InitConfigVersionReq) bizerr.BizError); ok {
		r1 = rf(ctx, req)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// GetComponentDefaultConfigVersion provides a mock function with given fields: ctx, req
func (_m *ConfigCenterManager) GetComponentDefaultConfigVersion(ctx context.Context, req *domain.GetDefaultVersionReq) (*domain.DefaultVersionInfo, bizerr.BizError) {
	ret := _m.Called(ctx, req)

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

	var r0 *domain.DefaultVersionInfo
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.GetDefaultVersionReq) (*domain.DefaultVersionInfo, bizerr.BizError)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *domain.GetDefaultVersionReq) *domain.DefaultVersionInfo); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*domain.DefaultVersionInfo)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *domain.GetDefaultVersionReq) bizerr.BizError); ok {
		r1 = rf(ctx, req)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// GetConfigVersion provides a mock function with given fields: ctx, req
func (_m *ConfigCenterManager) GetConfigVersion(ctx context.Context, req *domain.GetConfigVersionReq) (*domain.ConfigVersionInfo, bizerr.BizError) {
	ret := _m.Called(ctx, req)

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

	var r0 *domain.ConfigVersionInfo
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.GetConfigVersionReq) (*domain.ConfigVersionInfo, bizerr.BizError)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *domain.GetConfigVersionReq) *domain.ConfigVersionInfo); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*domain.ConfigVersionInfo)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *domain.GetConfigVersionReq) bizerr.BizError); ok {
		r1 = rf(ctx, req)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// InitConfigVersion provides a mock function with given fields: ctx, req
func (_m *ConfigCenterManager) InitConfigVersion(ctx context.Context, req *domain.InitConfigVersionReq) bizerr.BizError {
	ret := _m.Called(ctx, req)

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

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

	return r0
}

// UpdateConfigVersion provides a mock function with given fields: ctx, req
func (_m *ConfigCenterManager) UpdateConfigVersion(ctx context.Context, req *domain.UpdateConfigVersionReq) bizerr.BizError {
	ret := _m.Called(ctx, req)

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

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

	return r0
}

// UpdateVersion provides a mock function with given fields: ctx, req
func (_m *ConfigCenterManager) UpdateVersion(ctx context.Context, req *domain.UpdateVersionReq) bizerr.BizError {
	ret := _m.Called(ctx, req)

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

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

	return r0
}

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

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

	return mock
}
