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