-
Notifications
You must be signed in to change notification settings - Fork 175
/
runtime_metrics.go
59 lines (45 loc) · 1.68 KB
/
runtime_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
// Code generated by mockery v2.21.4. DO NOT EDIT.
package mock
import (
mock "github.com/stretchr/testify/mock"
time "time"
)
// RuntimeMetrics is an autogenerated mock type for the RuntimeMetrics type
type RuntimeMetrics struct {
mock.Mock
}
// RuntimeSetNumberOfAccounts provides a mock function with given fields: count
func (_m *RuntimeMetrics) RuntimeSetNumberOfAccounts(count uint64) {
_m.Called(count)
}
// RuntimeTransactionChecked provides a mock function with given fields: dur
func (_m *RuntimeMetrics) RuntimeTransactionChecked(dur time.Duration) {
_m.Called(dur)
}
// RuntimeTransactionInterpreted provides a mock function with given fields: dur
func (_m *RuntimeMetrics) RuntimeTransactionInterpreted(dur time.Duration) {
_m.Called(dur)
}
// RuntimeTransactionParsed provides a mock function with given fields: dur
func (_m *RuntimeMetrics) RuntimeTransactionParsed(dur time.Duration) {
_m.Called(dur)
}
// RuntimeTransactionProgramsCacheHit provides a mock function with given fields:
func (_m *RuntimeMetrics) RuntimeTransactionProgramsCacheHit() {
_m.Called()
}
// RuntimeTransactionProgramsCacheMiss provides a mock function with given fields:
func (_m *RuntimeMetrics) RuntimeTransactionProgramsCacheMiss() {
_m.Called()
}
type mockConstructorTestingTNewRuntimeMetrics interface {
mock.TestingT
Cleanup(func())
}
// NewRuntimeMetrics creates a new instance of RuntimeMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewRuntimeMetrics(t mockConstructorTestingTNewRuntimeMetrics) *RuntimeMetrics {
mock := &RuntimeMetrics{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}