blob: 3960e1ab74f5c2ce7e68f2b51a22d297c2d02f0c [file] [log] [blame]
Jens Geyerf4598682014-05-08 23:18:44 +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: gen/thrifttest (interfaces: ThriftTest)
22
23package common
24
25import (
Jens Geyer91cfb992014-05-17 01:07:28 +020026 thrifttest "gen/thrifttest"
taozlec0d384a2017-07-17 18:40:42 +020027 gomock "github.com/golang/mock/gomock"
28 context "golang.org/x/net/context"
Jens Geyerf4598682014-05-08 23:18:44 +020029)
30
taozlec0d384a2017-07-17 18:40:42 +020031// MockThriftTest is a mock of ThriftTest interface
Jens Geyerf4598682014-05-08 23:18:44 +020032type MockThriftTest struct {
33 ctrl *gomock.Controller
taozlec0d384a2017-07-17 18:40:42 +020034 recorder *MockThriftTestMockRecorder
Jens Geyerf4598682014-05-08 23:18:44 +020035}
36
taozlec0d384a2017-07-17 18:40:42 +020037// MockThriftTestMockRecorder is the mock recorder for MockThriftTest
38type MockThriftTestMockRecorder struct {
Jens Geyerf4598682014-05-08 23:18:44 +020039 mock *MockThriftTest
40}
41
taozlec0d384a2017-07-17 18:40:42 +020042// NewMockThriftTest creates a new mock instance
Jens Geyerf4598682014-05-08 23:18:44 +020043func NewMockThriftTest(ctrl *gomock.Controller) *MockThriftTest {
44 mock := &MockThriftTest{ctrl: ctrl}
taozlec0d384a2017-07-17 18:40:42 +020045 mock.recorder = &MockThriftTestMockRecorder{mock}
Jens Geyerf4598682014-05-08 23:18:44 +020046 return mock
47}
48
taozlec0d384a2017-07-17 18:40:42 +020049// EXPECT returns an object that allows the caller to indicate expected use
50func (_m *MockThriftTest) EXPECT() *MockThriftTestMockRecorder {
Jens Geyerf4598682014-05-08 23:18:44 +020051 return _m.recorder
52}
53
taozlec0d384a2017-07-17 18:40:42 +020054// TestBinary mocks base method
55func (_m *MockThriftTest) TestBinary(_param0 context.Context, _param1 []byte) ([]byte, error) {
56 ret := _m.ctrl.Call(_m, "TestBinary", _param0, _param1)
Jens Geyer8bcfdd92014-12-14 03:14:26 +010057 ret0, _ := ret[0].([]byte)
58 ret1, _ := ret[1].(error)
59 return ret0, ret1
60}
61
taozlec0d384a2017-07-17 18:40:42 +020062// TestBinary indicates an expected call of TestBinary
63func (_mr *MockThriftTestMockRecorder) TestBinary(arg0, arg1 interface{}) *gomock.Call {
64 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestBinary", arg0, arg1)
Jens Geyer8bcfdd92014-12-14 03:14:26 +010065}
66
taozlec0d384a2017-07-17 18:40:42 +020067// TestBool mocks base method
68func (_m *MockThriftTest) TestBool(_param0 context.Context, _param1 bool) (bool, error) {
69 ret := _m.ctrl.Call(_m, "TestBool", _param0, _param1)
70 ret0, _ := ret[0].(bool)
71 ret1, _ := ret[1].(error)
72 return ret0, ret1
73}
74
75// TestBool indicates an expected call of TestBool
76func (_mr *MockThriftTestMockRecorder) TestBool(arg0, arg1 interface{}) *gomock.Call {
77 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestBool", arg0, arg1)
78}
79
80// TestByte mocks base method
81func (_m *MockThriftTest) TestByte(_param0 context.Context, _param1 int8) (int8, error) {
82 ret := _m.ctrl.Call(_m, "TestByte", _param0, _param1)
83 ret0, _ := ret[0].(int8)
84 ret1, _ := ret[1].(error)
85 return ret0, ret1
86}
87
88// TestByte indicates an expected call of TestByte
89func (_mr *MockThriftTestMockRecorder) TestByte(arg0, arg1 interface{}) *gomock.Call {
90 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestByte", arg0, arg1)
91}
92
93// TestDouble mocks base method
94func (_m *MockThriftTest) TestDouble(_param0 context.Context, _param1 float64) (float64, error) {
95 ret := _m.ctrl.Call(_m, "TestDouble", _param0, _param1)
96 ret0, _ := ret[0].(float64)
97 ret1, _ := ret[1].(error)
98 return ret0, ret1
99}
100
101// TestDouble indicates an expected call of TestDouble
102func (_mr *MockThriftTestMockRecorder) TestDouble(arg0, arg1 interface{}) *gomock.Call {
103 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestDouble", arg0, arg1)
104}
105
106// TestEnum mocks base method
107func (_m *MockThriftTest) TestEnum(_param0 context.Context, _param1 thrifttest.Numberz) (thrifttest.Numberz, error) {
108 ret := _m.ctrl.Call(_m, "TestEnum", _param0, _param1)
Jens Geyerf4598682014-05-08 23:18:44 +0200109 ret0, _ := ret[0].(thrifttest.Numberz)
110 ret1, _ := ret[1].(error)
111 return ret0, ret1
112}
113
taozlec0d384a2017-07-17 18:40:42 +0200114// TestEnum indicates an expected call of TestEnum
115func (_mr *MockThriftTestMockRecorder) TestEnum(arg0, arg1 interface{}) *gomock.Call {
116 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestEnum", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200117}
118
taozlec0d384a2017-07-17 18:40:42 +0200119// TestException mocks base method
120func (_m *MockThriftTest) TestException(_param0 context.Context, _param1 string) error {
121 ret := _m.ctrl.Call(_m, "TestException", _param0, _param1)
Jens Geyerf4598682014-05-08 23:18:44 +0200122 ret0, _ := ret[0].(error)
123 return ret0
124}
125
taozlec0d384a2017-07-17 18:40:42 +0200126// TestException indicates an expected call of TestException
127func (_mr *MockThriftTestMockRecorder) TestException(arg0, arg1 interface{}) *gomock.Call {
128 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestException", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200129}
130
taozlec0d384a2017-07-17 18:40:42 +0200131// TestI32 mocks base method
132func (_m *MockThriftTest) TestI32(_param0 context.Context, _param1 int32) (int32, error) {
133 ret := _m.ctrl.Call(_m, "TestI32", _param0, _param1)
Jens Geyerf4598682014-05-08 23:18:44 +0200134 ret0, _ := ret[0].(int32)
135 ret1, _ := ret[1].(error)
136 return ret0, ret1
137}
138
taozlec0d384a2017-07-17 18:40:42 +0200139// TestI32 indicates an expected call of TestI32
140func (_mr *MockThriftTestMockRecorder) TestI32(arg0, arg1 interface{}) *gomock.Call {
141 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestI32", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200142}
143
taozlec0d384a2017-07-17 18:40:42 +0200144// TestI64 mocks base method
145func (_m *MockThriftTest) TestI64(_param0 context.Context, _param1 int64) (int64, error) {
146 ret := _m.ctrl.Call(_m, "TestI64", _param0, _param1)
Jens Geyerf4598682014-05-08 23:18:44 +0200147 ret0, _ := ret[0].(int64)
148 ret1, _ := ret[1].(error)
149 return ret0, ret1
150}
151
taozlec0d384a2017-07-17 18:40:42 +0200152// TestI64 indicates an expected call of TestI64
153func (_mr *MockThriftTestMockRecorder) TestI64(arg0, arg1 interface{}) *gomock.Call {
154 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestI64", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200155}
156
taozlec0d384a2017-07-17 18:40:42 +0200157// TestInsanity mocks base method
158func (_m *MockThriftTest) TestInsanity(_param0 context.Context, _param1 *thrifttest.Insanity) (map[thrifttest.UserId]map[thrifttest.Numberz]*thrifttest.Insanity, error) {
159 ret := _m.ctrl.Call(_m, "TestInsanity", _param0, _param1)
Jens Geyerf4598682014-05-08 23:18:44 +0200160 ret0, _ := ret[0].(map[thrifttest.UserId]map[thrifttest.Numberz]*thrifttest.Insanity)
161 ret1, _ := ret[1].(error)
162 return ret0, ret1
163}
164
taozlec0d384a2017-07-17 18:40:42 +0200165// TestInsanity indicates an expected call of TestInsanity
166func (_mr *MockThriftTestMockRecorder) TestInsanity(arg0, arg1 interface{}) *gomock.Call {
167 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestInsanity", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200168}
169
taozlec0d384a2017-07-17 18:40:42 +0200170// TestList mocks base method
171func (_m *MockThriftTest) TestList(_param0 context.Context, _param1 []int32) ([]int32, error) {
172 ret := _m.ctrl.Call(_m, "TestList", _param0, _param1)
Jens Geyerf4598682014-05-08 23:18:44 +0200173 ret0, _ := ret[0].([]int32)
174 ret1, _ := ret[1].(error)
175 return ret0, ret1
176}
177
taozlec0d384a2017-07-17 18:40:42 +0200178// TestList indicates an expected call of TestList
179func (_mr *MockThriftTestMockRecorder) TestList(arg0, arg1 interface{}) *gomock.Call {
180 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestList", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200181}
182
taozlec0d384a2017-07-17 18:40:42 +0200183// TestMap mocks base method
184func (_m *MockThriftTest) TestMap(_param0 context.Context, _param1 map[int32]int32) (map[int32]int32, error) {
185 ret := _m.ctrl.Call(_m, "TestMap", _param0, _param1)
Jens Geyerf4598682014-05-08 23:18:44 +0200186 ret0, _ := ret[0].(map[int32]int32)
187 ret1, _ := ret[1].(error)
188 return ret0, ret1
189}
190
taozlec0d384a2017-07-17 18:40:42 +0200191// TestMap indicates an expected call of TestMap
192func (_mr *MockThriftTestMockRecorder) TestMap(arg0, arg1 interface{}) *gomock.Call {
193 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestMap", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200194}
195
taozlec0d384a2017-07-17 18:40:42 +0200196// TestMapMap mocks base method
197func (_m *MockThriftTest) TestMapMap(_param0 context.Context, _param1 int32) (map[int32]map[int32]int32, error) {
198 ret := _m.ctrl.Call(_m, "TestMapMap", _param0, _param1)
Jens Geyerf4598682014-05-08 23:18:44 +0200199 ret0, _ := ret[0].(map[int32]map[int32]int32)
200 ret1, _ := ret[1].(error)
201 return ret0, ret1
202}
203
taozlec0d384a2017-07-17 18:40:42 +0200204// TestMapMap indicates an expected call of TestMapMap
205func (_mr *MockThriftTestMockRecorder) TestMapMap(arg0, arg1 interface{}) *gomock.Call {
206 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestMapMap", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200207}
208
taozlec0d384a2017-07-17 18:40:42 +0200209// TestMulti mocks base method
210func (_m *MockThriftTest) TestMulti(_param0 context.Context, _param1 int8, _param2 int32, _param3 int64, _param4 map[int16]string, _param5 thrifttest.Numberz, _param6 thrifttest.UserId) (*thrifttest.Xtruct, error) {
211 ret := _m.ctrl.Call(_m, "TestMulti", _param0, _param1, _param2, _param3, _param4, _param5, _param6)
Jens Geyerf4598682014-05-08 23:18:44 +0200212 ret0, _ := ret[0].(*thrifttest.Xtruct)
213 ret1, _ := ret[1].(error)
214 return ret0, ret1
215}
216
taozlec0d384a2017-07-17 18:40:42 +0200217// TestMulti indicates an expected call of TestMulti
218func (_mr *MockThriftTestMockRecorder) TestMulti(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call {
219 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestMulti", arg0, arg1, arg2, arg3, arg4, arg5, arg6)
Jens Geyerf4598682014-05-08 23:18:44 +0200220}
221
taozlec0d384a2017-07-17 18:40:42 +0200222// TestMultiException mocks base method
223func (_m *MockThriftTest) TestMultiException(_param0 context.Context, _param1 string, _param2 string) (*thrifttest.Xtruct, error) {
224 ret := _m.ctrl.Call(_m, "TestMultiException", _param0, _param1, _param2)
Jens Geyerf4598682014-05-08 23:18:44 +0200225 ret0, _ := ret[0].(*thrifttest.Xtruct)
226 ret1, _ := ret[1].(error)
227 return ret0, ret1
228}
229
taozlec0d384a2017-07-17 18:40:42 +0200230// TestMultiException indicates an expected call of TestMultiException
231func (_mr *MockThriftTestMockRecorder) TestMultiException(arg0, arg1, arg2 interface{}) *gomock.Call {
232 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestMultiException", arg0, arg1, arg2)
Jens Geyerf4598682014-05-08 23:18:44 +0200233}
234
taozlec0d384a2017-07-17 18:40:42 +0200235// TestNest mocks base method
236func (_m *MockThriftTest) TestNest(_param0 context.Context, _param1 *thrifttest.Xtruct2) (*thrifttest.Xtruct2, error) {
237 ret := _m.ctrl.Call(_m, "TestNest", _param0, _param1)
Jens Geyerf4598682014-05-08 23:18:44 +0200238 ret0, _ := ret[0].(*thrifttest.Xtruct2)
239 ret1, _ := ret[1].(error)
240 return ret0, ret1
241}
242
taozlec0d384a2017-07-17 18:40:42 +0200243// TestNest indicates an expected call of TestNest
244func (_mr *MockThriftTestMockRecorder) TestNest(arg0, arg1 interface{}) *gomock.Call {
245 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestNest", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200246}
247
taozlec0d384a2017-07-17 18:40:42 +0200248// TestOneway mocks base method
249func (_m *MockThriftTest) TestOneway(_param0 context.Context, _param1 int32) error {
250 ret := _m.ctrl.Call(_m, "TestOneway", _param0, _param1)
Jens Geyerf4598682014-05-08 23:18:44 +0200251 ret0, _ := ret[0].(error)
252 return ret0
253}
254
taozlec0d384a2017-07-17 18:40:42 +0200255// TestOneway indicates an expected call of TestOneway
256func (_mr *MockThriftTestMockRecorder) TestOneway(arg0, arg1 interface{}) *gomock.Call {
257 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestOneway", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200258}
259
taozlec0d384a2017-07-17 18:40:42 +0200260// TestSet mocks base method
261func (_m *MockThriftTest) TestSet(_param0 context.Context, _param1 []int32) ([]int32, error) {
262 ret := _m.ctrl.Call(_m, "TestSet", _param0, _param1)
D. Can Celasun43fb34d2017-01-15 10:53:19 +0100263 ret0, _ := ret[0].([]int32)
Jens Geyerf4598682014-05-08 23:18:44 +0200264 ret1, _ := ret[1].(error)
265 return ret0, ret1
266}
267
taozlec0d384a2017-07-17 18:40:42 +0200268// TestSet indicates an expected call of TestSet
269func (_mr *MockThriftTestMockRecorder) TestSet(arg0, arg1 interface{}) *gomock.Call {
270 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestSet", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200271}
272
taozlec0d384a2017-07-17 18:40:42 +0200273// TestString mocks base method
274func (_m *MockThriftTest) TestString(_param0 context.Context, _param1 string) (string, error) {
275 ret := _m.ctrl.Call(_m, "TestString", _param0, _param1)
Jens Geyerf4598682014-05-08 23:18:44 +0200276 ret0, _ := ret[0].(string)
277 ret1, _ := ret[1].(error)
278 return ret0, ret1
279}
280
taozlec0d384a2017-07-17 18:40:42 +0200281// TestString indicates an expected call of TestString
282func (_mr *MockThriftTestMockRecorder) TestString(arg0, arg1 interface{}) *gomock.Call {
283 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestString", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200284}
285
taozlec0d384a2017-07-17 18:40:42 +0200286// TestStringMap mocks base method
287func (_m *MockThriftTest) TestStringMap(_param0 context.Context, _param1 map[string]string) (map[string]string, error) {
288 ret := _m.ctrl.Call(_m, "TestStringMap", _param0, _param1)
Jens Geyerf4598682014-05-08 23:18:44 +0200289 ret0, _ := ret[0].(map[string]string)
290 ret1, _ := ret[1].(error)
291 return ret0, ret1
292}
293
taozlec0d384a2017-07-17 18:40:42 +0200294// TestStringMap indicates an expected call of TestStringMap
295func (_mr *MockThriftTestMockRecorder) TestStringMap(arg0, arg1 interface{}) *gomock.Call {
296 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestStringMap", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200297}
298
taozlec0d384a2017-07-17 18:40:42 +0200299// TestStruct mocks base method
300func (_m *MockThriftTest) TestStruct(_param0 context.Context, _param1 *thrifttest.Xtruct) (*thrifttest.Xtruct, error) {
301 ret := _m.ctrl.Call(_m, "TestStruct", _param0, _param1)
Jens Geyerf4598682014-05-08 23:18:44 +0200302 ret0, _ := ret[0].(*thrifttest.Xtruct)
303 ret1, _ := ret[1].(error)
304 return ret0, ret1
305}
306
taozlec0d384a2017-07-17 18:40:42 +0200307// TestStruct indicates an expected call of TestStruct
308func (_mr *MockThriftTestMockRecorder) TestStruct(arg0, arg1 interface{}) *gomock.Call {
309 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestStruct", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200310}
311
taozlec0d384a2017-07-17 18:40:42 +0200312// TestTypedef mocks base method
313func (_m *MockThriftTest) TestTypedef(_param0 context.Context, _param1 thrifttest.UserId) (thrifttest.UserId, error) {
314 ret := _m.ctrl.Call(_m, "TestTypedef", _param0, _param1)
Jens Geyerf4598682014-05-08 23:18:44 +0200315 ret0, _ := ret[0].(thrifttest.UserId)
316 ret1, _ := ret[1].(error)
317 return ret0, ret1
318}
319
taozlec0d384a2017-07-17 18:40:42 +0200320// TestTypedef indicates an expected call of TestTypedef
321func (_mr *MockThriftTestMockRecorder) TestTypedef(arg0, arg1 interface{}) *gomock.Call {
322 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestTypedef", arg0, arg1)
Jens Geyerf4598682014-05-08 23:18:44 +0200323}
324
taozlec0d384a2017-07-17 18:40:42 +0200325// TestVoid mocks base method
326func (_m *MockThriftTest) TestVoid(_param0 context.Context) error {
327 ret := _m.ctrl.Call(_m, "TestVoid", _param0)
Jens Geyerf4598682014-05-08 23:18:44 +0200328 ret0, _ := ret[0].(error)
329 return ret0
330}
331
taozlec0d384a2017-07-17 18:40:42 +0200332// TestVoid indicates an expected call of TestVoid
333func (_mr *MockThriftTestMockRecorder) TestVoid(arg0 interface{}) *gomock.Call {
334 return _mr.mock.ctrl.RecordCall(_mr.mock, "TestVoid", arg0)
Jens Geyerf4598682014-05-08 23:18:44 +0200335}