-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstater_mock_test.go
133 lines (114 loc) · 4.09 KB
/
stater_mock_test.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
// Code generated by MockGen. DO NOT EDIT.
// Source: bitbucket.org/asecurityteam/vb2-report-worker/pkg/domain (interfaces: Stat)
// Package v1 is a generated GoMock package.
package stat
import (
reflect "reflect"
time "time"
gomock "github.com/golang/mock/gomock"
)
// MockStat is a mock of Stat interface
type MockStat struct {
ctrl *gomock.Controller
recorder *MockStatMockRecorder
}
// MockStatMockRecorder is the mock recorder for MockStat
type MockStatMockRecorder struct {
mock *MockStat
}
// NewMockStat creates a new mock instance
func NewMockStat(ctrl *gomock.Controller) *MockStat {
mock := &MockStat{ctrl: ctrl}
mock.recorder = &MockStatMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockStat) EXPECT() *MockStatMockRecorder {
return m.recorder
}
// AddTags mocks base method
func (m *MockStat) AddTags(arg0 ...string) {
m.ctrl.T.Helper()
varargs := []interface{}{}
for _, a := range arg0 {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "AddTags", varargs...)
}
// AddTags indicates an expected call of AddTags
func (mr *MockStatMockRecorder) AddTags(arg0 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTags", reflect.TypeOf((*MockStat)(nil).AddTags), arg0...)
}
// Count mocks base method
func (m *MockStat) Count(arg0 string, arg1 float64, arg2 ...string) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "Count", varargs...)
}
// Count indicates an expected call of Count
func (mr *MockStatMockRecorder) Count(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Count", reflect.TypeOf((*MockStat)(nil).Count), varargs...)
}
// Gauge mocks base method
func (m *MockStat) Gauge(arg0 string, arg1 float64, arg2 ...string) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "Gauge", varargs...)
}
// Gauge indicates an expected call of Gauge
func (mr *MockStatMockRecorder) Gauge(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Gauge", reflect.TypeOf((*MockStat)(nil).Gauge), varargs...)
}
// GetTags mocks base method
func (m *MockStat) GetTags() []string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTags")
ret0, _ := ret[0].([]string)
return ret0
}
// GetTags indicates an expected call of GetTags
func (mr *MockStatMockRecorder) GetTags() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTags", reflect.TypeOf((*MockStat)(nil).GetTags))
}
// Histogram mocks base method
func (m *MockStat) Histogram(arg0 string, arg1 float64, arg2 ...string) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "Histogram", varargs...)
}
// Histogram indicates an expected call of Histogram
func (mr *MockStatMockRecorder) Histogram(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Histogram", reflect.TypeOf((*MockStat)(nil).Histogram), varargs...)
}
// Timing mocks base method
func (m *MockStat) Timing(arg0 string, arg1 time.Duration, arg2 ...string) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "Timing", varargs...)
}
// Timing indicates an expected call of Timing
func (mr *MockStatMockRecorder) Timing(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Timing", reflect.TypeOf((*MockStat)(nil).Timing), varargs...)
}