-
Notifications
You must be signed in to change notification settings - Fork 179
/
timeout_aggregation_violation_consumer.go
38 lines (29 loc) · 1.37 KB
/
timeout_aggregation_violation_consumer.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Code generated by mockery v2.21.4. DO NOT EDIT.
package mocks
import (
model "github.com/onflow/flow-go/consensus/hotstuff/model"
mock "github.com/stretchr/testify/mock"
)
// TimeoutAggregationViolationConsumer is an autogenerated mock type for the TimeoutAggregationViolationConsumer type
type TimeoutAggregationViolationConsumer struct {
mock.Mock
}
// OnDoubleTimeoutDetected provides a mock function with given fields: _a0, _a1
func (_m *TimeoutAggregationViolationConsumer) OnDoubleTimeoutDetected(_a0 *model.TimeoutObject, _a1 *model.TimeoutObject) {
_m.Called(_a0, _a1)
}
// OnInvalidTimeoutDetected provides a mock function with given fields: err
func (_m *TimeoutAggregationViolationConsumer) OnInvalidTimeoutDetected(err model.InvalidTimeoutError) {
_m.Called(err)
}
type mockConstructorTestingTNewTimeoutAggregationViolationConsumer interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewTimeoutAggregationViolationConsumer(t mockConstructorTestingTNewTimeoutAggregationViolationConsumer) *TimeoutAggregationViolationConsumer {
mock := &TimeoutAggregationViolationConsumer{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}