blob: 8476c8661a6fa46190e49a6e6aa4f6b5798d5864 [file] [log] [blame]
Jens Geyer731975a2014-05-02 00:24:24 +02001/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20// Automatically generated by MockGen. DO NOT EDIT!
21// Source: thrift (interfaces: TProtocol)
22
23package tests
24
25import (
26 thrift "thrift"
D. Can Celasun4f77ab82017-09-21 15:21:00 +020027
Jens Geyer56a03be2015-06-17 22:21:27 +020028 gomock "github.com/golang/mock/gomock"
Jens Geyer731975a2014-05-02 00:24:24 +020029)
30
31// Mock of TProtocol interface
32type MockTProtocol struct {
33 ctrl *gomock.Controller
34 recorder *_MockTProtocolRecorder
35}
36
37// Recorder for MockTProtocol (not exported)
38type _MockTProtocolRecorder struct {
39 mock *MockTProtocol
40}
41
42func NewMockTProtocol(ctrl *gomock.Controller) *MockTProtocol {
43 mock := &MockTProtocol{ctrl: ctrl}
44 mock.recorder = &_MockTProtocolRecorder{mock}
45 return mock
46}
47
48func (_m *MockTProtocol) EXPECT() *_MockTProtocolRecorder {
49 return _m.recorder
50}
51
52func (_m *MockTProtocol) Flush() error {
53 ret := _m.ctrl.Call(_m, "Flush")
54 ret0, _ := ret[0].(error)
55 return ret0
56}
57
58func (_mr *_MockTProtocolRecorder) Flush() *gomock.Call {
59 return _mr.mock.ctrl.RecordCall(_mr.mock, "Flush")
60}
61
62func (_m *MockTProtocol) ReadBinary() ([]byte, error) {
63 ret := _m.ctrl.Call(_m, "ReadBinary")
64 ret0, _ := ret[0].([]byte)
65 ret1, _ := ret[1].(error)
66 return ret0, ret1
67}
68
69func (_mr *_MockTProtocolRecorder) ReadBinary() *gomock.Call {
70 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadBinary")
71}
72
73func (_m *MockTProtocol) ReadBool() (bool, error) {
74 ret := _m.ctrl.Call(_m, "ReadBool")
75 ret0, _ := ret[0].(bool)
76 ret1, _ := ret[1].(error)
77 return ret0, ret1
78}
79
80func (_mr *_MockTProtocolRecorder) ReadBool() *gomock.Call {
81 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadBool")
82}
83
Jens Geyer5bc8b5a2015-09-05 12:50:24 +020084func (_m *MockTProtocol) ReadByte() (int8, error) {
Jens Geyer731975a2014-05-02 00:24:24 +020085 ret := _m.ctrl.Call(_m, "ReadByte")
Jens Geyer5bc8b5a2015-09-05 12:50:24 +020086 ret0, _ := ret[0].(int8)
Jens Geyer731975a2014-05-02 00:24:24 +020087 ret1, _ := ret[1].(error)
88 return ret0, ret1
89}
90
91func (_mr *_MockTProtocolRecorder) ReadByte() *gomock.Call {
92 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadByte")
93}
94
95func (_m *MockTProtocol) ReadDouble() (float64, error) {
96 ret := _m.ctrl.Call(_m, "ReadDouble")
97 ret0, _ := ret[0].(float64)
98 ret1, _ := ret[1].(error)
99 return ret0, ret1
100}
101
102func (_mr *_MockTProtocolRecorder) ReadDouble() *gomock.Call {
103 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadDouble")
104}
105
106func (_m *MockTProtocol) ReadFieldBegin() (string, thrift.TType, int16, error) {
107 ret := _m.ctrl.Call(_m, "ReadFieldBegin")
108 ret0, _ := ret[0].(string)
109 ret1, _ := ret[1].(thrift.TType)
110 ret2, _ := ret[2].(int16)
111 ret3, _ := ret[3].(error)
112 return ret0, ret1, ret2, ret3
113}
114
115func (_mr *_MockTProtocolRecorder) ReadFieldBegin() *gomock.Call {
116 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadFieldBegin")
117}
118
119func (_m *MockTProtocol) ReadFieldEnd() error {
120 ret := _m.ctrl.Call(_m, "ReadFieldEnd")
121 ret0, _ := ret[0].(error)
122 return ret0
123}
124
125func (_mr *_MockTProtocolRecorder) ReadFieldEnd() *gomock.Call {
126 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadFieldEnd")
127}
128
129func (_m *MockTProtocol) ReadI16() (int16, error) {
130 ret := _m.ctrl.Call(_m, "ReadI16")
131 ret0, _ := ret[0].(int16)
132 ret1, _ := ret[1].(error)
133 return ret0, ret1
134}
135
136func (_mr *_MockTProtocolRecorder) ReadI16() *gomock.Call {
137 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadI16")
138}
139
140func (_m *MockTProtocol) ReadI32() (int32, error) {
141 ret := _m.ctrl.Call(_m, "ReadI32")
142 ret0, _ := ret[0].(int32)
143 ret1, _ := ret[1].(error)
144 return ret0, ret1
145}
146
147func (_mr *_MockTProtocolRecorder) ReadI32() *gomock.Call {
148 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadI32")
149}
150
151func (_m *MockTProtocol) ReadI64() (int64, error) {
152 ret := _m.ctrl.Call(_m, "ReadI64")
153 ret0, _ := ret[0].(int64)
154 ret1, _ := ret[1].(error)
155 return ret0, ret1
156}
157
158func (_mr *_MockTProtocolRecorder) ReadI64() *gomock.Call {
159 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadI64")
160}
161
162func (_m *MockTProtocol) ReadListBegin() (thrift.TType, int, error) {
163 ret := _m.ctrl.Call(_m, "ReadListBegin")
164 ret0, _ := ret[0].(thrift.TType)
165 ret1, _ := ret[1].(int)
166 ret2, _ := ret[2].(error)
167 return ret0, ret1, ret2
168}
169
170func (_mr *_MockTProtocolRecorder) ReadListBegin() *gomock.Call {
171 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadListBegin")
172}
173
174func (_m *MockTProtocol) ReadListEnd() error {
175 ret := _m.ctrl.Call(_m, "ReadListEnd")
176 ret0, _ := ret[0].(error)
177 return ret0
178}
179
180func (_mr *_MockTProtocolRecorder) ReadListEnd() *gomock.Call {
181 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadListEnd")
182}
183
184func (_m *MockTProtocol) ReadMapBegin() (thrift.TType, thrift.TType, int, error) {
185 ret := _m.ctrl.Call(_m, "ReadMapBegin")
186 ret0, _ := ret[0].(thrift.TType)
187 ret1, _ := ret[1].(thrift.TType)
188 ret2, _ := ret[2].(int)
189 ret3, _ := ret[3].(error)
190 return ret0, ret1, ret2, ret3
191}
192
193func (_mr *_MockTProtocolRecorder) ReadMapBegin() *gomock.Call {
194 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadMapBegin")
195}
196
197func (_m *MockTProtocol) ReadMapEnd() error {
198 ret := _m.ctrl.Call(_m, "ReadMapEnd")
199 ret0, _ := ret[0].(error)
200 return ret0
201}
202
203func (_mr *_MockTProtocolRecorder) ReadMapEnd() *gomock.Call {
204 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadMapEnd")
205}
206
207func (_m *MockTProtocol) ReadMessageBegin() (string, thrift.TMessageType, int32, error) {
208 ret := _m.ctrl.Call(_m, "ReadMessageBegin")
209 ret0, _ := ret[0].(string)
210 ret1, _ := ret[1].(thrift.TMessageType)
211 ret2, _ := ret[2].(int32)
212 ret3, _ := ret[3].(error)
213 return ret0, ret1, ret2, ret3
214}
215
216func (_mr *_MockTProtocolRecorder) ReadMessageBegin() *gomock.Call {
217 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadMessageBegin")
218}
219
220func (_m *MockTProtocol) ReadMessageEnd() error {
221 ret := _m.ctrl.Call(_m, "ReadMessageEnd")
222 ret0, _ := ret[0].(error)
223 return ret0
224}
225
226func (_mr *_MockTProtocolRecorder) ReadMessageEnd() *gomock.Call {
227 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadMessageEnd")
228}
229
230func (_m *MockTProtocol) ReadSetBegin() (thrift.TType, int, error) {
231 ret := _m.ctrl.Call(_m, "ReadSetBegin")
232 ret0, _ := ret[0].(thrift.TType)
233 ret1, _ := ret[1].(int)
234 ret2, _ := ret[2].(error)
235 return ret0, ret1, ret2
236}
237
238func (_mr *_MockTProtocolRecorder) ReadSetBegin() *gomock.Call {
239 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadSetBegin")
240}
241
242func (_m *MockTProtocol) ReadSetEnd() error {
243 ret := _m.ctrl.Call(_m, "ReadSetEnd")
244 ret0, _ := ret[0].(error)
245 return ret0
246}
247
248func (_mr *_MockTProtocolRecorder) ReadSetEnd() *gomock.Call {
249 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadSetEnd")
250}
251
252func (_m *MockTProtocol) ReadString() (string, error) {
253 ret := _m.ctrl.Call(_m, "ReadString")
254 ret0, _ := ret[0].(string)
255 ret1, _ := ret[1].(error)
256 return ret0, ret1
257}
258
259func (_mr *_MockTProtocolRecorder) ReadString() *gomock.Call {
260 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadString")
261}
262
263func (_m *MockTProtocol) ReadStructBegin() (string, error) {
264 ret := _m.ctrl.Call(_m, "ReadStructBegin")
265 ret0, _ := ret[0].(string)
266 ret1, _ := ret[1].(error)
267 return ret0, ret1
268}
269
270func (_mr *_MockTProtocolRecorder) ReadStructBegin() *gomock.Call {
271 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadStructBegin")
272}
273
274func (_m *MockTProtocol) ReadStructEnd() error {
275 ret := _m.ctrl.Call(_m, "ReadStructEnd")
276 ret0, _ := ret[0].(error)
277 return ret0
278}
279
280func (_mr *_MockTProtocolRecorder) ReadStructEnd() *gomock.Call {
281 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadStructEnd")
282}
283
284func (_m *MockTProtocol) Skip(_param0 thrift.TType) error {
285 ret := _m.ctrl.Call(_m, "Skip", _param0)
286 ret0, _ := ret[0].(error)
287 return ret0
288}
289
290func (_mr *_MockTProtocolRecorder) Skip(arg0 interface{}) *gomock.Call {
291 return _mr.mock.ctrl.RecordCall(_mr.mock, "Skip", arg0)
292}
293
294func (_m *MockTProtocol) Transport() thrift.TTransport {
295 ret := _m.ctrl.Call(_m, "Transport")
296 ret0, _ := ret[0].(thrift.TTransport)
297 return ret0
298}
299
300func (_mr *_MockTProtocolRecorder) Transport() *gomock.Call {
301 return _mr.mock.ctrl.RecordCall(_mr.mock, "Transport")
302}
303
304func (_m *MockTProtocol) WriteBinary(_param0 []byte) error {
305 ret := _m.ctrl.Call(_m, "WriteBinary", _param0)
306 ret0, _ := ret[0].(error)
307 return ret0
308}
309
310func (_mr *_MockTProtocolRecorder) WriteBinary(arg0 interface{}) *gomock.Call {
311 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteBinary", arg0)
312}
313
314func (_m *MockTProtocol) WriteBool(_param0 bool) error {
315 ret := _m.ctrl.Call(_m, "WriteBool", _param0)
316 ret0, _ := ret[0].(error)
317 return ret0
318}
319
320func (_mr *_MockTProtocolRecorder) WriteBool(arg0 interface{}) *gomock.Call {
321 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteBool", arg0)
322}
323
Jens Geyer5bc8b5a2015-09-05 12:50:24 +0200324func (_m *MockTProtocol) WriteByte(_param0 int8) error {
Jens Geyer731975a2014-05-02 00:24:24 +0200325 ret := _m.ctrl.Call(_m, "WriteByte", _param0)
326 ret0, _ := ret[0].(error)
327 return ret0
328}
329
330func (_mr *_MockTProtocolRecorder) WriteByte(arg0 interface{}) *gomock.Call {
331 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteByte", arg0)
332}
333
334func (_m *MockTProtocol) WriteDouble(_param0 float64) error {
335 ret := _m.ctrl.Call(_m, "WriteDouble", _param0)
336 ret0, _ := ret[0].(error)
337 return ret0
338}
339
340func (_mr *_MockTProtocolRecorder) WriteDouble(arg0 interface{}) *gomock.Call {
341 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteDouble", arg0)
342}
343
344func (_m *MockTProtocol) WriteFieldBegin(_param0 string, _param1 thrift.TType, _param2 int16) error {
345 ret := _m.ctrl.Call(_m, "WriteFieldBegin", _param0, _param1, _param2)
346 ret0, _ := ret[0].(error)
347 return ret0
348}
349
350func (_mr *_MockTProtocolRecorder) WriteFieldBegin(arg0, arg1, arg2 interface{}) *gomock.Call {
351 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteFieldBegin", arg0, arg1, arg2)
352}
353
354func (_m *MockTProtocol) WriteFieldEnd() error {
355 ret := _m.ctrl.Call(_m, "WriteFieldEnd")
356 ret0, _ := ret[0].(error)
357 return ret0
358}
359
360func (_mr *_MockTProtocolRecorder) WriteFieldEnd() *gomock.Call {
361 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteFieldEnd")
362}
363
364func (_m *MockTProtocol) WriteFieldStop() error {
365 ret := _m.ctrl.Call(_m, "WriteFieldStop")
366 ret0, _ := ret[0].(error)
367 return ret0
368}
369
370func (_mr *_MockTProtocolRecorder) WriteFieldStop() *gomock.Call {
371 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteFieldStop")
372}
373
374func (_m *MockTProtocol) WriteI16(_param0 int16) error {
375 ret := _m.ctrl.Call(_m, "WriteI16", _param0)
376 ret0, _ := ret[0].(error)
377 return ret0
378}
379
380func (_mr *_MockTProtocolRecorder) WriteI16(arg0 interface{}) *gomock.Call {
381 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteI16", arg0)
382}
383
384func (_m *MockTProtocol) WriteI32(_param0 int32) error {
385 ret := _m.ctrl.Call(_m, "WriteI32", _param0)
386 ret0, _ := ret[0].(error)
387 return ret0
388}
389
390func (_mr *_MockTProtocolRecorder) WriteI32(arg0 interface{}) *gomock.Call {
391 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteI32", arg0)
392}
393
394func (_m *MockTProtocol) WriteI64(_param0 int64) error {
395 ret := _m.ctrl.Call(_m, "WriteI64", _param0)
396 ret0, _ := ret[0].(error)
397 return ret0
398}
399
400func (_mr *_MockTProtocolRecorder) WriteI64(arg0 interface{}) *gomock.Call {
401 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteI64", arg0)
402}
403
404func (_m *MockTProtocol) WriteListBegin(_param0 thrift.TType, _param1 int) error {
405 ret := _m.ctrl.Call(_m, "WriteListBegin", _param0, _param1)
406 ret0, _ := ret[0].(error)
407 return ret0
408}
409
410func (_mr *_MockTProtocolRecorder) WriteListBegin(arg0, arg1 interface{}) *gomock.Call {
411 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteListBegin", arg0, arg1)
412}
413
414func (_m *MockTProtocol) WriteListEnd() error {
415 ret := _m.ctrl.Call(_m, "WriteListEnd")
416 ret0, _ := ret[0].(error)
417 return ret0
418}
419
420func (_mr *_MockTProtocolRecorder) WriteListEnd() *gomock.Call {
421 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteListEnd")
422}
423
424func (_m *MockTProtocol) WriteMapBegin(_param0 thrift.TType, _param1 thrift.TType, _param2 int) error {
425 ret := _m.ctrl.Call(_m, "WriteMapBegin", _param0, _param1, _param2)
426 ret0, _ := ret[0].(error)
427 return ret0
428}
429
430func (_mr *_MockTProtocolRecorder) WriteMapBegin(arg0, arg1, arg2 interface{}) *gomock.Call {
431 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteMapBegin", arg0, arg1, arg2)
432}
433
434func (_m *MockTProtocol) WriteMapEnd() error {
435 ret := _m.ctrl.Call(_m, "WriteMapEnd")
436 ret0, _ := ret[0].(error)
437 return ret0
438}
439
440func (_mr *_MockTProtocolRecorder) WriteMapEnd() *gomock.Call {
441 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteMapEnd")
442}
443
444func (_m *MockTProtocol) WriteMessageBegin(_param0 string, _param1 thrift.TMessageType, _param2 int32) error {
445 ret := _m.ctrl.Call(_m, "WriteMessageBegin", _param0, _param1, _param2)
446 ret0, _ := ret[0].(error)
447 return ret0
448}
449
450func (_mr *_MockTProtocolRecorder) WriteMessageBegin(arg0, arg1, arg2 interface{}) *gomock.Call {
451 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteMessageBegin", arg0, arg1, arg2)
452}
453
454func (_m *MockTProtocol) WriteMessageEnd() error {
455 ret := _m.ctrl.Call(_m, "WriteMessageEnd")
456 ret0, _ := ret[0].(error)
457 return ret0
458}
459
460func (_mr *_MockTProtocolRecorder) WriteMessageEnd() *gomock.Call {
461 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteMessageEnd")
462}
463
464func (_m *MockTProtocol) WriteSetBegin(_param0 thrift.TType, _param1 int) error {
465 ret := _m.ctrl.Call(_m, "WriteSetBegin", _param0, _param1)
466 ret0, _ := ret[0].(error)
467 return ret0
468}
469
470func (_mr *_MockTProtocolRecorder) WriteSetBegin(arg0, arg1 interface{}) *gomock.Call {
471 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteSetBegin", arg0, arg1)
472}
473
474func (_m *MockTProtocol) WriteSetEnd() error {
475 ret := _m.ctrl.Call(_m, "WriteSetEnd")
476 ret0, _ := ret[0].(error)
477 return ret0
478}
479
480func (_mr *_MockTProtocolRecorder) WriteSetEnd() *gomock.Call {
481 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteSetEnd")
482}
483
484func (_m *MockTProtocol) WriteString(_param0 string) error {
485 ret := _m.ctrl.Call(_m, "WriteString", _param0)
486 ret0, _ := ret[0].(error)
487 return ret0
488}
489
490func (_mr *_MockTProtocolRecorder) WriteString(arg0 interface{}) *gomock.Call {
491 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteString", arg0)
492}
493
494func (_m *MockTProtocol) WriteStructBegin(_param0 string) error {
495 ret := _m.ctrl.Call(_m, "WriteStructBegin", _param0)
496 ret0, _ := ret[0].(error)
497 return ret0
498}
499
500func (_mr *_MockTProtocolRecorder) WriteStructBegin(arg0 interface{}) *gomock.Call {
501 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteStructBegin", arg0)
502}
503
504func (_m *MockTProtocol) WriteStructEnd() error {
505 ret := _m.ctrl.Call(_m, "WriteStructEnd")
506 ret0, _ := ret[0].(error)
507 return ret0
508}
509
510func (_mr *_MockTProtocolRecorder) WriteStructEnd() *gomock.Call {
511 return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteStructEnd")
512}