This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
mock_expect.go
273 lines (232 loc) · 7.99 KB
/
mock_expect.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
// Code generated by MockGen. DO NOT EDIT.
// Source: ./expect.go
// Package mock_interactive is a generated GoMock package.
package mock_interactive
import (
reflect "reflect"
regexp "regexp"
time "time"
gomock "github.com/golang/mock/gomock"
goexpect "github.com/google/goexpect"
)
// MockBatcher is a mock of Batcher interface.
type MockBatcher struct {
ctrl *gomock.Controller
recorder *MockBatcherMockRecorder
}
// MockBatcherMockRecorder is the mock recorder for MockBatcher.
type MockBatcherMockRecorder struct {
mock *MockBatcher
}
// NewMockBatcher creates a new mock instance.
func NewMockBatcher(ctrl *gomock.Controller) *MockBatcher {
mock := &MockBatcher{ctrl: ctrl}
mock.recorder = &MockBatcherMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBatcher) EXPECT() *MockBatcherMockRecorder {
return m.recorder
}
// Arg mocks base method.
func (m *MockBatcher) Arg() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Arg")
ret0, _ := ret[0].(string)
return ret0
}
// Arg indicates an expected call of Arg.
func (mr *MockBatcherMockRecorder) Arg() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Arg", reflect.TypeOf((*MockBatcher)(nil).Arg))
}
// Cases mocks base method.
func (m *MockBatcher) Cases() []goexpect.Caser {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Cases")
ret0, _ := ret[0].([]goexpect.Caser)
return ret0
}
// Cases indicates an expected call of Cases.
func (mr *MockBatcherMockRecorder) Cases() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cases", reflect.TypeOf((*MockBatcher)(nil).Cases))
}
// Cmd mocks base method.
func (m *MockBatcher) Cmd() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Cmd")
ret0, _ := ret[0].(int)
return ret0
}
// Cmd indicates an expected call of Cmd.
func (mr *MockBatcherMockRecorder) Cmd() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cmd", reflect.TypeOf((*MockBatcher)(nil).Cmd))
}
// Timeout mocks base method.
func (m *MockBatcher) Timeout() time.Duration {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Timeout")
ret0, _ := ret[0].(time.Duration)
return ret0
}
// Timeout indicates an expected call of Timeout.
func (mr *MockBatcherMockRecorder) Timeout() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Timeout", reflect.TypeOf((*MockBatcher)(nil).Timeout))
}
// MockCaser is a mock of Caser interface.
type MockCaser struct {
ctrl *gomock.Controller
recorder *MockCaserMockRecorder
}
// MockCaserMockRecorder is the mock recorder for MockCaser.
type MockCaserMockRecorder struct {
mock *MockCaser
}
// NewMockCaser creates a new mock instance.
func NewMockCaser(ctrl *gomock.Controller) *MockCaser {
mock := &MockCaser{ctrl: ctrl}
mock.recorder = &MockCaserMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCaser) EXPECT() *MockCaserMockRecorder {
return m.recorder
}
// RE mocks base method.
func (m *MockCaser) RE() (*regexp.Regexp, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RE")
ret0, _ := ret[0].(*regexp.Regexp)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// RE indicates an expected call of RE.
func (mr *MockCaserMockRecorder) RE() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RE", reflect.TypeOf((*MockCaser)(nil).RE))
}
// Retry mocks base method.
func (m *MockCaser) Retry() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Retry")
ret0, _ := ret[0].(bool)
return ret0
}
// Retry indicates an expected call of Retry.
func (mr *MockCaserMockRecorder) Retry() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Retry", reflect.TypeOf((*MockCaser)(nil).Retry))
}
// String mocks base method.
func (m *MockCaser) String() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "String")
ret0, _ := ret[0].(string)
return ret0
}
// String indicates an expected call of String.
func (mr *MockCaserMockRecorder) String() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockCaser)(nil).String))
}
// Tag mocks base method.
func (m *MockCaser) Tag() (goexpect.Tag, *goexpect.Status) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Tag")
ret0, _ := ret[0].(goexpect.Tag)
ret1, _ := ret[1].(*goexpect.Status)
return ret0, ret1
}
// Tag indicates an expected call of Tag.
func (mr *MockCaserMockRecorder) Tag() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tag", reflect.TypeOf((*MockCaser)(nil).Tag))
}
// MockExpecter is a mock of Expecter interface.
type MockExpecter struct {
ctrl *gomock.Controller
recorder *MockExpecterMockRecorder
}
// MockExpecterMockRecorder is the mock recorder for MockExpecter.
type MockExpecterMockRecorder struct {
mock *MockExpecter
}
// NewMockExpecter creates a new mock instance.
func NewMockExpecter(ctrl *gomock.Controller) *MockExpecter {
mock := &MockExpecter{ctrl: ctrl}
mock.recorder = &MockExpecterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockExpecter) EXPECT() *MockExpecterMockRecorder {
return m.recorder
}
// Close mocks base method.
func (m *MockExpecter) Close() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Close")
ret0, _ := ret[0].(error)
return ret0
}
// Close indicates an expected call of Close.
func (mr *MockExpecterMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockExpecter)(nil).Close))
}
// Expect mocks base method.
func (m *MockExpecter) Expect(arg0 *regexp.Regexp, arg1 time.Duration) (string, []string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Expect", arg0, arg1)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].([]string)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// Expect indicates an expected call of Expect.
func (mr *MockExpecterMockRecorder) Expect(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Expect", reflect.TypeOf((*MockExpecter)(nil).Expect), arg0, arg1)
}
// ExpectBatch mocks base method.
func (m *MockExpecter) ExpectBatch(arg0 []goexpect.Batcher, arg1 time.Duration) ([]goexpect.BatchRes, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ExpectBatch", arg0, arg1)
ret0, _ := ret[0].([]goexpect.BatchRes)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ExpectBatch indicates an expected call of ExpectBatch.
func (mr *MockExpecterMockRecorder) ExpectBatch(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExpectBatch", reflect.TypeOf((*MockExpecter)(nil).ExpectBatch), arg0, arg1)
}
// ExpectSwitchCase mocks base method.
func (m *MockExpecter) ExpectSwitchCase(arg0 []goexpect.Caser, arg1 time.Duration) (string, []string, int, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ExpectSwitchCase", arg0, arg1)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].([]string)
ret2, _ := ret[2].(int)
ret3, _ := ret[3].(error)
return ret0, ret1, ret2, ret3
}
// ExpectSwitchCase indicates an expected call of ExpectSwitchCase.
func (mr *MockExpecterMockRecorder) ExpectSwitchCase(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExpectSwitchCase", reflect.TypeOf((*MockExpecter)(nil).ExpectSwitchCase), arg0, arg1)
}
// Send mocks base method.
func (m *MockExpecter) Send(arg0 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Send", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Send indicates an expected call of Send.
func (mr *MockExpecterMockRecorder) Send(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockExpecter)(nil).Send), arg0)
}