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

package retry

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

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

// Run provides a mock function with given fields:
func (_m *MockRetryable) Run() error {
	ret := _m.Called()

	var r0 error
	if rf, ok := ret.Get(0).(func() error); ok {
		r0 = rf()
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// ShouldRetry provides a mock function with given fields: tries, err
func (_m *MockRetryable) ShouldRetry(tries int, err error) bool {
	ret := _m.Called(tries, err)

	var r0 bool
	if rf, ok := ret.Get(0).(func(int, error) bool); ok {
		r0 = rf(tries, err)
	} else {
		r0 = ret.Get(0).(bool)
	}

	return r0
}

type mockConstructorTestingTNewMockRetryable interface {
	mock.TestingT
	Cleanup(func())
}

// NewMockRetryable creates a new instance of MockRetryable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockRetryable(t mockConstructorTestingTNewMockRetryable) *MockRetryable {
	mock := &MockRetryable{}
	mock.Mock.Test(t)

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

	return mock
}
