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

package mocks

import (
	context "context"

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

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

type ClusterRoleManager_Expecter struct {
	mock *mock.Mock
}

func (_m *ClusterRoleManager) EXPECT() *ClusterRoleManager_Expecter {
	return &ClusterRoleManager_Expecter{mock: &_m.Mock}
}

// DeleteAutoModePolicies provides a mock function with given fields: ctx
func (_m *ClusterRoleManager) DeleteAutoModePolicies(ctx context.Context) error {
	ret := _m.Called(ctx)

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

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

	return r0
}

// ClusterRoleManager_DeleteAutoModePolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAutoModePolicies'
type ClusterRoleManager_DeleteAutoModePolicies_Call struct {
	*mock.Call
}

// DeleteAutoModePolicies is a helper method to define mock.On call
//   - ctx context.Context
func (_e *ClusterRoleManager_Expecter) DeleteAutoModePolicies(ctx interface{}) *ClusterRoleManager_DeleteAutoModePolicies_Call {
	return &ClusterRoleManager_DeleteAutoModePolicies_Call{Call: _e.mock.On("DeleteAutoModePolicies", ctx)}
}

func (_c *ClusterRoleManager_DeleteAutoModePolicies_Call) Run(run func(ctx context.Context)) *ClusterRoleManager_DeleteAutoModePolicies_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context))
	})
	return _c
}

func (_c *ClusterRoleManager_DeleteAutoModePolicies_Call) Return(_a0 error) *ClusterRoleManager_DeleteAutoModePolicies_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *ClusterRoleManager_DeleteAutoModePolicies_Call) RunAndReturn(run func(context.Context) error) *ClusterRoleManager_DeleteAutoModePolicies_Call {
	_c.Call.Return(run)
	return _c
}

// UpdateRoleForAutoMode provides a mock function with given fields: ctx
func (_m *ClusterRoleManager) UpdateRoleForAutoMode(ctx context.Context) error {
	ret := _m.Called(ctx)

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

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

	return r0
}

// ClusterRoleManager_UpdateRoleForAutoMode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRoleForAutoMode'
type ClusterRoleManager_UpdateRoleForAutoMode_Call struct {
	*mock.Call
}

// UpdateRoleForAutoMode is a helper method to define mock.On call
//   - ctx context.Context
func (_e *ClusterRoleManager_Expecter) UpdateRoleForAutoMode(ctx interface{}) *ClusterRoleManager_UpdateRoleForAutoMode_Call {
	return &ClusterRoleManager_UpdateRoleForAutoMode_Call{Call: _e.mock.On("UpdateRoleForAutoMode", ctx)}
}

func (_c *ClusterRoleManager_UpdateRoleForAutoMode_Call) Run(run func(ctx context.Context)) *ClusterRoleManager_UpdateRoleForAutoMode_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context))
	})
	return _c
}

func (_c *ClusterRoleManager_UpdateRoleForAutoMode_Call) Return(_a0 error) *ClusterRoleManager_UpdateRoleForAutoMode_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *ClusterRoleManager_UpdateRoleForAutoMode_Call) RunAndReturn(run func(context.Context) error) *ClusterRoleManager_UpdateRoleForAutoMode_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
