-
Notifications
You must be signed in to change notification settings - Fork 175
/
compliance_metrics.go
95 lines (74 loc) · 2.81 KB
/
compliance_metrics.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// Code generated by mockery v2.13.1. DO NOT EDIT.
package mock
import (
flow "github.com/onflow/flow-go/model/flow"
mock "github.com/stretchr/testify/mock"
time "time"
)
// ComplianceMetrics is an autogenerated mock type for the ComplianceMetrics type
type ComplianceMetrics struct {
mock.Mock
}
// BlockFinalized provides a mock function with given fields: _a0
func (_m *ComplianceMetrics) BlockFinalized(_a0 *flow.Block) {
_m.Called(_a0)
}
// BlockProposalDuration provides a mock function with given fields: duration
func (_m *ComplianceMetrics) BlockProposalDuration(duration time.Duration) {
_m.Called(duration)
}
// BlockSealed provides a mock function with given fields: _a0
func (_m *ComplianceMetrics) BlockSealed(_a0 *flow.Block) {
_m.Called(_a0)
}
// CommittedEpochFinalView provides a mock function with given fields: view
func (_m *ComplianceMetrics) CommittedEpochFinalView(view uint64) {
_m.Called(view)
}
// CurrentDKGPhase1FinalView provides a mock function with given fields: view
func (_m *ComplianceMetrics) CurrentDKGPhase1FinalView(view uint64) {
_m.Called(view)
}
// CurrentDKGPhase2FinalView provides a mock function with given fields: view
func (_m *ComplianceMetrics) CurrentDKGPhase2FinalView(view uint64) {
_m.Called(view)
}
// CurrentDKGPhase3FinalView provides a mock function with given fields: view
func (_m *ComplianceMetrics) CurrentDKGPhase3FinalView(view uint64) {
_m.Called(view)
}
// CurrentEpochCounter provides a mock function with given fields: counter
func (_m *ComplianceMetrics) CurrentEpochCounter(counter uint64) {
_m.Called(counter)
}
// CurrentEpochFinalView provides a mock function with given fields: view
func (_m *ComplianceMetrics) CurrentEpochFinalView(view uint64) {
_m.Called(view)
}
// CurrentEpochPhase provides a mock function with given fields: phase
func (_m *ComplianceMetrics) CurrentEpochPhase(phase flow.EpochPhase) {
_m.Called(phase)
}
// EpochEmergencyFallbackTriggered provides a mock function with given fields:
func (_m *ComplianceMetrics) EpochEmergencyFallbackTriggered() {
_m.Called()
}
// FinalizedHeight provides a mock function with given fields: height
func (_m *ComplianceMetrics) FinalizedHeight(height uint64) {
_m.Called(height)
}
// SealedHeight provides a mock function with given fields: height
func (_m *ComplianceMetrics) SealedHeight(height uint64) {
_m.Called(height)
}
type mockConstructorTestingTNewComplianceMetrics interface {
mock.TestingT
Cleanup(func())
}
// NewComplianceMetrics creates a new instance of ComplianceMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewComplianceMetrics(t mockConstructorTestingTNewComplianceMetrics) *ComplianceMetrics {
mock := &ComplianceMetrics{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}