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