-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_stats.go
151 lines (129 loc) · 4.82 KB
/
mock_stats.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
// Code generated by MockGen. DO NOT EDIT.
// Source: stats.go
package stats
import (
gomock "github.com/golang/mock/gomock"
reflect "reflect"
time "time"
)
// MockStats is a mock of Stats interface
type MockStats struct {
ctrl *gomock.Controller
recorder *MockStatsMockRecorder
}
// MockStatsMockRecorder is the mock recorder for MockStats
type MockStatsMockRecorder struct {
mock *MockStats
}
// NewMockStats creates a new mock instance
func NewMockStats(ctrl *gomock.Controller) *MockStats {
mock := &MockStats{ctrl: ctrl}
mock.recorder = &MockStatsMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockStats) EXPECT() *MockStatsMockRecorder {
return m.recorder
}
// Gauge mocks base method
func (m *MockStats) Gauge(stat string, value float64, tags ...Tag) {
varargs := []interface{}{stat, value}
for _, a := range tags {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "Gauge", varargs...)
}
// Gauge indicates an expected call of Gauge
func (mr *MockStatsMockRecorder) Gauge(stat, value interface{}, tags ...interface{}) *gomock.Call {
varargs := append([]interface{}{stat, value}, tags...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Gauge", reflect.TypeOf((*MockStats)(nil).Gauge), varargs...)
}
// Count mocks base method
func (m *MockStats) Count(stat string, count float64, tags ...Tag) {
varargs := []interface{}{stat, count}
for _, a := range tags {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "Count", varargs...)
}
// Count indicates an expected call of Count
func (mr *MockStatsMockRecorder) Count(stat, count interface{}, tags ...interface{}) *gomock.Call {
varargs := append([]interface{}{stat, count}, tags...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Count", reflect.TypeOf((*MockStats)(nil).Count), varargs...)
}
// Histogram mocks base method
func (m *MockStats) Histogram(stat string, value float64, tags ...Tag) {
varargs := []interface{}{stat, value}
for _, a := range tags {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "Histogram", varargs...)
}
// Histogram indicates an expected call of Histogram
func (mr *MockStatsMockRecorder) Histogram(stat, value interface{}, tags ...interface{}) *gomock.Call {
varargs := append([]interface{}{stat, value}, tags...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Histogram", reflect.TypeOf((*MockStats)(nil).Histogram), varargs...)
}
// Timing mocks base method
func (m *MockStats) Timing(stat string, value time.Duration, tags ...Tag) {
varargs := []interface{}{stat, value}
for _, a := range tags {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "Timing", varargs...)
}
// Timing indicates an expected call of Timing
func (mr *MockStatsMockRecorder) Timing(stat, value interface{}, tags ...interface{}) *gomock.Call {
varargs := append([]interface{}{stat, value}, tags...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Timing", reflect.TypeOf((*MockStats)(nil).Timing), varargs...)
}
// Event mocks base method
func (m *MockStats) Event(stat string, fields ...Field) {
varargs := []interface{}{stat}
for _, a := range fields {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "Event", varargs...)
}
// Event indicates an expected call of Event
func (mr *MockStatsMockRecorder) Event(stat interface{}, fields ...interface{}) *gomock.Call {
varargs := append([]interface{}{stat}, fields...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Event", reflect.TypeOf((*MockStats)(nil).Event), varargs...)
}
// AddTags mocks base method
func (m *MockStats) AddTags(tags ...Tag) {
varargs := []interface{}{}
for _, a := range tags {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "AddTags", varargs...)
}
// AddTags indicates an expected call of AddTags
func (mr *MockStatsMockRecorder) AddTags(tags ...interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTags", reflect.TypeOf((*MockStats)(nil).AddTags), tags...)
}
// Scope mocks base method
func (m *MockStats) Scope(scope string, scopes ...string) Stats {
varargs := []interface{}{scope}
for _, a := range scopes {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Scope", varargs...)
ret0, _ := ret[0].(Stats)
return ret0
}
// Scope indicates an expected call of Scope
func (mr *MockStatsMockRecorder) Scope(scope interface{}, scopes ...interface{}) *gomock.Call {
varargs := append([]interface{}{scope}, scopes...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Scope", reflect.TypeOf((*MockStats)(nil).Scope), varargs...)
}
// Close mocks base method
func (m *MockStats) Close() error {
ret := m.ctrl.Call(m, "Close")
ret0, _ := ret[0].(error)
return ret0
}
// Close indicates an expected call of Close
func (mr *MockStatsMockRecorder) Close() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockStats)(nil).Close))
}