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

package mocks

import (
	errors "github.com/pingcap/test-infra/common/errors"
	mock "github.com/stretchr/testify/mock"

	request "github.com/pingcap/test-infra/common/model/rms/request"

	response "github.com/pingcap/test-infra/common/model/rms/response"

	utils "github.com/pingcap/test-infra/services/rms/utils"
)

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

// GetShootKubeConfig provides a mock function with given fields: ctx, req
func (_m *TiDBCloudInterface) GetShootKubeConfig(ctx utils.Context, req request.GetShootKubeConfigRequest) (*response.GetShootKubeConfigResponse, *errors.StatusError) {
	ret := _m.Called(ctx, req)

	var r0 *response.GetShootKubeConfigResponse
	if rf, ok := ret.Get(0).(func(utils.Context, request.GetShootKubeConfigRequest) *response.GetShootKubeConfigResponse); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*response.GetShootKubeConfigResponse)
		}
	}

	var r1 *errors.StatusError
	if rf, ok := ret.Get(1).(func(utils.Context, request.GetShootKubeConfigRequest) *errors.StatusError); ok {
		r1 = rf(ctx, req)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(*errors.StatusError)
		}
	}

	return r0, r1
}

type NewTiDBCloudInterfaceT interface {
	mock.TestingT
	Cleanup(func())
}

// NewTiDBCloudInterface creates a new instance of TiDBCloudInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewTiDBCloudInterface(t NewTiDBCloudInterfaceT) *TiDBCloudInterface {
	mock := &TiDBCloudInterface{}
	mock.Mock.Test(t)

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

	return mock
}
