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