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

package mock

import (
	auth "github.com/tidbcloud/tiinf/sdk/auth"

	context "context"

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

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

// CheckIdentityPermission provides a mock function with given fields: _a0, _a1
func (_m *RBACClient) CheckIdentityPermission(_a0 context.Context, _a1 *auth.CheckPermissionParam) (*auth.CheckPermissionRet, error) {
	ret := _m.Called(_a0, _a1)

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

	var r0 *auth.CheckPermissionRet
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *auth.CheckPermissionParam) (*auth.CheckPermissionRet, error)); ok {
		return rf(_a0, _a1)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *auth.CheckPermissionParam) *auth.CheckPermissionRet); ok {
		r0 = rf(_a0, _a1)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*auth.CheckPermissionRet)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *auth.CheckPermissionParam) error); ok {
		r1 = rf(_a0, _a1)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

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

	return mock
}
