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

package mocks

import (
	context "context"

	capability "github.com/weaveworks/eksctl/pkg/actions/capability"

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

	tasks "github.com/weaveworks/eksctl/pkg/utils/tasks"
)

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

type RemoverInterface_Expecter struct {
	mock *mock.Mock
}

func (_m *RemoverInterface) EXPECT() *RemoverInterface_Expecter {
	return &RemoverInterface_Expecter{mock: &_m.Mock}
}

// Delete provides a mock function with given fields: ctx, capabilities
func (_m *RemoverInterface) Delete(ctx context.Context, capabilities []capability.Summary) error {
	ret := _m.Called(ctx, capabilities)

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

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

	return r0
}

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

// Delete is a helper method to define mock.On call
//   - ctx context.Context
//   - capabilities []capability.Summary
func (_e *RemoverInterface_Expecter) Delete(ctx interface{}, capabilities interface{}) *RemoverInterface_Delete_Call {
	return &RemoverInterface_Delete_Call{Call: _e.mock.On("Delete", ctx, capabilities)}
}

func (_c *RemoverInterface_Delete_Call) Run(run func(ctx context.Context, capabilities []capability.Summary)) *RemoverInterface_Delete_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].([]capability.Summary))
	})
	return _c
}

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

func (_c *RemoverInterface_Delete_Call) RunAndReturn(run func(context.Context, []capability.Summary) error) *RemoverInterface_Delete_Call {
	_c.Call.Return(run)
	return _c
}

// DeleteTasks provides a mock function with given fields: ctx, capabilities
func (_m *RemoverInterface) DeleteTasks(ctx context.Context, capabilities []capability.Summary) *tasks.TaskTree {
	ret := _m.Called(ctx, capabilities)

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

	var r0 *tasks.TaskTree
	if rf, ok := ret.Get(0).(func(context.Context, []capability.Summary) *tasks.TaskTree); ok {
		r0 = rf(ctx, capabilities)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*tasks.TaskTree)
		}
	}

	return r0
}

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

// DeleteTasks is a helper method to define mock.On call
//   - ctx context.Context
//   - capabilities []capability.Summary
func (_e *RemoverInterface_Expecter) DeleteTasks(ctx interface{}, capabilities interface{}) *RemoverInterface_DeleteTasks_Call {
	return &RemoverInterface_DeleteTasks_Call{Call: _e.mock.On("DeleteTasks", ctx, capabilities)}
}

func (_c *RemoverInterface_DeleteTasks_Call) Run(run func(ctx context.Context, capabilities []capability.Summary)) *RemoverInterface_DeleteTasks_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].([]capability.Summary))
	})
	return _c
}

func (_c *RemoverInterface_DeleteTasks_Call) Return(_a0 *tasks.TaskTree) *RemoverInterface_DeleteTasks_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *RemoverInterface_DeleteTasks_Call) RunAndReturn(run func(context.Context, []capability.Summary) *tasks.TaskTree) *RemoverInterface_DeleteTasks_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
