// Code generated by mockery. DO NOT EDIT. package mocks import ( mock "github.com/stretchr/testify/mock" models "source.quilibrium.com/quilibrium/monorepo/consensus/models" ) // TimeoutProcessor is an autogenerated mock type for the TimeoutProcessor type type TimeoutProcessor[VoteT models.Unique] struct { mock.Mock } // Process provides a mock function with given fields: timeout func (_m *TimeoutProcessor[VoteT]) Process(timeout *models.TimeoutState[VoteT]) error { ret := _m.Called(timeout) if len(ret) == 0 { panic("no return value specified for Process") } var r0 error if rf, ok := ret.Get(0).(func(*models.TimeoutState[VoteT]) error); ok { r0 = rf(timeout) } else { r0 = ret.Error(0) } return r0 } // NewTimeoutProcessor creates a new instance of TimeoutProcessor. 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 NewTimeoutProcessor[VoteT models.Unique](t interface { mock.TestingT Cleanup(func()) }) *TimeoutProcessor[VoteT] { mock := &TimeoutProcessor[VoteT]{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }