/
imanager_mock.go
288 lines (246 loc) · 9.53 KB
/
imanager_mock.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/iostrovok/conveyor/faces (interfaces: IManager)
// Package mmock is a generated GoMock package.
package mmock
import (
context "context"
gomock "github.com/golang/mock/gomock"
faces "github.com/iostrovok/conveyor/faces"
nodes "github.com/iostrovok/conveyor/protobuf/go/nodes"
reflect "reflect"
sync "sync"
time "time"
)
// MockIManager is a mock of IManager interface
type MockIManager struct {
ctrl *gomock.Controller
recorder *MockIManagerMockRecorder
}
// MockIManagerMockRecorder is the mock recorder for MockIManager
type MockIManagerMockRecorder struct {
mock *MockIManager
}
// NewMockIManager creates a new mock instance
func NewMockIManager(ctrl *gomock.Controller) *MockIManager {
mock := &MockIManager{ctrl: ctrl}
mock.recorder = &MockIManagerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockIManager) EXPECT() *MockIManagerMockRecorder {
return m.recorder
}
// GetNextManager mocks base method
func (m *MockIManager) GetNextManager() faces.IManager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetNextManager")
ret0, _ := ret[0].(faces.IManager)
return ret0
}
// GetNextManager indicates an expected call of GetNextManager
func (mr *MockIManagerMockRecorder) GetNextManager() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNextManager", reflect.TypeOf((*MockIManager)(nil).GetNextManager))
}
// GetPrevManager mocks base method
func (m *MockIManager) GetPrevManager() faces.IManager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPrevManager")
ret0, _ := ret[0].(faces.IManager)
return ret0
}
// GetPrevManager indicates an expected call of GetPrevManager
func (mr *MockIManagerMockRecorder) GetPrevManager() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPrevManager", reflect.TypeOf((*MockIManager)(nil).GetPrevManager))
}
// IsLast mocks base method
func (m *MockIManager) IsLast() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsLast")
ret0, _ := ret[0].(bool)
return ret0
}
// IsLast indicates an expected call of IsLast
func (mr *MockIManagerMockRecorder) IsLast() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsLast", reflect.TypeOf((*MockIManager)(nil).IsLast))
}
// MetricPeriod mocks base method
func (m *MockIManager) MetricPeriod(arg0 time.Duration) faces.IManager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MetricPeriod", arg0)
ret0, _ := ret[0].(faces.IManager)
return ret0
}
// MetricPeriod indicates an expected call of MetricPeriod
func (mr *MockIManagerMockRecorder) MetricPeriod(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MetricPeriod", reflect.TypeOf((*MockIManager)(nil).MetricPeriod), arg0)
}
// Name mocks base method
func (m *MockIManager) Name() faces.Name {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Name")
ret0, _ := ret[0].(faces.Name)
return ret0
}
// Name indicates an expected call of Name
func (mr *MockIManagerMockRecorder) Name() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockIManager)(nil).Name))
}
// SetChanErr mocks base method
func (m *MockIManager) SetChanErr(arg0 faces.IChan) faces.IManager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetChanErr", arg0)
ret0, _ := ret[0].(faces.IManager)
return ret0
}
// SetChanErr indicates an expected call of SetChanErr
func (mr *MockIManagerMockRecorder) SetChanErr(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetChanErr", reflect.TypeOf((*MockIManager)(nil).SetChanErr), arg0)
}
// SetChanIn mocks base method
func (m *MockIManager) SetChanIn(arg0 faces.IChan) faces.IManager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetChanIn", arg0)
ret0, _ := ret[0].(faces.IManager)
return ret0
}
// SetChanIn indicates an expected call of SetChanIn
func (mr *MockIManagerMockRecorder) SetChanIn(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetChanIn", reflect.TypeOf((*MockIManager)(nil).SetChanIn), arg0)
}
// SetChanOut mocks base method
func (m *MockIManager) SetChanOut(arg0 faces.IChan) faces.IManager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetChanOut", arg0)
ret0, _ := ret[0].(faces.IManager)
return ret0
}
// SetChanOut indicates an expected call of SetChanOut
func (mr *MockIManagerMockRecorder) SetChanOut(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetChanOut", reflect.TypeOf((*MockIManager)(nil).SetChanOut), arg0)
}
// SetHandler mocks base method
func (m *MockIManager) SetHandler(arg0 faces.GiveBirth) faces.IManager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetHandler", arg0)
ret0, _ := ret[0].(faces.IManager)
return ret0
}
// SetHandler indicates an expected call of SetHandler
func (mr *MockIManagerMockRecorder) SetHandler(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHandler", reflect.TypeOf((*MockIManager)(nil).SetHandler), arg0)
}
// SetIsLast mocks base method
func (m *MockIManager) SetIsLast(arg0 bool) faces.IManager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetIsLast", arg0)
ret0, _ := ret[0].(faces.IManager)
return ret0
}
// SetIsLast indicates an expected call of SetIsLast
func (mr *MockIManagerMockRecorder) SetIsLast(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIsLast", reflect.TypeOf((*MockIManager)(nil).SetIsLast), arg0)
}
// SetNextManager mocks base method
func (m *MockIManager) SetNextManager(arg0 faces.IManager) faces.IManager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetNextManager", arg0)
ret0, _ := ret[0].(faces.IManager)
return ret0
}
// SetNextManager indicates an expected call of SetNextManager
func (mr *MockIManagerMockRecorder) SetNextManager(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNextManager", reflect.TypeOf((*MockIManager)(nil).SetNextManager), arg0)
}
// SetPrevManager mocks base method
func (m *MockIManager) SetPrevManager(arg0 faces.IManager) faces.IManager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetPrevManager", arg0)
ret0, _ := ret[0].(faces.IManager)
return ret0
}
// SetPrevManager indicates an expected call of SetPrevManager
func (mr *MockIManagerMockRecorder) SetPrevManager(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPrevManager", reflect.TypeOf((*MockIManager)(nil).SetPrevManager), arg0)
}
// SetTestMode mocks base method
func (m *MockIManager) SetTestMode(arg0 faces.ITestObject) faces.IManager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetTestMode", arg0)
ret0, _ := ret[0].(faces.IManager)
return ret0
}
// SetTestMode indicates an expected call of SetTestMode
func (mr *MockIManagerMockRecorder) SetTestMode(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTestMode", reflect.TypeOf((*MockIManager)(nil).SetTestMode), arg0)
}
// SetWaitGroup mocks base method
func (m *MockIManager) SetWaitGroup(arg0 *sync.WaitGroup) faces.IManager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetWaitGroup", arg0)
ret0, _ := ret[0].(faces.IManager)
return ret0
}
// SetWaitGroup indicates an expected call of SetWaitGroup
func (mr *MockIManagerMockRecorder) SetWaitGroup(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWaitGroup", reflect.TypeOf((*MockIManager)(nil).SetWaitGroup), arg0)
}
// SetWorkersCounter mocks base method
func (m *MockIManager) SetWorkersCounter(arg0 faces.IWorkersCounter) faces.IManager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetWorkersCounter", arg0)
ret0, _ := ret[0].(faces.IManager)
return ret0
}
// SetWorkersCounter indicates an expected call of SetWorkersCounter
func (mr *MockIManagerMockRecorder) SetWorkersCounter(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWorkersCounter", reflect.TypeOf((*MockIManager)(nil).SetWorkersCounter), arg0)
}
// Start mocks base method
func (m *MockIManager) Start(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Start", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Start indicates an expected call of Start
func (mr *MockIManagerMockRecorder) Start(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockIManager)(nil).Start), arg0)
}
// Statistic mocks base method
func (m *MockIManager) Statistic() *nodes.ManagerData {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Statistic")
ret0, _ := ret[0].(*nodes.ManagerData)
return ret0
}
// Statistic indicates an expected call of Statistic
func (mr *MockIManagerMockRecorder) Statistic() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Statistic", reflect.TypeOf((*MockIManager)(nil).Statistic))
}
// Stop mocks base method
func (m *MockIManager) Stop() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Stop")
}
// Stop indicates an expected call of Stop
func (mr *MockIManagerMockRecorder) Stop() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockIManager)(nil).Stop))
}