github.com/koko1123/flow-go-1@v0.29.6/module/mock/verification_metrics.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package mock 4 5 import mock "github.com/stretchr/testify/mock" 6 7 // VerificationMetrics is an autogenerated mock type for the VerificationMetrics type 8 type VerificationMetrics struct { 9 mock.Mock 10 } 11 12 // OnAssignedChunkProcessedAtAssigner provides a mock function with given fields: 13 func (_m *VerificationMetrics) OnAssignedChunkProcessedAtAssigner() { 14 _m.Called() 15 } 16 17 // OnAssignedChunkReceivedAtFetcher provides a mock function with given fields: 18 func (_m *VerificationMetrics) OnAssignedChunkReceivedAtFetcher() { 19 _m.Called() 20 } 21 22 // OnBlockConsumerJobDone provides a mock function with given fields: _a0 23 func (_m *VerificationMetrics) OnBlockConsumerJobDone(_a0 uint64) { 24 _m.Called(_a0) 25 } 26 27 // OnChunkConsumerJobDone provides a mock function with given fields: _a0 28 func (_m *VerificationMetrics) OnChunkConsumerJobDone(_a0 uint64) { 29 _m.Called(_a0) 30 } 31 32 // OnChunkDataPackArrivedAtFetcher provides a mock function with given fields: 33 func (_m *VerificationMetrics) OnChunkDataPackArrivedAtFetcher() { 34 _m.Called() 35 } 36 37 // OnChunkDataPackRequestDispatchedInNetworkByRequester provides a mock function with given fields: 38 func (_m *VerificationMetrics) OnChunkDataPackRequestDispatchedInNetworkByRequester() { 39 _m.Called() 40 } 41 42 // OnChunkDataPackRequestReceivedByRequester provides a mock function with given fields: 43 func (_m *VerificationMetrics) OnChunkDataPackRequestReceivedByRequester() { 44 _m.Called() 45 } 46 47 // OnChunkDataPackRequestSentByFetcher provides a mock function with given fields: 48 func (_m *VerificationMetrics) OnChunkDataPackRequestSentByFetcher() { 49 _m.Called() 50 } 51 52 // OnChunkDataPackResponseReceivedFromNetworkByRequester provides a mock function with given fields: 53 func (_m *VerificationMetrics) OnChunkDataPackResponseReceivedFromNetworkByRequester() { 54 _m.Called() 55 } 56 57 // OnChunkDataPackSentToFetcher provides a mock function with given fields: 58 func (_m *VerificationMetrics) OnChunkDataPackSentToFetcher() { 59 _m.Called() 60 } 61 62 // OnChunksAssignmentDoneAtAssigner provides a mock function with given fields: chunks 63 func (_m *VerificationMetrics) OnChunksAssignmentDoneAtAssigner(chunks int) { 64 _m.Called(chunks) 65 } 66 67 // OnExecutionResultReceivedAtAssignerEngine provides a mock function with given fields: 68 func (_m *VerificationMetrics) OnExecutionResultReceivedAtAssignerEngine() { 69 _m.Called() 70 } 71 72 // OnFinalizedBlockArrivedAtAssigner provides a mock function with given fields: height 73 func (_m *VerificationMetrics) OnFinalizedBlockArrivedAtAssigner(height uint64) { 74 _m.Called(height) 75 } 76 77 // OnResultApprovalDispatchedInNetworkByVerifier provides a mock function with given fields: 78 func (_m *VerificationMetrics) OnResultApprovalDispatchedInNetworkByVerifier() { 79 _m.Called() 80 } 81 82 // OnVerifiableChunkReceivedAtVerifierEngine provides a mock function with given fields: 83 func (_m *VerificationMetrics) OnVerifiableChunkReceivedAtVerifierEngine() { 84 _m.Called() 85 } 86 87 // OnVerifiableChunkSentToVerifier provides a mock function with given fields: 88 func (_m *VerificationMetrics) OnVerifiableChunkSentToVerifier() { 89 _m.Called() 90 } 91 92 // SetMaxChunkDataPackAttemptsForNextUnsealedHeightAtRequester provides a mock function with given fields: attempts 93 func (_m *VerificationMetrics) SetMaxChunkDataPackAttemptsForNextUnsealedHeightAtRequester(attempts uint64) { 94 _m.Called(attempts) 95 } 96 97 type mockConstructorTestingTNewVerificationMetrics interface { 98 mock.TestingT 99 Cleanup(func()) 100 } 101 102 // NewVerificationMetrics creates a new instance of VerificationMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 103 func NewVerificationMetrics(t mockConstructorTestingTNewVerificationMetrics) *VerificationMetrics { 104 mock := &VerificationMetrics{} 105 mock.Mock.Test(t) 106 107 t.Cleanup(func() { mock.AssertExpectations(t) }) 108 109 return mock 110 }