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