github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/consensus/hotstuff/mocks/vote_collector_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  // VoteCollectorConsumer is an autogenerated mock type for the VoteCollectorConsumer type
    14  type VoteCollectorConsumer struct {
    15  	mock.Mock
    16  }
    17  
    18  // OnQcConstructedFromVotes provides a mock function with given fields: _a0
    19  func (_m *VoteCollectorConsumer) OnQcConstructedFromVotes(_a0 *flow.QuorumCertificate) {
    20  	_m.Called(_a0)
    21  }
    22  
    23  // OnVoteProcessed provides a mock function with given fields: vote
    24  func (_m *VoteCollectorConsumer) OnVoteProcessed(vote *model.Vote) {
    25  	_m.Called(vote)
    26  }
    27  
    28  type mockConstructorTestingTNewVoteCollectorConsumer interface {
    29  	mock.TestingT
    30  	Cleanup(func())
    31  }
    32  
    33  // NewVoteCollectorConsumer creates a new instance of VoteCollectorConsumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    34  func NewVoteCollectorConsumer(t mockConstructorTestingTNewVoteCollectorConsumer) *VoteCollectorConsumer {
    35  	mock := &VoteCollectorConsumer{}
    36  	mock.Mock.Test(t)
    37  
    38  	t.Cleanup(func() { mock.AssertExpectations(t) })
    39  
    40  	return mock
    41  }