// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify

package mocks

import (
	"github.com/spf13/cobra"
	mock "github.com/stretchr/testify/mock"
	"k8s.io/kubectl/pkg/cmd/apply"
	"k8s.io/kubectl/pkg/cmd/auth"
	"k8s.io/kubectl/pkg/cmd/create"
	"k8s.io/kubectl/pkg/cmd/replace"
	"k8s.io/kubectl/pkg/cmd/util"
)

// NewKubectlOptionsRunner creates a new instance of KubectlOptionsRunner. 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 NewKubectlOptionsRunner(t interface {
	mock.TestingT
	Cleanup(func())
}) *KubectlOptionsRunner {
	if helper, ok := t.(interface{ Helper() }); ok {
		helper.Helper()
	}

	mock := &KubectlOptionsRunner{}
	mock.Mock.Test(t)

	t.Cleanup(func() {
		if helper, ok := t.(interface{ Helper() }); ok {
			helper.Helper()
		}
		mock.AssertExpectations(t)
	})

	return mock
}

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

type KubectlOptionsRunner_Expecter struct {
	mock *mock.Mock
}

func (_m *KubectlOptionsRunner) EXPECT() *KubectlOptionsRunner_Expecter {
	return &KubectlOptionsRunner_Expecter{mock: &_m.Mock}
}

// Apply provides a mock function for the type KubectlOptionsRunner
func (_mock *KubectlOptionsRunner) Apply(opts *apply.ApplyOptions) error {
	ret := _mock.Called(opts)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(*apply.ApplyOptions) error); ok {
		r0 = returnFunc(opts)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// Apply is a helper method to define mock.On call
//   - opts *apply.ApplyOptions
func (_e *KubectlOptionsRunner_Expecter) Apply(opts any) *KubectlOptionsRunner_Apply_Call {
	return &KubectlOptionsRunner_Apply_Call{Call: _e.mock.On("Apply", opts)}
}

func (_c *KubectlOptionsRunner_Apply_Call) Run(run func(opts *apply.ApplyOptions)) *KubectlOptionsRunner_Apply_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 *apply.ApplyOptions
		if args[0] != nil {
			arg0 = args[0].(*apply.ApplyOptions)
		}
		run(
			arg0,
		)
	})
	return _c
}

func (_c *KubectlOptionsRunner_Apply_Call) Return(err error) *KubectlOptionsRunner_Apply_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *KubectlOptionsRunner_Apply_Call) RunAndReturn(run func(opts *apply.ApplyOptions) error) *KubectlOptionsRunner_Apply_Call {
	_c.Call.Return(run)
	return _c
}

// AuthReconcile provides a mock function for the type KubectlOptionsRunner
func (_mock *KubectlOptionsRunner) AuthReconcile(opts *auth.ReconcileOptions) error {
	ret := _mock.Called(opts)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(*auth.ReconcileOptions) error); ok {
		r0 = returnFunc(opts)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// AuthReconcile is a helper method to define mock.On call
//   - opts *auth.ReconcileOptions
func (_e *KubectlOptionsRunner_Expecter) AuthReconcile(opts any) *KubectlOptionsRunner_AuthReconcile_Call {
	return &KubectlOptionsRunner_AuthReconcile_Call{Call: _e.mock.On("AuthReconcile", opts)}
}

func (_c *KubectlOptionsRunner_AuthReconcile_Call) Run(run func(opts *auth.ReconcileOptions)) *KubectlOptionsRunner_AuthReconcile_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 *auth.ReconcileOptions
		if args[0] != nil {
			arg0 = args[0].(*auth.ReconcileOptions)
		}
		run(
			arg0,
		)
	})
	return _c
}

func (_c *KubectlOptionsRunner_AuthReconcile_Call) Return(err error) *KubectlOptionsRunner_AuthReconcile_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *KubectlOptionsRunner_AuthReconcile_Call) RunAndReturn(run func(opts *auth.ReconcileOptions) error) *KubectlOptionsRunner_AuthReconcile_Call {
	_c.Call.Return(run)
	return _c
}

// Create provides a mock function for the type KubectlOptionsRunner
func (_mock *KubectlOptionsRunner) Create(opts *create.CreateOptions, fact util.Factory, ignoredCmd *cobra.Command) error {
	ret := _mock.Called(opts, fact, ignoredCmd)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(*create.CreateOptions, util.Factory, *cobra.Command) error); ok {
		r0 = returnFunc(opts, fact, ignoredCmd)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// Create is a helper method to define mock.On call
//   - opts *create.CreateOptions
//   - fact util.Factory
//   - ignoredCmd *cobra.Command
func (_e *KubectlOptionsRunner_Expecter) Create(opts any, fact any, ignoredCmd any) *KubectlOptionsRunner_Create_Call {
	return &KubectlOptionsRunner_Create_Call{Call: _e.mock.On("Create", opts, fact, ignoredCmd)}
}

func (_c *KubectlOptionsRunner_Create_Call) Run(run func(opts *create.CreateOptions, fact util.Factory, ignoredCmd *cobra.Command)) *KubectlOptionsRunner_Create_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 *create.CreateOptions
		if args[0] != nil {
			arg0 = args[0].(*create.CreateOptions)
		}
		var arg1 util.Factory
		if args[1] != nil {
			arg1 = args[1].(util.Factory)
		}
		var arg2 *cobra.Command
		if args[2] != nil {
			arg2 = args[2].(*cobra.Command)
		}
		run(
			arg0,
			arg1,
			arg2,
		)
	})
	return _c
}

func (_c *KubectlOptionsRunner_Create_Call) Return(err error) *KubectlOptionsRunner_Create_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *KubectlOptionsRunner_Create_Call) RunAndReturn(run func(opts *create.CreateOptions, fact util.Factory, ignoredCmd *cobra.Command) error) *KubectlOptionsRunner_Create_Call {
	_c.Call.Return(run)
	return _c
}

// Replace provides a mock function for the type KubectlOptionsRunner
func (_mock *KubectlOptionsRunner) Replace(opts *replace.ReplaceOptions, fact util.Factory) error {
	ret := _mock.Called(opts, fact)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(*replace.ReplaceOptions, util.Factory) error); ok {
		r0 = returnFunc(opts, fact)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// Replace is a helper method to define mock.On call
//   - opts *replace.ReplaceOptions
//   - fact util.Factory
func (_e *KubectlOptionsRunner_Expecter) Replace(opts any, fact any) *KubectlOptionsRunner_Replace_Call {
	return &KubectlOptionsRunner_Replace_Call{Call: _e.mock.On("Replace", opts, fact)}
}

func (_c *KubectlOptionsRunner_Replace_Call) Run(run func(opts *replace.ReplaceOptions, fact util.Factory)) *KubectlOptionsRunner_Replace_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 *replace.ReplaceOptions
		if args[0] != nil {
			arg0 = args[0].(*replace.ReplaceOptions)
		}
		var arg1 util.Factory
		if args[1] != nil {
			arg1 = args[1].(util.Factory)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *KubectlOptionsRunner_Replace_Call) Return(err error) *KubectlOptionsRunner_Replace_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *KubectlOptionsRunner_Replace_Call) RunAndReturn(run func(opts *replace.ReplaceOptions, fact util.Factory) error) *KubectlOptionsRunner_Replace_Call {
	_c.Call.Return(run)
	return _c
}
