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

package retry

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

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

type MockCheckFunc_Expecter struct {
	mock *mock.Mock
}

func (_m *MockCheckFunc) EXPECT() *MockCheckFunc_Expecter {
	return &MockCheckFunc_Expecter{mock: &_m.Mock}
}

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

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

	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
}

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

// Execute is a helper method to define mock.On call
//   - tries int
//   - err error
func (_e *MockCheckFunc_Expecter) Execute(tries interface{}, err interface{}) *MockCheckFunc_Execute_Call {
	return &MockCheckFunc_Execute_Call{Call: _e.mock.On("Execute", tries, err)}
}

func (_c *MockCheckFunc_Execute_Call) Run(run func(tries int, err error)) *MockCheckFunc_Execute_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(int), args[1].(error))
	})
	return _c
}

func (_c *MockCheckFunc_Execute_Call) Return(_a0 bool) *MockCheckFunc_Execute_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockCheckFunc_Execute_Call) RunAndReturn(run func(int, error) bool) *MockCheckFunc_Execute_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
