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

package mocks

import (
	context "context"

	mock "github.com/stretchr/testify/mock"
	tasks "github.com/weaveworks/eksctl/pkg/utils/tasks"

	v1alpha5 "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5"
)

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

type CreatorInterface_Expecter struct {
	mock *mock.Mock
}

func (_m *CreatorInterface) EXPECT() *CreatorInterface_Expecter {
	return &CreatorInterface_Expecter{mock: &_m.Mock}
}

// Create provides a mock function with given fields: ctx, capabilities
func (_m *CreatorInterface) Create(ctx context.Context, capabilities []v1alpha5.Capability) error {
	ret := _m.Called(ctx, capabilities)

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

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

	return r0
}

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

// Create is a helper method to define mock.On call
//   - ctx context.Context
//   - capabilities []v1alpha5.Capability
func (_e *CreatorInterface_Expecter) Create(ctx interface{}, capabilities interface{}) *CreatorInterface_Create_Call {
	return &CreatorInterface_Create_Call{Call: _e.mock.On("Create", ctx, capabilities)}
}

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

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

func (_c *CreatorInterface_Create_Call) RunAndReturn(run func(context.Context, []v1alpha5.Capability) error) *CreatorInterface_Create_Call {
	_c.Call.Return(run)
	return _c
}

// CreateTasks provides a mock function with given fields: ctx, capabilities
func (_m *CreatorInterface) CreateTasks(ctx context.Context, capabilities []v1alpha5.Capability) *tasks.TaskTree {
	ret := _m.Called(ctx, capabilities)

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

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

	return r0
}

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

// CreateTasks is a helper method to define mock.On call
//   - ctx context.Context
//   - capabilities []v1alpha5.Capability
func (_e *CreatorInterface_Expecter) CreateTasks(ctx interface{}, capabilities interface{}) *CreatorInterface_CreateTasks_Call {
	return &CreatorInterface_CreateTasks_Call{Call: _e.mock.On("CreateTasks", ctx, capabilities)}
}

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

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

func (_c *CreatorInterface_CreateTasks_Call) RunAndReturn(run func(context.Context, []v1alpha5.Capability) *tasks.TaskTree) *CreatorInterface_CreateTasks_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
