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

package mocks

import (
	context "context"

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

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

type AutoModeDeleter_Expecter struct {
	mock *mock.Mock
}

func (_m *AutoModeDeleter) EXPECT() *AutoModeDeleter_Expecter {
	return &AutoModeDeleter_Expecter{mock: &_m.Mock}
}

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

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

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

	return r0
}

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

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

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

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

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

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

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

	return mock
}
