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

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	chainsync "github.com/onflow/flow-go/model/chainsync"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // ChainSyncMetrics is an autogenerated mock type for the ChainSyncMetrics type
    11  type ChainSyncMetrics struct {
    12  	mock.Mock
    13  }
    14  
    15  // BatchRequested provides a mock function with given fields: batch
    16  func (_m *ChainSyncMetrics) BatchRequested(batch chainsync.Batch) {
    17  	_m.Called(batch)
    18  }
    19  
    20  // PrunedBlockByHeight provides a mock function with given fields: status
    21  func (_m *ChainSyncMetrics) PrunedBlockByHeight(status *chainsync.Status) {
    22  	_m.Called(status)
    23  }
    24  
    25  // PrunedBlockById provides a mock function with given fields: status
    26  func (_m *ChainSyncMetrics) PrunedBlockById(status *chainsync.Status) {
    27  	_m.Called(status)
    28  }
    29  
    30  // PrunedBlocks provides a mock function with given fields: totalByHeight, totalById, storedByHeight, storedById
    31  func (_m *ChainSyncMetrics) PrunedBlocks(totalByHeight int, totalById int, storedByHeight int, storedById int) {
    32  	_m.Called(totalByHeight, totalById, storedByHeight, storedById)
    33  }
    34  
    35  // RangeRequested provides a mock function with given fields: ran
    36  func (_m *ChainSyncMetrics) RangeRequested(ran chainsync.Range) {
    37  	_m.Called(ran)
    38  }
    39  
    40  type mockConstructorTestingTNewChainSyncMetrics interface {
    41  	mock.TestingT
    42  	Cleanup(func())
    43  }
    44  
    45  // NewChainSyncMetrics creates a new instance of ChainSyncMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    46  func NewChainSyncMetrics(t mockConstructorTestingTNewChainSyncMetrics) *ChainSyncMetrics {
    47  	mock := &ChainSyncMetrics{}
    48  	mock.Mock.Test(t)
    49  
    50  	t.Cleanup(func() { mock.AssertExpectations(t) })
    51  
    52  	return mock
    53  }