github.com/koko1123/flow-go-1@v0.29.6/module/mock/execution_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 module "github.com/koko1123/flow-go-1/module" 10 11 time "time" 12 ) 13 14 // ExecutionMetrics is an autogenerated mock type for the ExecutionMetrics type 15 type ExecutionMetrics struct { 16 mock.Mock 17 } 18 19 // ChunkDataPackRequestProcessed provides a mock function with given fields: 20 func (_m *ExecutionMetrics) ChunkDataPackRequestProcessed() { 21 _m.Called() 22 } 23 24 // ExecutionBlockDataUploadFinished provides a mock function with given fields: dur 25 func (_m *ExecutionMetrics) ExecutionBlockDataUploadFinished(dur time.Duration) { 26 _m.Called(dur) 27 } 28 29 // ExecutionBlockDataUploadStarted provides a mock function with given fields: 30 func (_m *ExecutionMetrics) ExecutionBlockDataUploadStarted() { 31 _m.Called() 32 } 33 34 // ExecutionBlockExecuted provides a mock function with given fields: dur, stats 35 func (_m *ExecutionMetrics) ExecutionBlockExecuted(dur time.Duration, stats module.ExecutionResultStats) { 36 _m.Called(dur, stats) 37 } 38 39 // ExecutionBlockExecutionEffortVectorComponent provides a mock function with given fields: _a0, _a1 40 func (_m *ExecutionMetrics) ExecutionBlockExecutionEffortVectorComponent(_a0 string, _a1 uint) { 41 _m.Called(_a0, _a1) 42 } 43 44 // ExecutionChunkDataPackGenerated provides a mock function with given fields: proofSize, numberOfTransactions 45 func (_m *ExecutionMetrics) ExecutionChunkDataPackGenerated(proofSize int, numberOfTransactions int) { 46 _m.Called(proofSize, numberOfTransactions) 47 } 48 49 // ExecutionCollectionExecuted provides a mock function with given fields: dur, stats 50 func (_m *ExecutionMetrics) ExecutionCollectionExecuted(dur time.Duration, stats module.ExecutionResultStats) { 51 _m.Called(dur, stats) 52 } 53 54 // ExecutionCollectionRequestRetried provides a mock function with given fields: 55 func (_m *ExecutionMetrics) ExecutionCollectionRequestRetried() { 56 _m.Called() 57 } 58 59 // ExecutionCollectionRequestSent provides a mock function with given fields: 60 func (_m *ExecutionMetrics) ExecutionCollectionRequestSent() { 61 _m.Called() 62 } 63 64 // ExecutionComputationResultUploadRetried provides a mock function with given fields: 65 func (_m *ExecutionMetrics) ExecutionComputationResultUploadRetried() { 66 _m.Called() 67 } 68 69 // ExecutionComputationResultUploaded provides a mock function with given fields: 70 func (_m *ExecutionMetrics) ExecutionComputationResultUploaded() { 71 _m.Called() 72 } 73 74 // ExecutionLastExecutedBlockHeight provides a mock function with given fields: height 75 func (_m *ExecutionMetrics) ExecutionLastExecutedBlockHeight(height uint64) { 76 _m.Called(height) 77 } 78 79 // ExecutionScriptExecuted provides a mock function with given fields: dur, compUsed, memoryUsed, memoryEstimate 80 func (_m *ExecutionMetrics) ExecutionScriptExecuted(dur time.Duration, compUsed uint64, memoryUsed uint64, memoryEstimate uint64) { 81 _m.Called(dur, compUsed, memoryUsed, memoryEstimate) 82 } 83 84 // ExecutionStorageStateCommitment provides a mock function with given fields: bytes 85 func (_m *ExecutionMetrics) ExecutionStorageStateCommitment(bytes int64) { 86 _m.Called(bytes) 87 } 88 89 // ExecutionSync provides a mock function with given fields: syncing 90 func (_m *ExecutionMetrics) ExecutionSync(syncing bool) { 91 _m.Called(syncing) 92 } 93 94 // ExecutionTransactionExecuted provides a mock function with given fields: dur, compUsed, memoryUsed, actualMemoryUsed, eventCounts, eventSize, failed 95 func (_m *ExecutionMetrics) ExecutionTransactionExecuted(dur time.Duration, compUsed uint64, memoryUsed uint64, actualMemoryUsed uint64, eventCounts int, eventSize int, failed bool) { 96 _m.Called(dur, compUsed, memoryUsed, actualMemoryUsed, eventCounts, eventSize, failed) 97 } 98 99 // FinishBlockReceivedToExecuted provides a mock function with given fields: blockID 100 func (_m *ExecutionMetrics) FinishBlockReceivedToExecuted(blockID flow.Identifier) { 101 _m.Called(blockID) 102 } 103 104 // ForestApproxMemorySize provides a mock function with given fields: bytes 105 func (_m *ExecutionMetrics) ForestApproxMemorySize(bytes uint64) { 106 _m.Called(bytes) 107 } 108 109 // ForestNumberOfTrees provides a mock function with given fields: number 110 func (_m *ExecutionMetrics) ForestNumberOfTrees(number uint64) { 111 _m.Called(number) 112 } 113 114 // LatestTrieMaxDepthTouched provides a mock function with given fields: maxDepth 115 func (_m *ExecutionMetrics) LatestTrieMaxDepthTouched(maxDepth uint16) { 116 _m.Called(maxDepth) 117 } 118 119 // LatestTrieRegCount provides a mock function with given fields: number 120 func (_m *ExecutionMetrics) LatestTrieRegCount(number uint64) { 121 _m.Called(number) 122 } 123 124 // LatestTrieRegCountDiff provides a mock function with given fields: number 125 func (_m *ExecutionMetrics) LatestTrieRegCountDiff(number int64) { 126 _m.Called(number) 127 } 128 129 // LatestTrieRegSize provides a mock function with given fields: size 130 func (_m *ExecutionMetrics) LatestTrieRegSize(size uint64) { 131 _m.Called(size) 132 } 133 134 // LatestTrieRegSizeDiff provides a mock function with given fields: size 135 func (_m *ExecutionMetrics) LatestTrieRegSizeDiff(size int64) { 136 _m.Called(size) 137 } 138 139 // ProofSize provides a mock function with given fields: bytes 140 func (_m *ExecutionMetrics) ProofSize(bytes uint32) { 141 _m.Called(bytes) 142 } 143 144 // ReadDuration provides a mock function with given fields: duration 145 func (_m *ExecutionMetrics) ReadDuration(duration time.Duration) { 146 _m.Called(duration) 147 } 148 149 // ReadDurationPerItem provides a mock function with given fields: duration 150 func (_m *ExecutionMetrics) ReadDurationPerItem(duration time.Duration) { 151 _m.Called(duration) 152 } 153 154 // ReadValuesNumber provides a mock function with given fields: number 155 func (_m *ExecutionMetrics) ReadValuesNumber(number uint64) { 156 _m.Called(number) 157 } 158 159 // ReadValuesSize provides a mock function with given fields: byte 160 func (_m *ExecutionMetrics) ReadValuesSize(byte uint64) { 161 _m.Called(byte) 162 } 163 164 // RuntimeSetNumberOfAccounts provides a mock function with given fields: count 165 func (_m *ExecutionMetrics) RuntimeSetNumberOfAccounts(count uint64) { 166 _m.Called(count) 167 } 168 169 // RuntimeTransactionChecked provides a mock function with given fields: dur 170 func (_m *ExecutionMetrics) RuntimeTransactionChecked(dur time.Duration) { 171 _m.Called(dur) 172 } 173 174 // RuntimeTransactionInterpreted provides a mock function with given fields: dur 175 func (_m *ExecutionMetrics) RuntimeTransactionInterpreted(dur time.Duration) { 176 _m.Called(dur) 177 } 178 179 // RuntimeTransactionParsed provides a mock function with given fields: dur 180 func (_m *ExecutionMetrics) RuntimeTransactionParsed(dur time.Duration) { 181 _m.Called(dur) 182 } 183 184 // StartBlockReceivedToExecuted provides a mock function with given fields: blockID 185 func (_m *ExecutionMetrics) StartBlockReceivedToExecuted(blockID flow.Identifier) { 186 _m.Called(blockID) 187 } 188 189 // UpdateCollectionMaxHeight provides a mock function with given fields: height 190 func (_m *ExecutionMetrics) UpdateCollectionMaxHeight(height uint64) { 191 _m.Called(height) 192 } 193 194 // UpdateCount provides a mock function with given fields: 195 func (_m *ExecutionMetrics) UpdateCount() { 196 _m.Called() 197 } 198 199 // UpdateDuration provides a mock function with given fields: duration 200 func (_m *ExecutionMetrics) UpdateDuration(duration time.Duration) { 201 _m.Called(duration) 202 } 203 204 // UpdateDurationPerItem provides a mock function with given fields: duration 205 func (_m *ExecutionMetrics) UpdateDurationPerItem(duration time.Duration) { 206 _m.Called(duration) 207 } 208 209 // UpdateValuesNumber provides a mock function with given fields: number 210 func (_m *ExecutionMetrics) UpdateValuesNumber(number uint64) { 211 _m.Called(number) 212 } 213 214 // UpdateValuesSize provides a mock function with given fields: byte 215 func (_m *ExecutionMetrics) UpdateValuesSize(byte uint64) { 216 _m.Called(byte) 217 } 218 219 type mockConstructorTestingTNewExecutionMetrics interface { 220 mock.TestingT 221 Cleanup(func()) 222 } 223 224 // NewExecutionMetrics creates a new instance of ExecutionMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 225 func NewExecutionMetrics(t mockConstructorTestingTNewExecutionMetrics) *ExecutionMetrics { 226 mock := &ExecutionMetrics{} 227 mock.Mock.Test(t) 228 229 t.Cleanup(func() { mock.AssertExpectations(t) }) 230 231 return mock 232 }