github.com/onflow/flow-go@v0.33.17/module/mock/compliance_metrics.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 flow "github.com/onflow/flow-go/model/flow" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // ComplianceMetrics is an autogenerated mock type for the ComplianceMetrics type 11 type ComplianceMetrics struct { 12 mock.Mock 13 } 14 15 // BlockFinalized provides a mock function with given fields: _a0 16 func (_m *ComplianceMetrics) BlockFinalized(_a0 *flow.Block) { 17 _m.Called(_a0) 18 } 19 20 // BlockSealed provides a mock function with given fields: _a0 21 func (_m *ComplianceMetrics) BlockSealed(_a0 *flow.Block) { 22 _m.Called(_a0) 23 } 24 25 // CommittedEpochFinalView provides a mock function with given fields: view 26 func (_m *ComplianceMetrics) CommittedEpochFinalView(view uint64) { 27 _m.Called(view) 28 } 29 30 // CurrentDKGPhase1FinalView provides a mock function with given fields: view 31 func (_m *ComplianceMetrics) CurrentDKGPhase1FinalView(view uint64) { 32 _m.Called(view) 33 } 34 35 // CurrentDKGPhase2FinalView provides a mock function with given fields: view 36 func (_m *ComplianceMetrics) CurrentDKGPhase2FinalView(view uint64) { 37 _m.Called(view) 38 } 39 40 // CurrentDKGPhase3FinalView provides a mock function with given fields: view 41 func (_m *ComplianceMetrics) CurrentDKGPhase3FinalView(view uint64) { 42 _m.Called(view) 43 } 44 45 // CurrentEpochCounter provides a mock function with given fields: counter 46 func (_m *ComplianceMetrics) CurrentEpochCounter(counter uint64) { 47 _m.Called(counter) 48 } 49 50 // CurrentEpochFinalView provides a mock function with given fields: view 51 func (_m *ComplianceMetrics) CurrentEpochFinalView(view uint64) { 52 _m.Called(view) 53 } 54 55 // CurrentEpochPhase provides a mock function with given fields: phase 56 func (_m *ComplianceMetrics) CurrentEpochPhase(phase flow.EpochPhase) { 57 _m.Called(phase) 58 } 59 60 // EpochEmergencyFallbackTriggered provides a mock function with given fields: 61 func (_m *ComplianceMetrics) EpochEmergencyFallbackTriggered() { 62 _m.Called() 63 } 64 65 // EpochTransitionHeight provides a mock function with given fields: height 66 func (_m *ComplianceMetrics) EpochTransitionHeight(height uint64) { 67 _m.Called(height) 68 } 69 70 // FinalizedHeight provides a mock function with given fields: height 71 func (_m *ComplianceMetrics) FinalizedHeight(height uint64) { 72 _m.Called(height) 73 } 74 75 // SealedHeight provides a mock function with given fields: height 76 func (_m *ComplianceMetrics) SealedHeight(height uint64) { 77 _m.Called(height) 78 } 79 80 type mockConstructorTestingTNewComplianceMetrics interface { 81 mock.TestingT 82 Cleanup(func()) 83 } 84 85 // 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. 86 func NewComplianceMetrics(t mockConstructorTestingTNewComplianceMetrics) *ComplianceMetrics { 87 mock := &ComplianceMetrics{} 88 mock.Mock.Test(t) 89 90 t.Cleanup(func() { mock.AssertExpectations(t) }) 91 92 return mock 93 }