mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-03-05 00:07:33 +08:00
63 lines
2.5 KiB
Go
63 lines
2.5 KiB
Go
// Code generated by mockery. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
mock "github.com/stretchr/testify/mock"
|
|
models "source.quilibrium.com/quilibrium/monorepo/consensus/models"
|
|
)
|
|
|
|
// TimeoutAggregationConsumer is an autogenerated mock type for the TimeoutAggregationConsumer type
|
|
type TimeoutAggregationConsumer[VoteT models.Unique] struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// OnDoubleTimeoutDetected provides a mock function with given fields: _a0, _a1
|
|
func (_m *TimeoutAggregationConsumer[VoteT]) OnDoubleTimeoutDetected(_a0 *models.TimeoutState[VoteT], _a1 *models.TimeoutState[VoteT]) {
|
|
_m.Called(_a0, _a1)
|
|
}
|
|
|
|
// OnInvalidTimeoutDetected provides a mock function with given fields: err
|
|
func (_m *TimeoutAggregationConsumer[VoteT]) OnInvalidTimeoutDetected(err models.InvalidTimeoutError[VoteT]) {
|
|
_m.Called(err)
|
|
}
|
|
|
|
// OnNewQuorumCertificateDiscovered provides a mock function with given fields: certificate
|
|
func (_m *TimeoutAggregationConsumer[VoteT]) OnNewQuorumCertificateDiscovered(certificate models.QuorumCertificate) {
|
|
_m.Called(certificate)
|
|
}
|
|
|
|
// OnNewTimeoutCertificateDiscovered provides a mock function with given fields: certificate
|
|
func (_m *TimeoutAggregationConsumer[VoteT]) OnNewTimeoutCertificateDiscovered(certificate models.TimeoutCertificate) {
|
|
_m.Called(certificate)
|
|
}
|
|
|
|
// OnPartialTimeoutCertificateCreated provides a mock function with given fields: rank, newestQC, lastRankTC
|
|
func (_m *TimeoutAggregationConsumer[VoteT]) OnPartialTimeoutCertificateCreated(rank uint64, newestQC models.QuorumCertificate, lastRankTC models.TimeoutCertificate) {
|
|
_m.Called(rank, newestQC, lastRankTC)
|
|
}
|
|
|
|
// OnTimeoutCertificateConstructedFromTimeouts provides a mock function with given fields: certificate
|
|
func (_m *TimeoutAggregationConsumer[VoteT]) OnTimeoutCertificateConstructedFromTimeouts(certificate models.TimeoutCertificate) {
|
|
_m.Called(certificate)
|
|
}
|
|
|
|
// OnTimeoutProcessed provides a mock function with given fields: timeout
|
|
func (_m *TimeoutAggregationConsumer[VoteT]) OnTimeoutProcessed(timeout *models.TimeoutState[VoteT]) {
|
|
_m.Called(timeout)
|
|
}
|
|
|
|
// NewTimeoutAggregationConsumer creates a new instance of TimeoutAggregationConsumer. 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 NewTimeoutAggregationConsumer[VoteT models.Unique](t interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}) *TimeoutAggregationConsumer[VoteT] {
|
|
mock := &TimeoutAggregationConsumer[VoteT]{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|