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

package mock

import (
	context "context"

	mock "github.com/stretchr/testify/mock"
	zap "go.uber.org/zap"
)

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

// Execute provides a mock function with given fields: ctx, logger, run
func (_m *RetryFun) Execute(ctx context.Context, logger *zap.Logger, run func() error) error {
	ret := _m.Called(ctx, logger, run)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, *zap.Logger, func() error) error); ok {
		r0 = rf(ctx, logger, run)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

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

	return mock
}
