github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/consensus/hotstuff/mocks/vote_aggregation_consumer.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	flow "github.com/onflow/flow-go/model/flow"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  
    10  	model "github.com/onflow/flow-go/consensus/hotstuff/model"
    11  )
    12  
    13  // VoteAggregationConsumer is an autogenerated mock type for the VoteAggregationConsumer type
    14  type VoteAggregationConsumer struct {
    15  	mock.Mock
    16  }
    17  
    18  // OnDoubleVotingDetected provides a mock function with given fields: _a0, _a1
    19  func (_m *VoteAggregationConsumer) OnDoubleVotingDetected(_a0 *model.Vote, _a1 *model.Vote) {
    20  	_m.Called(_a0, _a1)
    21  }
    22  
    23  // OnInvalidVoteDetected provides a mock function with given fields: err
    24  func (_m *VoteAggregationConsumer) OnInvalidVoteDetected(err model.InvalidVoteError) {
    25  	_m.Called(err)
    26  }
    27  
    28  // OnQcConstructedFromVotes provides a mock function with given fields: _a0
    29  func (_m *VoteAggregationConsumer) OnQcConstructedFromVotes(_a0 *flow.QuorumCertificate) {
    30  	_m.Called(_a0)
    31  }
    32  
    33  // OnVoteForInvalidBlockDetected provides a mock function with given fields: vote, invalidProposal
    34  func (_m *VoteAggregationConsumer) OnVoteForInvalidBlockDetected(vote *model.Vote, invalidProposal *model.Proposal) {
    35  	_m.Called(vote, invalidProposal)
    36  }
    37  
    38  // OnVoteProcessed provides a mock function with given fields: vote
    39  func (_m *VoteAggregationConsumer) OnVoteProcessed(vote *model.Vote) {
    40  	_m.Called(vote)
    41  }
    42  
    43  type mockConstructorTestingTNewVoteAggregationConsumer interface {
    44  	mock.TestingT
    45  	Cleanup(func())
    46  }
    47  
    48  // 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.
    49  func NewVoteAggregationConsumer(t mockConstructorTestingTNewVoteAggregationConsumer) *VoteAggregationConsumer {
    50  	mock := &VoteAggregationConsumer{}
    51  	mock.Mock.Test(t)
    52  
    53  	t.Cleanup(func() { mock.AssertExpectations(t) })
    54  
    55  	return mock
    56  }