github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/consensus/hotstuff/mocks/timeout_aggregation_violation_consumer.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 model "github.com/onflow/flow-go/consensus/hotstuff/model" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // TimeoutAggregationViolationConsumer is an autogenerated mock type for the TimeoutAggregationViolationConsumer type 11 type TimeoutAggregationViolationConsumer struct { 12 mock.Mock 13 } 14 15 // OnDoubleTimeoutDetected provides a mock function with given fields: _a0, _a1 16 func (_m *TimeoutAggregationViolationConsumer) OnDoubleTimeoutDetected(_a0 *model.TimeoutObject, _a1 *model.TimeoutObject) { 17 _m.Called(_a0, _a1) 18 } 19 20 // OnInvalidTimeoutDetected provides a mock function with given fields: err 21 func (_m *TimeoutAggregationViolationConsumer) OnInvalidTimeoutDetected(err model.InvalidTimeoutError) { 22 _m.Called(err) 23 } 24 25 type mockConstructorTestingTNewTimeoutAggregationViolationConsumer interface { 26 mock.TestingT 27 Cleanup(func()) 28 } 29 30 // NewTimeoutAggregationViolationConsumer creates a new instance of TimeoutAggregationViolationConsumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 31 func NewTimeoutAggregationViolationConsumer(t mockConstructorTestingTNewTimeoutAggregationViolationConsumer) *TimeoutAggregationViolationConsumer { 32 mock := &TimeoutAggregationViolationConsumer{} 33 mock.Mock.Test(t) 34 35 t.Cleanup(func() { mock.AssertExpectations(t) }) 36 37 return mock 38 }