Jens Geyer | f459868 | 2014-05-08 23:18:44 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
| 23 | package common |
| 24 | |
| 25 | import ( |
Jens Geyer | 56a03be | 2015-06-17 22:21:27 +0200 | [diff] [blame] | 26 | gomock "github.com/golang/mock/gomock" |
Jens Geyer | 91cfb99 | 2014-05-17 01:07:28 +0200 | [diff] [blame] | 27 | thrifttest "gen/thrifttest" |
Jens Geyer | f459868 | 2014-05-08 23:18:44 +0200 | [diff] [blame] | 28 | ) |
| 29 | |
| 30 | // Mock of ThriftTest interface |
| 31 | type MockThriftTest struct { |
| 32 | ctrl *gomock.Controller |
| 33 | recorder *_MockThriftTestRecorder |
| 34 | } |
| 35 | |
| 36 | // Recorder for MockThriftTest (not exported) |
| 37 | type _MockThriftTestRecorder struct { |
| 38 | mock *MockThriftTest |
| 39 | } |
| 40 | |
| 41 | func NewMockThriftTest(ctrl *gomock.Controller) *MockThriftTest { |
| 42 | mock := &MockThriftTest{ctrl: ctrl} |
| 43 | mock.recorder = &_MockThriftTestRecorder{mock} |
| 44 | return mock |
| 45 | } |
| 46 | |
| 47 | func (_m *MockThriftTest) EXPECT() *_MockThriftTestRecorder { |
| 48 | return _m.recorder |
| 49 | } |
| 50 | |
Nobuaki Sukegawa | a649e74 | 2015-09-21 13:53:25 +0900 | [diff] [blame] | 51 | func (_m *MockThriftTest) TestBool(_param0 bool) (bool, error) { |
| 52 | ret := _m.ctrl.Call(_m, "TestBool", _param0) |
| 53 | ret0, _ := ret[0].(bool) |
| 54 | ret1, _ := ret[1].(error) |
| 55 | return ret0, ret1 |
| 56 | } |
| 57 | |
| 58 | func (_mr *_MockThriftTestRecorder) TestBool(arg0 interface{}) *gomock.Call { |
| 59 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestBool", arg0) |
| 60 | } |
| 61 | |
| 62 | |
Jens Geyer | f459868 | 2014-05-08 23:18:44 +0200 | [diff] [blame] | 63 | func (_m *MockThriftTest) TestByte(_param0 int8) (int8, error) { |
| 64 | ret := _m.ctrl.Call(_m, "TestByte", _param0) |
| 65 | ret0, _ := ret[0].(int8) |
| 66 | ret1, _ := ret[1].(error) |
| 67 | return ret0, ret1 |
| 68 | } |
| 69 | |
| 70 | func (_mr *_MockThriftTestRecorder) TestByte(arg0 interface{}) *gomock.Call { |
| 71 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestByte", arg0) |
| 72 | } |
| 73 | |
| 74 | func (_m *MockThriftTest) TestDouble(_param0 float64) (float64, error) { |
| 75 | ret := _m.ctrl.Call(_m, "TestDouble", _param0) |
| 76 | ret0, _ := ret[0].(float64) |
| 77 | ret1, _ := ret[1].(error) |
| 78 | return ret0, ret1 |
| 79 | } |
| 80 | |
| 81 | func (_mr *_MockThriftTestRecorder) TestDouble(arg0 interface{}) *gomock.Call { |
| 82 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestDouble", arg0) |
| 83 | } |
| 84 | |
Jens Geyer | 8bcfdd9 | 2014-12-14 03:14:26 +0100 | [diff] [blame] | 85 | func (_m *MockThriftTest) TestBinary(_param0 []byte) ([]byte, error) { |
| 86 | ret := _m.ctrl.Call(_m, "TestBinary", _param0) |
| 87 | ret0, _ := ret[0].([]byte) |
| 88 | ret1, _ := ret[1].(error) |
| 89 | return ret0, ret1 |
| 90 | } |
| 91 | |
| 92 | func (_mr *_MockThriftTestRecorder) TestBinary(arg0 interface{}) *gomock.Call { |
| 93 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestBinary", arg0) |
| 94 | } |
| 95 | |
Jens Geyer | f459868 | 2014-05-08 23:18:44 +0200 | [diff] [blame] | 96 | func (_m *MockThriftTest) TestEnum(_param0 thrifttest.Numberz) (thrifttest.Numberz, error) { |
| 97 | ret := _m.ctrl.Call(_m, "TestEnum", _param0) |
| 98 | ret0, _ := ret[0].(thrifttest.Numberz) |
| 99 | ret1, _ := ret[1].(error) |
| 100 | return ret0, ret1 |
| 101 | } |
| 102 | |
| 103 | func (_mr *_MockThriftTestRecorder) TestEnum(arg0 interface{}) *gomock.Call { |
| 104 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestEnum", arg0) |
| 105 | } |
| 106 | |
| 107 | func (_m *MockThriftTest) TestException(_param0 string) error { |
| 108 | ret := _m.ctrl.Call(_m, "TestException", _param0) |
| 109 | ret0, _ := ret[0].(error) |
| 110 | return ret0 |
| 111 | } |
| 112 | |
| 113 | func (_mr *_MockThriftTestRecorder) TestException(arg0 interface{}) *gomock.Call { |
| 114 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestException", arg0) |
| 115 | } |
| 116 | |
| 117 | func (_m *MockThriftTest) TestI32(_param0 int32) (int32, error) { |
| 118 | ret := _m.ctrl.Call(_m, "TestI32", _param0) |
| 119 | ret0, _ := ret[0].(int32) |
| 120 | ret1, _ := ret[1].(error) |
| 121 | return ret0, ret1 |
| 122 | } |
| 123 | |
| 124 | func (_mr *_MockThriftTestRecorder) TestI32(arg0 interface{}) *gomock.Call { |
| 125 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestI32", arg0) |
| 126 | } |
| 127 | |
| 128 | func (_m *MockThriftTest) TestI64(_param0 int64) (int64, error) { |
| 129 | ret := _m.ctrl.Call(_m, "TestI64", _param0) |
| 130 | ret0, _ := ret[0].(int64) |
| 131 | ret1, _ := ret[1].(error) |
| 132 | return ret0, ret1 |
| 133 | } |
| 134 | |
| 135 | func (_mr *_MockThriftTestRecorder) TestI64(arg0 interface{}) *gomock.Call { |
| 136 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestI64", arg0) |
| 137 | } |
| 138 | |
| 139 | func (_m *MockThriftTest) TestInsanity(_param0 *thrifttest.Insanity) (map[thrifttest.UserId]map[thrifttest.Numberz]*thrifttest.Insanity, error) { |
| 140 | ret := _m.ctrl.Call(_m, "TestInsanity", _param0) |
| 141 | ret0, _ := ret[0].(map[thrifttest.UserId]map[thrifttest.Numberz]*thrifttest.Insanity) |
| 142 | ret1, _ := ret[1].(error) |
| 143 | return ret0, ret1 |
| 144 | } |
| 145 | |
| 146 | func (_mr *_MockThriftTestRecorder) TestInsanity(arg0 interface{}) *gomock.Call { |
| 147 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestInsanity", arg0) |
| 148 | } |
| 149 | |
| 150 | func (_m *MockThriftTest) TestList(_param0 []int32) ([]int32, error) { |
| 151 | ret := _m.ctrl.Call(_m, "TestList", _param0) |
| 152 | ret0, _ := ret[0].([]int32) |
| 153 | ret1, _ := ret[1].(error) |
| 154 | return ret0, ret1 |
| 155 | } |
| 156 | |
| 157 | func (_mr *_MockThriftTestRecorder) TestList(arg0 interface{}) *gomock.Call { |
| 158 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestList", arg0) |
| 159 | } |
| 160 | |
| 161 | func (_m *MockThriftTest) TestMap(_param0 map[int32]int32) (map[int32]int32, error) { |
| 162 | ret := _m.ctrl.Call(_m, "TestMap", _param0) |
| 163 | ret0, _ := ret[0].(map[int32]int32) |
| 164 | ret1, _ := ret[1].(error) |
| 165 | return ret0, ret1 |
| 166 | } |
| 167 | |
| 168 | func (_mr *_MockThriftTestRecorder) TestMap(arg0 interface{}) *gomock.Call { |
| 169 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestMap", arg0) |
| 170 | } |
| 171 | |
| 172 | func (_m *MockThriftTest) TestMapMap(_param0 int32) (map[int32]map[int32]int32, error) { |
| 173 | ret := _m.ctrl.Call(_m, "TestMapMap", _param0) |
| 174 | ret0, _ := ret[0].(map[int32]map[int32]int32) |
| 175 | ret1, _ := ret[1].(error) |
| 176 | return ret0, ret1 |
| 177 | } |
| 178 | |
| 179 | func (_mr *_MockThriftTestRecorder) TestMapMap(arg0 interface{}) *gomock.Call { |
| 180 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestMapMap", arg0) |
| 181 | } |
| 182 | |
| 183 | func (_m *MockThriftTest) TestMulti(_param0 int8, _param1 int32, _param2 int64, _param3 map[int16]string, _param4 thrifttest.Numberz, _param5 thrifttest.UserId) (*thrifttest.Xtruct, error) { |
| 184 | ret := _m.ctrl.Call(_m, "TestMulti", _param0, _param1, _param2, _param3, _param4, _param5) |
| 185 | ret0, _ := ret[0].(*thrifttest.Xtruct) |
| 186 | ret1, _ := ret[1].(error) |
| 187 | return ret0, ret1 |
| 188 | } |
| 189 | |
| 190 | func (_mr *_MockThriftTestRecorder) TestMulti(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { |
| 191 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestMulti", arg0, arg1, arg2, arg3, arg4, arg5) |
| 192 | } |
| 193 | |
| 194 | func (_m *MockThriftTest) TestMultiException(_param0 string, _param1 string) (*thrifttest.Xtruct, error) { |
| 195 | ret := _m.ctrl.Call(_m, "TestMultiException", _param0, _param1) |
| 196 | ret0, _ := ret[0].(*thrifttest.Xtruct) |
| 197 | ret1, _ := ret[1].(error) |
| 198 | return ret0, ret1 |
| 199 | } |
| 200 | |
| 201 | func (_mr *_MockThriftTestRecorder) TestMultiException(arg0, arg1 interface{}) *gomock.Call { |
| 202 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestMultiException", arg0, arg1) |
| 203 | } |
| 204 | |
| 205 | func (_m *MockThriftTest) TestNest(_param0 *thrifttest.Xtruct2) (*thrifttest.Xtruct2, error) { |
| 206 | ret := _m.ctrl.Call(_m, "TestNest", _param0) |
| 207 | ret0, _ := ret[0].(*thrifttest.Xtruct2) |
| 208 | ret1, _ := ret[1].(error) |
| 209 | return ret0, ret1 |
| 210 | } |
| 211 | |
| 212 | func (_mr *_MockThriftTestRecorder) TestNest(arg0 interface{}) *gomock.Call { |
| 213 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestNest", arg0) |
| 214 | } |
| 215 | |
| 216 | func (_m *MockThriftTest) TestOneway(_param0 int32) error { |
| 217 | ret := _m.ctrl.Call(_m, "TestOneway", _param0) |
| 218 | ret0, _ := ret[0].(error) |
| 219 | return ret0 |
| 220 | } |
| 221 | |
| 222 | func (_mr *_MockThriftTestRecorder) TestOneway(arg0 interface{}) *gomock.Call { |
| 223 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestOneway", arg0) |
| 224 | } |
| 225 | |
| 226 | func (_m *MockThriftTest) TestSet(_param0 map[int32]bool) (map[int32]bool, error) { |
| 227 | ret := _m.ctrl.Call(_m, "TestSet", _param0) |
| 228 | ret0, _ := ret[0].(map[int32]bool) |
| 229 | ret1, _ := ret[1].(error) |
| 230 | return ret0, ret1 |
| 231 | } |
| 232 | |
| 233 | func (_mr *_MockThriftTestRecorder) TestSet(arg0 interface{}) *gomock.Call { |
| 234 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestSet", arg0) |
| 235 | } |
| 236 | |
| 237 | func (_m *MockThriftTest) TestString(_param0 string) (string, error) { |
| 238 | ret := _m.ctrl.Call(_m, "TestString", _param0) |
| 239 | ret0, _ := ret[0].(string) |
| 240 | ret1, _ := ret[1].(error) |
| 241 | return ret0, ret1 |
| 242 | } |
| 243 | |
| 244 | func (_mr *_MockThriftTestRecorder) TestString(arg0 interface{}) *gomock.Call { |
| 245 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestString", arg0) |
| 246 | } |
| 247 | |
| 248 | func (_m *MockThriftTest) TestStringMap(_param0 map[string]string) (map[string]string, error) { |
| 249 | ret := _m.ctrl.Call(_m, "TestStringMap", _param0) |
| 250 | ret0, _ := ret[0].(map[string]string) |
| 251 | ret1, _ := ret[1].(error) |
| 252 | return ret0, ret1 |
| 253 | } |
| 254 | |
| 255 | func (_mr *_MockThriftTestRecorder) TestStringMap(arg0 interface{}) *gomock.Call { |
| 256 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestStringMap", arg0) |
| 257 | } |
| 258 | |
| 259 | func (_m *MockThriftTest) TestStruct(_param0 *thrifttest.Xtruct) (*thrifttest.Xtruct, error) { |
| 260 | ret := _m.ctrl.Call(_m, "TestStruct", _param0) |
| 261 | ret0, _ := ret[0].(*thrifttest.Xtruct) |
| 262 | ret1, _ := ret[1].(error) |
| 263 | return ret0, ret1 |
| 264 | } |
| 265 | |
| 266 | func (_mr *_MockThriftTestRecorder) TestStruct(arg0 interface{}) *gomock.Call { |
| 267 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestStruct", arg0) |
| 268 | } |
| 269 | |
| 270 | func (_m *MockThriftTest) TestTypedef(_param0 thrifttest.UserId) (thrifttest.UserId, error) { |
| 271 | ret := _m.ctrl.Call(_m, "TestTypedef", _param0) |
| 272 | ret0, _ := ret[0].(thrifttest.UserId) |
| 273 | ret1, _ := ret[1].(error) |
| 274 | return ret0, ret1 |
| 275 | } |
| 276 | |
| 277 | func (_mr *_MockThriftTestRecorder) TestTypedef(arg0 interface{}) *gomock.Call { |
| 278 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestTypedef", arg0) |
| 279 | } |
| 280 | |
| 281 | func (_m *MockThriftTest) TestVoid() error { |
| 282 | ret := _m.ctrl.Call(_m, "TestVoid") |
| 283 | ret0, _ := ret[0].(error) |
| 284 | return ret0 |
| 285 | } |
| 286 | |
| 287 | func (_mr *_MockThriftTestRecorder) TestVoid() *gomock.Call { |
| 288 | return _mr.mock.ctrl.RecordCall(_mr.mock, "TestVoid") |
| 289 | } |