github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/consensus/hotstuff/mocks/timeout_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  // TimeoutCollectorConsumer is an autogenerated mock type for the TimeoutCollectorConsumer type
    14  type TimeoutCollectorConsumer struct {
    15  	mock.Mock
    16  }
    17  
    18  // OnNewQcDiscovered provides a mock function with given fields: certificate
    19  func (_m *TimeoutCollectorConsumer) OnNewQcDiscovered(certificate *flow.QuorumCertificate) {
    20  	_m.Called(certificate)
    21  }
    22  
    23  // OnNewTcDiscovered provides a mock function with given fields: certificate
    24  func (_m *TimeoutCollectorConsumer) OnNewTcDiscovered(certificate *flow.TimeoutCertificate) {
    25  	_m.Called(certificate)
    26  }
    27  
    28  // OnPartialTcCreated provides a mock function with given fields: view, newestQC, lastViewTC
    29  func (_m *TimeoutCollectorConsumer) OnPartialTcCreated(view uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate) {
    30  	_m.Called(view, newestQC, lastViewTC)
    31  }
    32  
    33  // OnTcConstructedFromTimeouts provides a mock function with given fields: certificate
    34  func (_m *TimeoutCollectorConsumer) OnTcConstructedFromTimeouts(certificate *flow.TimeoutCertificate) {
    35  	_m.Called(certificate)
    36  }
    37  
    38  // OnTimeoutProcessed provides a mock function with given fields: timeout
    39  func (_m *TimeoutCollectorConsumer) OnTimeoutProcessed(timeout *model.TimeoutObject) {
    40  	_m.Called(timeout)
    41  }
    42  
    43  type mockConstructorTestingTNewTimeoutCollectorConsumer interface {
    44  	mock.TestingT
    45  	Cleanup(func())
    46  }
    47  
    48  // NewTimeoutCollectorConsumer creates a new instance of TimeoutCollectorConsumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    49  func NewTimeoutCollectorConsumer(t mockConstructorTestingTNewTimeoutCollectorConsumer) *TimeoutCollectorConsumer {
    50  	mock := &TimeoutCollectorConsumer{}
    51  	mock.Mock.Test(t)
    52  
    53  	t.Cleanup(func() { mock.AssertExpectations(t) })
    54  
    55  	return mock
    56  }