// Code generated by mockery. DO NOT EDIT. package mocks import ( mock "github.com/stretchr/testify/mock" models "source.quilibrium.com/quilibrium/monorepo/consensus/models" ) // VoteAggregationConsumer is an autogenerated mock type for the VoteAggregationConsumer type type VoteAggregationConsumer[StateT models.Unique, VoteT models.Unique] struct { mock.Mock } // OnDoubleVotingDetected provides a mock function with given fields: _a0, _a1 func (_m *VoteAggregationConsumer[StateT, VoteT]) OnDoubleVotingDetected(_a0 *VoteT, _a1 *VoteT) { _m.Called(_a0, _a1) } // OnInvalidVoteDetected provides a mock function with given fields: err func (_m *VoteAggregationConsumer[StateT, VoteT]) OnInvalidVoteDetected(err models.InvalidVoteError[VoteT]) { _m.Called(err) } // OnQuorumCertificateConstructedFromVotes provides a mock function with given fields: _a0 func (_m *VoteAggregationConsumer[StateT, VoteT]) OnQuorumCertificateConstructedFromVotes(_a0 models.QuorumCertificate) { _m.Called(_a0) } // OnVoteForInvalidStateDetected provides a mock function with given fields: vote, invalidProposal func (_m *VoteAggregationConsumer[StateT, VoteT]) OnVoteForInvalidStateDetected(vote *VoteT, invalidProposal *models.SignedProposal[StateT, VoteT]) { _m.Called(vote, invalidProposal) } // OnVoteProcessed provides a mock function with given fields: vote func (_m *VoteAggregationConsumer[StateT, VoteT]) OnVoteProcessed(vote *VoteT) { _m.Called(vote) } // NewVoteAggregationConsumer creates a new instance of VoteAggregationConsumer. 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 NewVoteAggregationConsumer[StateT models.Unique, VoteT models.Unique](t interface { mock.TestingT Cleanup(func()) }) *VoteAggregationConsumer[StateT, VoteT] { mock := &VoteAggregationConsumer[StateT, VoteT]{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }