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