github.com/koko1123/flow-go-1@v0.29.6/module/mock/ledger_metrics.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 mock "github.com/stretchr/testify/mock" 7 8 time "time" 9 ) 10 11 // LedgerMetrics is an autogenerated mock type for the LedgerMetrics type 12 type LedgerMetrics struct { 13 mock.Mock 14 } 15 16 // ForestApproxMemorySize provides a mock function with given fields: bytes 17 func (_m *LedgerMetrics) ForestApproxMemorySize(bytes uint64) { 18 _m.Called(bytes) 19 } 20 21 // ForestNumberOfTrees provides a mock function with given fields: number 22 func (_m *LedgerMetrics) ForestNumberOfTrees(number uint64) { 23 _m.Called(number) 24 } 25 26 // LatestTrieMaxDepthTouched provides a mock function with given fields: maxDepth 27 func (_m *LedgerMetrics) LatestTrieMaxDepthTouched(maxDepth uint16) { 28 _m.Called(maxDepth) 29 } 30 31 // LatestTrieRegCount provides a mock function with given fields: number 32 func (_m *LedgerMetrics) LatestTrieRegCount(number uint64) { 33 _m.Called(number) 34 } 35 36 // LatestTrieRegCountDiff provides a mock function with given fields: number 37 func (_m *LedgerMetrics) LatestTrieRegCountDiff(number int64) { 38 _m.Called(number) 39 } 40 41 // LatestTrieRegSize provides a mock function with given fields: size 42 func (_m *LedgerMetrics) LatestTrieRegSize(size uint64) { 43 _m.Called(size) 44 } 45 46 // LatestTrieRegSizeDiff provides a mock function with given fields: size 47 func (_m *LedgerMetrics) LatestTrieRegSizeDiff(size int64) { 48 _m.Called(size) 49 } 50 51 // ProofSize provides a mock function with given fields: bytes 52 func (_m *LedgerMetrics) ProofSize(bytes uint32) { 53 _m.Called(bytes) 54 } 55 56 // ReadDuration provides a mock function with given fields: duration 57 func (_m *LedgerMetrics) ReadDuration(duration time.Duration) { 58 _m.Called(duration) 59 } 60 61 // ReadDurationPerItem provides a mock function with given fields: duration 62 func (_m *LedgerMetrics) ReadDurationPerItem(duration time.Duration) { 63 _m.Called(duration) 64 } 65 66 // ReadValuesNumber provides a mock function with given fields: number 67 func (_m *LedgerMetrics) ReadValuesNumber(number uint64) { 68 _m.Called(number) 69 } 70 71 // ReadValuesSize provides a mock function with given fields: byte 72 func (_m *LedgerMetrics) ReadValuesSize(byte uint64) { 73 _m.Called(byte) 74 } 75 76 // UpdateCount provides a mock function with given fields: 77 func (_m *LedgerMetrics) UpdateCount() { 78 _m.Called() 79 } 80 81 // UpdateDuration provides a mock function with given fields: duration 82 func (_m *LedgerMetrics) UpdateDuration(duration time.Duration) { 83 _m.Called(duration) 84 } 85 86 // UpdateDurationPerItem provides a mock function with given fields: duration 87 func (_m *LedgerMetrics) UpdateDurationPerItem(duration time.Duration) { 88 _m.Called(duration) 89 } 90 91 // UpdateValuesNumber provides a mock function with given fields: number 92 func (_m *LedgerMetrics) UpdateValuesNumber(number uint64) { 93 _m.Called(number) 94 } 95 96 // UpdateValuesSize provides a mock function with given fields: byte 97 func (_m *LedgerMetrics) UpdateValuesSize(byte uint64) { 98 _m.Called(byte) 99 } 100 101 type mockConstructorTestingTNewLedgerMetrics interface { 102 mock.TestingT 103 Cleanup(func()) 104 } 105 106 // NewLedgerMetrics creates a new instance of LedgerMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 107 func NewLedgerMetrics(t mockConstructorTestingTNewLedgerMetrics) *LedgerMetrics { 108 mock := &LedgerMetrics{} 109 mock.Mock.Test(t) 110 111 t.Cleanup(func() { mock.AssertExpectations(t) }) 112 113 return mock 114 }