-
Notifications
You must be signed in to change notification settings - Fork 1
/
metrics_provider.go
59 lines (47 loc) · 1.4 KB
/
metrics_provider.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 v1.0.0. DO NOT EDIT.
package mocks
import metrics "github.com/hyperledger/fabric/common/metrics"
import mock "github.com/stretchr/testify/mock"
// MetricsProvider is an autogenerated mock type for the MetricsProvider type
type MetricsProvider struct {
mock.Mock
}
// NewCounter provides a mock function with given fields: opts
func (_m *MetricsProvider) NewCounter(opts metrics.CounterOpts) metrics.Counter {
ret := _m.Called(opts)
var r0 metrics.Counter
if rf, ok := ret.Get(0).(func(metrics.CounterOpts) metrics.Counter); ok {
r0 = rf(opts)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(metrics.Counter)
}
}
return r0
}
// NewGauge provides a mock function with given fields: opts
func (_m *MetricsProvider) NewGauge(opts metrics.GaugeOpts) metrics.Gauge {
ret := _m.Called(opts)
var r0 metrics.Gauge
if rf, ok := ret.Get(0).(func(metrics.GaugeOpts) metrics.Gauge); ok {
r0 = rf(opts)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(metrics.Gauge)
}
}
return r0
}
// NewHistogram provides a mock function with given fields: opts
func (_m *MetricsProvider) NewHistogram(opts metrics.HistogramOpts) metrics.Histogram {
ret := _m.Called(opts)
var r0 metrics.Histogram
if rf, ok := ret.Get(0).(func(metrics.HistogramOpts) metrics.Histogram); ok {
r0 = rf(opts)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(metrics.Histogram)
}
}
return r0
}