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

package mocks

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

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

type UnusedEnforcer_Expecter struct {
	mock *mock.Mock
}

func (_m *UnusedEnforcer) EXPECT() *UnusedEnforcer_Expecter {
	return &UnusedEnforcer_Expecter{mock: &_m.Mock}
}

// EnforceUnused provides a mock function with given fields:
func (_m *UnusedEnforcer) EnforceUnused() error {
	ret := _m.Called()

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

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

	return r0
}

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

// EnforceUnused is a helper method to define mock.On call
func (_e *UnusedEnforcer_Expecter) EnforceUnused() *UnusedEnforcer_EnforceUnused_Call {
	return &UnusedEnforcer_EnforceUnused_Call{Call: _e.mock.On("EnforceUnused")}
}

func (_c *UnusedEnforcer_EnforceUnused_Call) Run(run func()) *UnusedEnforcer_EnforceUnused_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

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

func (_c *UnusedEnforcer_EnforceUnused_Call) RunAndReturn(run func() error) *UnusedEnforcer_EnforceUnused_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
