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

package kubernetes

import (
	mock "github.com/stretchr/testify/mock"
	rest "k8s.io/client-go/rest"
)

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

type mockKubeConfigProvider_Expecter struct {
	mock *mock.Mock
}

func (_m *mockKubeConfigProvider) EXPECT() *mockKubeConfigProvider_Expecter {
	return &mockKubeConfigProvider_Expecter{mock: &_m.Mock}
}

// Execute provides a mock function with no fields
func (_m *mockKubeConfigProvider) Execute() (*rest.Config, error) {
	ret := _m.Called()

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

	var r0 *rest.Config
	var r1 error
	if rf, ok := ret.Get(0).(func() (*rest.Config, error)); ok {
		return rf()
	}
	if rf, ok := ret.Get(0).(func() *rest.Config); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*rest.Config)
		}
	}

	if rf, ok := ret.Get(1).(func() error); ok {
		r1 = rf()
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

// Execute is a helper method to define mock.On call
func (_e *mockKubeConfigProvider_Expecter) Execute() *mockKubeConfigProvider_Execute_Call {
	return &mockKubeConfigProvider_Execute_Call{Call: _e.mock.On("Execute")}
}

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

func (_c *mockKubeConfigProvider_Execute_Call) Return(_a0 *rest.Config, _a1 error) *mockKubeConfigProvider_Execute_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *mockKubeConfigProvider_Execute_Call) RunAndReturn(run func() (*rest.Config, error)) *mockKubeConfigProvider_Execute_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
