github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/consensus/hotstuff/mocks/communicator_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  	time "time"
    13  )
    14  
    15  // CommunicatorConsumer is an autogenerated mock type for the CommunicatorConsumer type
    16  type CommunicatorConsumer struct {
    17  	mock.Mock
    18  }
    19  
    20  // OnOwnProposal provides a mock function with given fields: proposal, targetPublicationTime
    21  func (_m *CommunicatorConsumer) OnOwnProposal(proposal *flow.Header, targetPublicationTime time.Time) {
    22  	_m.Called(proposal, targetPublicationTime)
    23  }
    24  
    25  // OnOwnTimeout provides a mock function with given fields: timeout
    26  func (_m *CommunicatorConsumer) OnOwnTimeout(timeout *model.TimeoutObject) {
    27  	_m.Called(timeout)
    28  }
    29  
    30  // OnOwnVote provides a mock function with given fields: blockID, view, sigData, recipientID
    31  func (_m *CommunicatorConsumer) OnOwnVote(blockID flow.Identifier, view uint64, sigData []byte, recipientID flow.Identifier) {
    32  	_m.Called(blockID, view, sigData, recipientID)
    33  }
    34  
    35  type mockConstructorTestingTNewCommunicatorConsumer interface {
    36  	mock.TestingT
    37  	Cleanup(func())
    38  }
    39  
    40  // NewCommunicatorConsumer creates a new instance of CommunicatorConsumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    41  func NewCommunicatorConsumer(t mockConstructorTestingTNewCommunicatorConsumer) *CommunicatorConsumer {
    42  	mock := &CommunicatorConsumer{}
    43  	mock.Mock.Test(t)
    44  
    45  	t.Cleanup(func() { mock.AssertExpectations(t) })
    46  
    47  	return mock
    48  }