github.com/qichengzx/mattermost-server@v4.5.1-0.20180604164826-2c75247c97d0+incompatible/store/storetest/mocks/LayeredStoreSupplier.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 // Regenerate this file using `make store-mocks`. 4 5 package mocks 6 7 import context "context" 8 import mock "github.com/stretchr/testify/mock" 9 import model "github.com/mattermost/mattermost-server/model" 10 import store "github.com/mattermost/mattermost-server/store" 11 12 // LayeredStoreSupplier is an autogenerated mock type for the LayeredStoreSupplier type 13 type LayeredStoreSupplier struct { 14 mock.Mock 15 } 16 17 // Next provides a mock function with given fields: 18 func (_m *LayeredStoreSupplier) Next() store.LayeredStoreSupplier { 19 ret := _m.Called() 20 21 var r0 store.LayeredStoreSupplier 22 if rf, ok := ret.Get(0).(func() store.LayeredStoreSupplier); ok { 23 r0 = rf() 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).(store.LayeredStoreSupplier) 27 } 28 } 29 30 return r0 31 } 32 33 // ReactionDelete provides a mock function with given fields: ctx, reaction, hints 34 func (_m *LayeredStoreSupplier) ReactionDelete(ctx context.Context, reaction *model.Reaction, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 35 _va := make([]interface{}, len(hints)) 36 for _i := range hints { 37 _va[_i] = hints[_i] 38 } 39 var _ca []interface{} 40 _ca = append(_ca, ctx, reaction) 41 _ca = append(_ca, _va...) 42 ret := _m.Called(_ca...) 43 44 var r0 *store.LayeredStoreSupplierResult 45 if rf, ok := ret.Get(0).(func(context.Context, *model.Reaction, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 46 r0 = rf(ctx, reaction, hints...) 47 } else { 48 if ret.Get(0) != nil { 49 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 50 } 51 } 52 53 return r0 54 } 55 56 // ReactionDeleteAllWithEmojiName provides a mock function with given fields: ctx, emojiName, hints 57 func (_m *LayeredStoreSupplier) ReactionDeleteAllWithEmojiName(ctx context.Context, emojiName string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 58 _va := make([]interface{}, len(hints)) 59 for _i := range hints { 60 _va[_i] = hints[_i] 61 } 62 var _ca []interface{} 63 _ca = append(_ca, ctx, emojiName) 64 _ca = append(_ca, _va...) 65 ret := _m.Called(_ca...) 66 67 var r0 *store.LayeredStoreSupplierResult 68 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 69 r0 = rf(ctx, emojiName, hints...) 70 } else { 71 if ret.Get(0) != nil { 72 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 73 } 74 } 75 76 return r0 77 } 78 79 // ReactionGetForPost provides a mock function with given fields: ctx, postId, hints 80 func (_m *LayeredStoreSupplier) ReactionGetForPost(ctx context.Context, postId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 81 _va := make([]interface{}, len(hints)) 82 for _i := range hints { 83 _va[_i] = hints[_i] 84 } 85 var _ca []interface{} 86 _ca = append(_ca, ctx, postId) 87 _ca = append(_ca, _va...) 88 ret := _m.Called(_ca...) 89 90 var r0 *store.LayeredStoreSupplierResult 91 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 92 r0 = rf(ctx, postId, hints...) 93 } else { 94 if ret.Get(0) != nil { 95 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 96 } 97 } 98 99 return r0 100 } 101 102 // ReactionPermanentDeleteBatch provides a mock function with given fields: ctx, endTime, limit, hints 103 func (_m *LayeredStoreSupplier) ReactionPermanentDeleteBatch(ctx context.Context, endTime int64, limit int64, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 104 _va := make([]interface{}, len(hints)) 105 for _i := range hints { 106 _va[_i] = hints[_i] 107 } 108 var _ca []interface{} 109 _ca = append(_ca, ctx, endTime, limit) 110 _ca = append(_ca, _va...) 111 ret := _m.Called(_ca...) 112 113 var r0 *store.LayeredStoreSupplierResult 114 if rf, ok := ret.Get(0).(func(context.Context, int64, int64, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 115 r0 = rf(ctx, endTime, limit, hints...) 116 } else { 117 if ret.Get(0) != nil { 118 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 119 } 120 } 121 122 return r0 123 } 124 125 // ReactionSave provides a mock function with given fields: ctx, reaction, hints 126 func (_m *LayeredStoreSupplier) ReactionSave(ctx context.Context, reaction *model.Reaction, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 127 _va := make([]interface{}, len(hints)) 128 for _i := range hints { 129 _va[_i] = hints[_i] 130 } 131 var _ca []interface{} 132 _ca = append(_ca, ctx, reaction) 133 _ca = append(_ca, _va...) 134 ret := _m.Called(_ca...) 135 136 var r0 *store.LayeredStoreSupplierResult 137 if rf, ok := ret.Get(0).(func(context.Context, *model.Reaction, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 138 r0 = rf(ctx, reaction, hints...) 139 } else { 140 if ret.Get(0) != nil { 141 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 142 } 143 } 144 145 return r0 146 } 147 148 // RoleDelete provides a mock function with given fields: ctx, roldId, hints 149 func (_m *LayeredStoreSupplier) RoleDelete(ctx context.Context, roldId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 150 _va := make([]interface{}, len(hints)) 151 for _i := range hints { 152 _va[_i] = hints[_i] 153 } 154 var _ca []interface{} 155 _ca = append(_ca, ctx, roldId) 156 _ca = append(_ca, _va...) 157 ret := _m.Called(_ca...) 158 159 var r0 *store.LayeredStoreSupplierResult 160 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 161 r0 = rf(ctx, roldId, hints...) 162 } else { 163 if ret.Get(0) != nil { 164 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 165 } 166 } 167 168 return r0 169 } 170 171 // RoleGet provides a mock function with given fields: ctx, roleId, hints 172 func (_m *LayeredStoreSupplier) RoleGet(ctx context.Context, roleId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 173 _va := make([]interface{}, len(hints)) 174 for _i := range hints { 175 _va[_i] = hints[_i] 176 } 177 var _ca []interface{} 178 _ca = append(_ca, ctx, roleId) 179 _ca = append(_ca, _va...) 180 ret := _m.Called(_ca...) 181 182 var r0 *store.LayeredStoreSupplierResult 183 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 184 r0 = rf(ctx, roleId, hints...) 185 } else { 186 if ret.Get(0) != nil { 187 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 188 } 189 } 190 191 return r0 192 } 193 194 // RoleGetByName provides a mock function with given fields: ctx, name, hints 195 func (_m *LayeredStoreSupplier) RoleGetByName(ctx context.Context, name string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 196 _va := make([]interface{}, len(hints)) 197 for _i := range hints { 198 _va[_i] = hints[_i] 199 } 200 var _ca []interface{} 201 _ca = append(_ca, ctx, name) 202 _ca = append(_ca, _va...) 203 ret := _m.Called(_ca...) 204 205 var r0 *store.LayeredStoreSupplierResult 206 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 207 r0 = rf(ctx, name, hints...) 208 } else { 209 if ret.Get(0) != nil { 210 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 211 } 212 } 213 214 return r0 215 } 216 217 // RoleGetByNames provides a mock function with given fields: ctx, names, hints 218 func (_m *LayeredStoreSupplier) RoleGetByNames(ctx context.Context, names []string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 219 _va := make([]interface{}, len(hints)) 220 for _i := range hints { 221 _va[_i] = hints[_i] 222 } 223 var _ca []interface{} 224 _ca = append(_ca, ctx, names) 225 _ca = append(_ca, _va...) 226 ret := _m.Called(_ca...) 227 228 var r0 *store.LayeredStoreSupplierResult 229 if rf, ok := ret.Get(0).(func(context.Context, []string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 230 r0 = rf(ctx, names, hints...) 231 } else { 232 if ret.Get(0) != nil { 233 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 234 } 235 } 236 237 return r0 238 } 239 240 // RolePermanentDeleteAll provides a mock function with given fields: ctx, hints 241 func (_m *LayeredStoreSupplier) RolePermanentDeleteAll(ctx context.Context, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 242 _va := make([]interface{}, len(hints)) 243 for _i := range hints { 244 _va[_i] = hints[_i] 245 } 246 var _ca []interface{} 247 _ca = append(_ca, ctx) 248 _ca = append(_ca, _va...) 249 ret := _m.Called(_ca...) 250 251 var r0 *store.LayeredStoreSupplierResult 252 if rf, ok := ret.Get(0).(func(context.Context, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 253 r0 = rf(ctx, hints...) 254 } else { 255 if ret.Get(0) != nil { 256 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 257 } 258 } 259 260 return r0 261 } 262 263 // RoleSave provides a mock function with given fields: ctx, role, hints 264 func (_m *LayeredStoreSupplier) RoleSave(ctx context.Context, role *model.Role, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 265 _va := make([]interface{}, len(hints)) 266 for _i := range hints { 267 _va[_i] = hints[_i] 268 } 269 var _ca []interface{} 270 _ca = append(_ca, ctx, role) 271 _ca = append(_ca, _va...) 272 ret := _m.Called(_ca...) 273 274 var r0 *store.LayeredStoreSupplierResult 275 if rf, ok := ret.Get(0).(func(context.Context, *model.Role, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 276 r0 = rf(ctx, role, hints...) 277 } else { 278 if ret.Get(0) != nil { 279 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 280 } 281 } 282 283 return r0 284 } 285 286 // SchemeDelete provides a mock function with given fields: ctx, schemeId, hints 287 func (_m *LayeredStoreSupplier) SchemeDelete(ctx context.Context, schemeId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 288 _va := make([]interface{}, len(hints)) 289 for _i := range hints { 290 _va[_i] = hints[_i] 291 } 292 var _ca []interface{} 293 _ca = append(_ca, ctx, schemeId) 294 _ca = append(_ca, _va...) 295 ret := _m.Called(_ca...) 296 297 var r0 *store.LayeredStoreSupplierResult 298 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 299 r0 = rf(ctx, schemeId, hints...) 300 } else { 301 if ret.Get(0) != nil { 302 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 303 } 304 } 305 306 return r0 307 } 308 309 // SchemeGet provides a mock function with given fields: ctx, schemeId, hints 310 func (_m *LayeredStoreSupplier) SchemeGet(ctx context.Context, schemeId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 311 _va := make([]interface{}, len(hints)) 312 for _i := range hints { 313 _va[_i] = hints[_i] 314 } 315 var _ca []interface{} 316 _ca = append(_ca, ctx, schemeId) 317 _ca = append(_ca, _va...) 318 ret := _m.Called(_ca...) 319 320 var r0 *store.LayeredStoreSupplierResult 321 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 322 r0 = rf(ctx, schemeId, hints...) 323 } else { 324 if ret.Get(0) != nil { 325 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 326 } 327 } 328 329 return r0 330 } 331 332 // SchemeGetAllPage provides a mock function with given fields: ctx, scope, offset, limit, hints 333 func (_m *LayeredStoreSupplier) SchemeGetAllPage(ctx context.Context, scope string, offset int, limit int, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 334 _va := make([]interface{}, len(hints)) 335 for _i := range hints { 336 _va[_i] = hints[_i] 337 } 338 var _ca []interface{} 339 _ca = append(_ca, ctx, scope, offset, limit) 340 _ca = append(_ca, _va...) 341 ret := _m.Called(_ca...) 342 343 var r0 *store.LayeredStoreSupplierResult 344 if rf, ok := ret.Get(0).(func(context.Context, string, int, int, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 345 r0 = rf(ctx, scope, offset, limit, hints...) 346 } else { 347 if ret.Get(0) != nil { 348 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 349 } 350 } 351 352 return r0 353 } 354 355 // SchemePermanentDeleteAll provides a mock function with given fields: ctx, hints 356 func (_m *LayeredStoreSupplier) SchemePermanentDeleteAll(ctx context.Context, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 357 _va := make([]interface{}, len(hints)) 358 for _i := range hints { 359 _va[_i] = hints[_i] 360 } 361 var _ca []interface{} 362 _ca = append(_ca, ctx) 363 _ca = append(_ca, _va...) 364 ret := _m.Called(_ca...) 365 366 var r0 *store.LayeredStoreSupplierResult 367 if rf, ok := ret.Get(0).(func(context.Context, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 368 r0 = rf(ctx, hints...) 369 } else { 370 if ret.Get(0) != nil { 371 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 372 } 373 } 374 375 return r0 376 } 377 378 // SchemeSave provides a mock function with given fields: ctx, scheme, hints 379 func (_m *LayeredStoreSupplier) SchemeSave(ctx context.Context, scheme *model.Scheme, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 380 _va := make([]interface{}, len(hints)) 381 for _i := range hints { 382 _va[_i] = hints[_i] 383 } 384 var _ca []interface{} 385 _ca = append(_ca, ctx, scheme) 386 _ca = append(_ca, _va...) 387 ret := _m.Called(_ca...) 388 389 var r0 *store.LayeredStoreSupplierResult 390 if rf, ok := ret.Get(0).(func(context.Context, *model.Scheme, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 391 r0 = rf(ctx, scheme, hints...) 392 } else { 393 if ret.Get(0) != nil { 394 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 395 } 396 } 397 398 return r0 399 } 400 401 // SetChainNext provides a mock function with given fields: _a0 402 func (_m *LayeredStoreSupplier) SetChainNext(_a0 store.LayeredStoreSupplier) { 403 _m.Called(_a0) 404 }