-
Notifications
You must be signed in to change notification settings - Fork 177
/
metrics_reporter.go
59 lines (45 loc) · 1.7 KB
/
metrics_reporter.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 (
time "time"
mock "github.com/stretchr/testify/mock"
)
// MetricsReporter is an autogenerated mock type for the MetricsReporter type
type MetricsReporter struct {
mock.Mock
}
// RuntimeSetNumberOfAccounts provides a mock function with given fields: count
func (_m *MetricsReporter) RuntimeSetNumberOfAccounts(count uint64) {
_m.Called(count)
}
// RuntimeTransactionChecked provides a mock function with given fields: _a0
func (_m *MetricsReporter) RuntimeTransactionChecked(_a0 time.Duration) {
_m.Called(_a0)
}
// RuntimeTransactionInterpreted provides a mock function with given fields: _a0
func (_m *MetricsReporter) RuntimeTransactionInterpreted(_a0 time.Duration) {
_m.Called(_a0)
}
// RuntimeTransactionParsed provides a mock function with given fields: _a0
func (_m *MetricsReporter) RuntimeTransactionParsed(_a0 time.Duration) {
_m.Called(_a0)
}
// RuntimeTransactionProgramsCacheHit provides a mock function with given fields:
func (_m *MetricsReporter) RuntimeTransactionProgramsCacheHit() {
_m.Called()
}
// RuntimeTransactionProgramsCacheMiss provides a mock function with given fields:
func (_m *MetricsReporter) RuntimeTransactionProgramsCacheMiss() {
_m.Called()
}
type mockConstructorTestingTNewMetricsReporter interface {
mock.TestingT
Cleanup(func())
}
// NewMetricsReporter creates a new instance of MetricsReporter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMetricsReporter(t mockConstructorTestingTNewMetricsReporter) *MetricsReporter {
mock := &MetricsReporter{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}