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

package retry

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

// MockRunValueFunc is an autogenerated mock type for the RunValueFunc type
type MockRunValueFunc[T interface{}] struct {
	mock.Mock
}

type MockRunValueFunc_Expecter[T interface{}] struct {
	mock *mock.Mock
}

func (_m *MockRunValueFunc[T]) EXPECT() *MockRunValueFunc_Expecter[T] {
	return &MockRunValueFunc_Expecter[T]{mock: &_m.Mock}
}

// Execute provides a mock function with no fields
func (_m *MockRunValueFunc[T]) Execute() (T, error) {
	ret := _m.Called()

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

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

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

	return r0, r1
}

// MockRunValueFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
type MockRunValueFunc_Execute_Call[T interface{}] struct {
	*mock.Call
}

// Execute is a helper method to define mock.On call
func (_e *MockRunValueFunc_Expecter[T]) Execute() *MockRunValueFunc_Execute_Call[T] {
	return &MockRunValueFunc_Execute_Call[T]{Call: _e.mock.On("Execute")}
}

func (_c *MockRunValueFunc_Execute_Call[T]) Run(run func()) *MockRunValueFunc_Execute_Call[T] {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *MockRunValueFunc_Execute_Call[T]) Return(_a0 T, _a1 error) *MockRunValueFunc_Execute_Call[T] {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *MockRunValueFunc_Execute_Call[T]) RunAndReturn(run func() (T, error)) *MockRunValueFunc_Execute_Call[T] {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
