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