github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/execution_state_indexer_metrics.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	mock "github.com/stretchr/testify/mock"
     7  
     8  	time "time"
     9  )
    10  
    11  // ExecutionStateIndexerMetrics is an autogenerated mock type for the ExecutionStateIndexerMetrics type
    12  type ExecutionStateIndexerMetrics struct {
    13  	mock.Mock
    14  }
    15  
    16  // BlockIndexed provides a mock function with given fields: height, duration, events, registers, transactionResults
    17  func (_m *ExecutionStateIndexerMetrics) BlockIndexed(height uint64, duration time.Duration, events int, registers int, transactionResults int) {
    18  	_m.Called(height, duration, events, registers, transactionResults)
    19  }
    20  
    21  // BlockReindexed provides a mock function with given fields:
    22  func (_m *ExecutionStateIndexerMetrics) BlockReindexed() {
    23  	_m.Called()
    24  }
    25  
    26  // InitializeLatestHeight provides a mock function with given fields: height
    27  func (_m *ExecutionStateIndexerMetrics) InitializeLatestHeight(height uint64) {
    28  	_m.Called(height)
    29  }
    30  
    31  type mockConstructorTestingTNewExecutionStateIndexerMetrics interface {
    32  	mock.TestingT
    33  	Cleanup(func())
    34  }
    35  
    36  // NewExecutionStateIndexerMetrics creates a new instance of ExecutionStateIndexerMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    37  func NewExecutionStateIndexerMetrics(t mockConstructorTestingTNewExecutionStateIndexerMetrics) *ExecutionStateIndexerMetrics {
    38  	mock := &ExecutionStateIndexerMetrics{}
    39  	mock.Mock.Test(t)
    40  
    41  	t.Cleanup(func() { mock.AssertExpectations(t) })
    42  
    43  	return mock
    44  }