github.com/mad-app/mattermost-server@v5.11.1+incompatible/store/storetest/mocks/LayeredStoreDatabaseLayer.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 // LayeredStoreDatabaseLayer is an autogenerated mock type for the LayeredStoreDatabaseLayer type 13 type LayeredStoreDatabaseLayer struct { 14 mock.Mock 15 } 16 17 // Audit provides a mock function with given fields: 18 func (_m *LayeredStoreDatabaseLayer) Audit() store.AuditStore { 19 ret := _m.Called() 20 21 var r0 store.AuditStore 22 if rf, ok := ret.Get(0).(func() store.AuditStore); ok { 23 r0 = rf() 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).(store.AuditStore) 27 } 28 } 29 30 return r0 31 } 32 33 // Bot provides a mock function with given fields: 34 func (_m *LayeredStoreDatabaseLayer) Bot() store.BotStore { 35 ret := _m.Called() 36 37 var r0 store.BotStore 38 if rf, ok := ret.Get(0).(func() store.BotStore); ok { 39 r0 = rf() 40 } else { 41 if ret.Get(0) != nil { 42 r0 = ret.Get(0).(store.BotStore) 43 } 44 } 45 46 return r0 47 } 48 49 // Channel provides a mock function with given fields: 50 func (_m *LayeredStoreDatabaseLayer) Channel() store.ChannelStore { 51 ret := _m.Called() 52 53 var r0 store.ChannelStore 54 if rf, ok := ret.Get(0).(func() store.ChannelStore); ok { 55 r0 = rf() 56 } else { 57 if ret.Get(0) != nil { 58 r0 = ret.Get(0).(store.ChannelStore) 59 } 60 } 61 62 return r0 63 } 64 65 // ChannelMemberHistory provides a mock function with given fields: 66 func (_m *LayeredStoreDatabaseLayer) ChannelMemberHistory() store.ChannelMemberHistoryStore { 67 ret := _m.Called() 68 69 var r0 store.ChannelMemberHistoryStore 70 if rf, ok := ret.Get(0).(func() store.ChannelMemberHistoryStore); ok { 71 r0 = rf() 72 } else { 73 if ret.Get(0) != nil { 74 r0 = ret.Get(0).(store.ChannelMemberHistoryStore) 75 } 76 } 77 78 return r0 79 } 80 81 // Close provides a mock function with given fields: 82 func (_m *LayeredStoreDatabaseLayer) Close() { 83 _m.Called() 84 } 85 86 // ClusterDiscovery provides a mock function with given fields: 87 func (_m *LayeredStoreDatabaseLayer) ClusterDiscovery() store.ClusterDiscoveryStore { 88 ret := _m.Called() 89 90 var r0 store.ClusterDiscoveryStore 91 if rf, ok := ret.Get(0).(func() store.ClusterDiscoveryStore); ok { 92 r0 = rf() 93 } else { 94 if ret.Get(0) != nil { 95 r0 = ret.Get(0).(store.ClusterDiscoveryStore) 96 } 97 } 98 99 return r0 100 } 101 102 // Command provides a mock function with given fields: 103 func (_m *LayeredStoreDatabaseLayer) Command() store.CommandStore { 104 ret := _m.Called() 105 106 var r0 store.CommandStore 107 if rf, ok := ret.Get(0).(func() store.CommandStore); ok { 108 r0 = rf() 109 } else { 110 if ret.Get(0) != nil { 111 r0 = ret.Get(0).(store.CommandStore) 112 } 113 } 114 115 return r0 116 } 117 118 // CommandWebhook provides a mock function with given fields: 119 func (_m *LayeredStoreDatabaseLayer) CommandWebhook() store.CommandWebhookStore { 120 ret := _m.Called() 121 122 var r0 store.CommandWebhookStore 123 if rf, ok := ret.Get(0).(func() store.CommandWebhookStore); ok { 124 r0 = rf() 125 } else { 126 if ret.Get(0) != nil { 127 r0 = ret.Get(0).(store.CommandWebhookStore) 128 } 129 } 130 131 return r0 132 } 133 134 // Compliance provides a mock function with given fields: 135 func (_m *LayeredStoreDatabaseLayer) Compliance() store.ComplianceStore { 136 ret := _m.Called() 137 138 var r0 store.ComplianceStore 139 if rf, ok := ret.Get(0).(func() store.ComplianceStore); ok { 140 r0 = rf() 141 } else { 142 if ret.Get(0) != nil { 143 r0 = ret.Get(0).(store.ComplianceStore) 144 } 145 } 146 147 return r0 148 } 149 150 // DropAllTables provides a mock function with given fields: 151 func (_m *LayeredStoreDatabaseLayer) DropAllTables() { 152 _m.Called() 153 } 154 155 // Emoji provides a mock function with given fields: 156 func (_m *LayeredStoreDatabaseLayer) Emoji() store.EmojiStore { 157 ret := _m.Called() 158 159 var r0 store.EmojiStore 160 if rf, ok := ret.Get(0).(func() store.EmojiStore); ok { 161 r0 = rf() 162 } else { 163 if ret.Get(0) != nil { 164 r0 = ret.Get(0).(store.EmojiStore) 165 } 166 } 167 168 return r0 169 } 170 171 // FileInfo provides a mock function with given fields: 172 func (_m *LayeredStoreDatabaseLayer) FileInfo() store.FileInfoStore { 173 ret := _m.Called() 174 175 var r0 store.FileInfoStore 176 if rf, ok := ret.Get(0).(func() store.FileInfoStore); ok { 177 r0 = rf() 178 } else { 179 if ret.Get(0) != nil { 180 r0 = ret.Get(0).(store.FileInfoStore) 181 } 182 } 183 184 return r0 185 } 186 187 // Group provides a mock function with given fields: 188 func (_m *LayeredStoreDatabaseLayer) Group() store.GroupStore { 189 ret := _m.Called() 190 191 var r0 store.GroupStore 192 if rf, ok := ret.Get(0).(func() store.GroupStore); ok { 193 r0 = rf() 194 } else { 195 if ret.Get(0) != nil { 196 r0 = ret.Get(0).(store.GroupStore) 197 } 198 } 199 200 return r0 201 } 202 203 // GroupCreate provides a mock function with given fields: ctx, group, hints 204 func (_m *LayeredStoreDatabaseLayer) GroupCreate(ctx context.Context, group *model.Group, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 205 _va := make([]interface{}, len(hints)) 206 for _i := range hints { 207 _va[_i] = hints[_i] 208 } 209 var _ca []interface{} 210 _ca = append(_ca, ctx, group) 211 _ca = append(_ca, _va...) 212 ret := _m.Called(_ca...) 213 214 var r0 *store.LayeredStoreSupplierResult 215 if rf, ok := ret.Get(0).(func(context.Context, *model.Group, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 216 r0 = rf(ctx, group, hints...) 217 } else { 218 if ret.Get(0) != nil { 219 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 220 } 221 } 222 223 return r0 224 } 225 226 // GroupCreateGroupSyncable provides a mock function with given fields: ctx, groupSyncable, hints 227 func (_m *LayeredStoreDatabaseLayer) GroupCreateGroupSyncable(ctx context.Context, groupSyncable *model.GroupSyncable, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 228 _va := make([]interface{}, len(hints)) 229 for _i := range hints { 230 _va[_i] = hints[_i] 231 } 232 var _ca []interface{} 233 _ca = append(_ca, ctx, groupSyncable) 234 _ca = append(_ca, _va...) 235 ret := _m.Called(_ca...) 236 237 var r0 *store.LayeredStoreSupplierResult 238 if rf, ok := ret.Get(0).(func(context.Context, *model.GroupSyncable, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 239 r0 = rf(ctx, groupSyncable, hints...) 240 } else { 241 if ret.Get(0) != nil { 242 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 243 } 244 } 245 246 return r0 247 } 248 249 // GroupCreateOrRestoreMember provides a mock function with given fields: ctx, groupID, userID, hints 250 func (_m *LayeredStoreDatabaseLayer) GroupCreateOrRestoreMember(ctx context.Context, groupID string, userID string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 251 _va := make([]interface{}, len(hints)) 252 for _i := range hints { 253 _va[_i] = hints[_i] 254 } 255 var _ca []interface{} 256 _ca = append(_ca, ctx, groupID, userID) 257 _ca = append(_ca, _va...) 258 ret := _m.Called(_ca...) 259 260 var r0 *store.LayeredStoreSupplierResult 261 if rf, ok := ret.Get(0).(func(context.Context, string, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 262 r0 = rf(ctx, groupID, userID, hints...) 263 } else { 264 if ret.Get(0) != nil { 265 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 266 } 267 } 268 269 return r0 270 } 271 272 // GroupDelete provides a mock function with given fields: ctx, groupID, hints 273 func (_m *LayeredStoreDatabaseLayer) GroupDelete(ctx context.Context, groupID string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 274 _va := make([]interface{}, len(hints)) 275 for _i := range hints { 276 _va[_i] = hints[_i] 277 } 278 var _ca []interface{} 279 _ca = append(_ca, ctx, groupID) 280 _ca = append(_ca, _va...) 281 ret := _m.Called(_ca...) 282 283 var r0 *store.LayeredStoreSupplierResult 284 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 285 r0 = rf(ctx, groupID, hints...) 286 } else { 287 if ret.Get(0) != nil { 288 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 289 } 290 } 291 292 return r0 293 } 294 295 // GroupDeleteGroupSyncable provides a mock function with given fields: ctx, groupID, syncableID, syncableType, hints 296 func (_m *LayeredStoreDatabaseLayer) GroupDeleteGroupSyncable(ctx context.Context, groupID string, syncableID string, syncableType model.GroupSyncableType, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 297 _va := make([]interface{}, len(hints)) 298 for _i := range hints { 299 _va[_i] = hints[_i] 300 } 301 var _ca []interface{} 302 _ca = append(_ca, ctx, groupID, syncableID, syncableType) 303 _ca = append(_ca, _va...) 304 ret := _m.Called(_ca...) 305 306 var r0 *store.LayeredStoreSupplierResult 307 if rf, ok := ret.Get(0).(func(context.Context, string, string, model.GroupSyncableType, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 308 r0 = rf(ctx, groupID, syncableID, syncableType, hints...) 309 } else { 310 if ret.Get(0) != nil { 311 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 312 } 313 } 314 315 return r0 316 } 317 318 // GroupDeleteMember provides a mock function with given fields: ctx, groupID, userID, hints 319 func (_m *LayeredStoreDatabaseLayer) GroupDeleteMember(ctx context.Context, groupID string, userID string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 320 _va := make([]interface{}, len(hints)) 321 for _i := range hints { 322 _va[_i] = hints[_i] 323 } 324 var _ca []interface{} 325 _ca = append(_ca, ctx, groupID, userID) 326 _ca = append(_ca, _va...) 327 ret := _m.Called(_ca...) 328 329 var r0 *store.LayeredStoreSupplierResult 330 if rf, ok := ret.Get(0).(func(context.Context, string, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 331 r0 = rf(ctx, groupID, userID, hints...) 332 } else { 333 if ret.Get(0) != nil { 334 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 335 } 336 } 337 338 return r0 339 } 340 341 // GroupGet provides a mock function with given fields: ctx, groupID, hints 342 func (_m *LayeredStoreDatabaseLayer) GroupGet(ctx context.Context, groupID string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 343 _va := make([]interface{}, len(hints)) 344 for _i := range hints { 345 _va[_i] = hints[_i] 346 } 347 var _ca []interface{} 348 _ca = append(_ca, ctx, groupID) 349 _ca = append(_ca, _va...) 350 ret := _m.Called(_ca...) 351 352 var r0 *store.LayeredStoreSupplierResult 353 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 354 r0 = rf(ctx, groupID, hints...) 355 } else { 356 if ret.Get(0) != nil { 357 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 358 } 359 } 360 361 return r0 362 } 363 364 // GroupGetAllBySource provides a mock function with given fields: ctx, groupSource, hints 365 func (_m *LayeredStoreDatabaseLayer) GroupGetAllBySource(ctx context.Context, groupSource model.GroupSource, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 366 _va := make([]interface{}, len(hints)) 367 for _i := range hints { 368 _va[_i] = hints[_i] 369 } 370 var _ca []interface{} 371 _ca = append(_ca, ctx, groupSource) 372 _ca = append(_ca, _va...) 373 ret := _m.Called(_ca...) 374 375 var r0 *store.LayeredStoreSupplierResult 376 if rf, ok := ret.Get(0).(func(context.Context, model.GroupSource, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 377 r0 = rf(ctx, groupSource, hints...) 378 } else { 379 if ret.Get(0) != nil { 380 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 381 } 382 } 383 384 return r0 385 } 386 387 // GroupGetAllGroupSyncablesByGroup provides a mock function with given fields: ctx, groupID, syncableType, hints 388 func (_m *LayeredStoreDatabaseLayer) GroupGetAllGroupSyncablesByGroup(ctx context.Context, groupID string, syncableType model.GroupSyncableType, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 389 _va := make([]interface{}, len(hints)) 390 for _i := range hints { 391 _va[_i] = hints[_i] 392 } 393 var _ca []interface{} 394 _ca = append(_ca, ctx, groupID, syncableType) 395 _ca = append(_ca, _va...) 396 ret := _m.Called(_ca...) 397 398 var r0 *store.LayeredStoreSupplierResult 399 if rf, ok := ret.Get(0).(func(context.Context, string, model.GroupSyncableType, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 400 r0 = rf(ctx, groupID, syncableType, hints...) 401 } else { 402 if ret.Get(0) != nil { 403 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 404 } 405 } 406 407 return r0 408 } 409 410 // GroupGetByRemoteID provides a mock function with given fields: ctx, remoteID, groupSource, hints 411 func (_m *LayeredStoreDatabaseLayer) GroupGetByRemoteID(ctx context.Context, remoteID string, groupSource model.GroupSource, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 412 _va := make([]interface{}, len(hints)) 413 for _i := range hints { 414 _va[_i] = hints[_i] 415 } 416 var _ca []interface{} 417 _ca = append(_ca, ctx, remoteID, groupSource) 418 _ca = append(_ca, _va...) 419 ret := _m.Called(_ca...) 420 421 var r0 *store.LayeredStoreSupplierResult 422 if rf, ok := ret.Get(0).(func(context.Context, string, model.GroupSource, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 423 r0 = rf(ctx, remoteID, groupSource, hints...) 424 } else { 425 if ret.Get(0) != nil { 426 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 427 } 428 } 429 430 return r0 431 } 432 433 // GroupGetGroupSyncable provides a mock function with given fields: ctx, groupID, syncableID, syncableType, hints 434 func (_m *LayeredStoreDatabaseLayer) GroupGetGroupSyncable(ctx context.Context, groupID string, syncableID string, syncableType model.GroupSyncableType, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 435 _va := make([]interface{}, len(hints)) 436 for _i := range hints { 437 _va[_i] = hints[_i] 438 } 439 var _ca []interface{} 440 _ca = append(_ca, ctx, groupID, syncableID, syncableType) 441 _ca = append(_ca, _va...) 442 ret := _m.Called(_ca...) 443 444 var r0 *store.LayeredStoreSupplierResult 445 if rf, ok := ret.Get(0).(func(context.Context, string, string, model.GroupSyncableType, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 446 r0 = rf(ctx, groupID, syncableID, syncableType, hints...) 447 } else { 448 if ret.Get(0) != nil { 449 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 450 } 451 } 452 453 return r0 454 } 455 456 // GroupGetMemberCount provides a mock function with given fields: ctx, groupID, hints 457 func (_m *LayeredStoreDatabaseLayer) GroupGetMemberCount(ctx context.Context, groupID string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 458 _va := make([]interface{}, len(hints)) 459 for _i := range hints { 460 _va[_i] = hints[_i] 461 } 462 var _ca []interface{} 463 _ca = append(_ca, ctx, groupID) 464 _ca = append(_ca, _va...) 465 ret := _m.Called(_ca...) 466 467 var r0 *store.LayeredStoreSupplierResult 468 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 469 r0 = rf(ctx, groupID, hints...) 470 } else { 471 if ret.Get(0) != nil { 472 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 473 } 474 } 475 476 return r0 477 } 478 479 // GroupGetMemberUsers provides a mock function with given fields: ctx, groupID, hints 480 func (_m *LayeredStoreDatabaseLayer) GroupGetMemberUsers(ctx context.Context, groupID string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 481 _va := make([]interface{}, len(hints)) 482 for _i := range hints { 483 _va[_i] = hints[_i] 484 } 485 var _ca []interface{} 486 _ca = append(_ca, ctx, groupID) 487 _ca = append(_ca, _va...) 488 ret := _m.Called(_ca...) 489 490 var r0 *store.LayeredStoreSupplierResult 491 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 492 r0 = rf(ctx, groupID, hints...) 493 } else { 494 if ret.Get(0) != nil { 495 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 496 } 497 } 498 499 return r0 500 } 501 502 // GroupGetMemberUsersPage provides a mock function with given fields: ctx, groupID, offset, limit, hints 503 func (_m *LayeredStoreDatabaseLayer) GroupGetMemberUsersPage(ctx context.Context, groupID string, offset int, limit int, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 504 _va := make([]interface{}, len(hints)) 505 for _i := range hints { 506 _va[_i] = hints[_i] 507 } 508 var _ca []interface{} 509 _ca = append(_ca, ctx, groupID, offset, limit) 510 _ca = append(_ca, _va...) 511 ret := _m.Called(_ca...) 512 513 var r0 *store.LayeredStoreSupplierResult 514 if rf, ok := ret.Get(0).(func(context.Context, string, int, int, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 515 r0 = rf(ctx, groupID, offset, limit, hints...) 516 } else { 517 if ret.Get(0) != nil { 518 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 519 } 520 } 521 522 return r0 523 } 524 525 // GroupUpdate provides a mock function with given fields: ctx, group, hints 526 func (_m *LayeredStoreDatabaseLayer) GroupUpdate(ctx context.Context, group *model.Group, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 527 _va := make([]interface{}, len(hints)) 528 for _i := range hints { 529 _va[_i] = hints[_i] 530 } 531 var _ca []interface{} 532 _ca = append(_ca, ctx, group) 533 _ca = append(_ca, _va...) 534 ret := _m.Called(_ca...) 535 536 var r0 *store.LayeredStoreSupplierResult 537 if rf, ok := ret.Get(0).(func(context.Context, *model.Group, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 538 r0 = rf(ctx, group, hints...) 539 } else { 540 if ret.Get(0) != nil { 541 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 542 } 543 } 544 545 return r0 546 } 547 548 // GroupUpdateGroupSyncable provides a mock function with given fields: ctx, groupSyncable, hints 549 func (_m *LayeredStoreDatabaseLayer) GroupUpdateGroupSyncable(ctx context.Context, groupSyncable *model.GroupSyncable, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 550 _va := make([]interface{}, len(hints)) 551 for _i := range hints { 552 _va[_i] = hints[_i] 553 } 554 var _ca []interface{} 555 _ca = append(_ca, ctx, groupSyncable) 556 _ca = append(_ca, _va...) 557 ret := _m.Called(_ca...) 558 559 var r0 *store.LayeredStoreSupplierResult 560 if rf, ok := ret.Get(0).(func(context.Context, *model.GroupSyncable, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 561 r0 = rf(ctx, groupSyncable, hints...) 562 } else { 563 if ret.Get(0) != nil { 564 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 565 } 566 } 567 568 return r0 569 } 570 571 // Job provides a mock function with given fields: 572 func (_m *LayeredStoreDatabaseLayer) Job() store.JobStore { 573 ret := _m.Called() 574 575 var r0 store.JobStore 576 if rf, ok := ret.Get(0).(func() store.JobStore); ok { 577 r0 = rf() 578 } else { 579 if ret.Get(0) != nil { 580 r0 = ret.Get(0).(store.JobStore) 581 } 582 } 583 584 return r0 585 } 586 587 // License provides a mock function with given fields: 588 func (_m *LayeredStoreDatabaseLayer) License() store.LicenseStore { 589 ret := _m.Called() 590 591 var r0 store.LicenseStore 592 if rf, ok := ret.Get(0).(func() store.LicenseStore); ok { 593 r0 = rf() 594 } else { 595 if ret.Get(0) != nil { 596 r0 = ret.Get(0).(store.LicenseStore) 597 } 598 } 599 600 return r0 601 } 602 603 // LinkMetadata provides a mock function with given fields: 604 func (_m *LayeredStoreDatabaseLayer) LinkMetadata() store.LinkMetadataStore { 605 ret := _m.Called() 606 607 var r0 store.LinkMetadataStore 608 if rf, ok := ret.Get(0).(func() store.LinkMetadataStore); ok { 609 r0 = rf() 610 } else { 611 if ret.Get(0) != nil { 612 r0 = ret.Get(0).(store.LinkMetadataStore) 613 } 614 } 615 616 return r0 617 } 618 619 // LockToMaster provides a mock function with given fields: 620 func (_m *LayeredStoreDatabaseLayer) LockToMaster() { 621 _m.Called() 622 } 623 624 // MarkSystemRanUnitTests provides a mock function with given fields: 625 func (_m *LayeredStoreDatabaseLayer) MarkSystemRanUnitTests() { 626 _m.Called() 627 } 628 629 // Next provides a mock function with given fields: 630 func (_m *LayeredStoreDatabaseLayer) Next() store.LayeredStoreSupplier { 631 ret := _m.Called() 632 633 var r0 store.LayeredStoreSupplier 634 if rf, ok := ret.Get(0).(func() store.LayeredStoreSupplier); ok { 635 r0 = rf() 636 } else { 637 if ret.Get(0) != nil { 638 r0 = ret.Get(0).(store.LayeredStoreSupplier) 639 } 640 } 641 642 return r0 643 } 644 645 // OAuth provides a mock function with given fields: 646 func (_m *LayeredStoreDatabaseLayer) OAuth() store.OAuthStore { 647 ret := _m.Called() 648 649 var r0 store.OAuthStore 650 if rf, ok := ret.Get(0).(func() store.OAuthStore); ok { 651 r0 = rf() 652 } else { 653 if ret.Get(0) != nil { 654 r0 = ret.Get(0).(store.OAuthStore) 655 } 656 } 657 658 return r0 659 } 660 661 // PendingAutoAddChannelMembers provides a mock function with given fields: ctx, minGroupMembersCreateAt, hints 662 func (_m *LayeredStoreDatabaseLayer) PendingAutoAddChannelMembers(ctx context.Context, minGroupMembersCreateAt int64, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 663 _va := make([]interface{}, len(hints)) 664 for _i := range hints { 665 _va[_i] = hints[_i] 666 } 667 var _ca []interface{} 668 _ca = append(_ca, ctx, minGroupMembersCreateAt) 669 _ca = append(_ca, _va...) 670 ret := _m.Called(_ca...) 671 672 var r0 *store.LayeredStoreSupplierResult 673 if rf, ok := ret.Get(0).(func(context.Context, int64, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 674 r0 = rf(ctx, minGroupMembersCreateAt, hints...) 675 } else { 676 if ret.Get(0) != nil { 677 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 678 } 679 } 680 681 return r0 682 } 683 684 // PendingAutoAddTeamMembers provides a mock function with given fields: ctx, minGroupMembersCreateAt, hints 685 func (_m *LayeredStoreDatabaseLayer) PendingAutoAddTeamMembers(ctx context.Context, minGroupMembersCreateAt int64, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 686 _va := make([]interface{}, len(hints)) 687 for _i := range hints { 688 _va[_i] = hints[_i] 689 } 690 var _ca []interface{} 691 _ca = append(_ca, ctx, minGroupMembersCreateAt) 692 _ca = append(_ca, _va...) 693 ret := _m.Called(_ca...) 694 695 var r0 *store.LayeredStoreSupplierResult 696 if rf, ok := ret.Get(0).(func(context.Context, int64, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 697 r0 = rf(ctx, minGroupMembersCreateAt, hints...) 698 } else { 699 if ret.Get(0) != nil { 700 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 701 } 702 } 703 704 return r0 705 } 706 707 // Plugin provides a mock function with given fields: 708 func (_m *LayeredStoreDatabaseLayer) Plugin() store.PluginStore { 709 ret := _m.Called() 710 711 var r0 store.PluginStore 712 if rf, ok := ret.Get(0).(func() store.PluginStore); ok { 713 r0 = rf() 714 } else { 715 if ret.Get(0) != nil { 716 r0 = ret.Get(0).(store.PluginStore) 717 } 718 } 719 720 return r0 721 } 722 723 // Post provides a mock function with given fields: 724 func (_m *LayeredStoreDatabaseLayer) Post() store.PostStore { 725 ret := _m.Called() 726 727 var r0 store.PostStore 728 if rf, ok := ret.Get(0).(func() store.PostStore); ok { 729 r0 = rf() 730 } else { 731 if ret.Get(0) != nil { 732 r0 = ret.Get(0).(store.PostStore) 733 } 734 } 735 736 return r0 737 } 738 739 // Preference provides a mock function with given fields: 740 func (_m *LayeredStoreDatabaseLayer) Preference() store.PreferenceStore { 741 ret := _m.Called() 742 743 var r0 store.PreferenceStore 744 if rf, ok := ret.Get(0).(func() store.PreferenceStore); ok { 745 r0 = rf() 746 } else { 747 if ret.Get(0) != nil { 748 r0 = ret.Get(0).(store.PreferenceStore) 749 } 750 } 751 752 return r0 753 } 754 755 // Reaction provides a mock function with given fields: 756 func (_m *LayeredStoreDatabaseLayer) Reaction() store.ReactionStore { 757 ret := _m.Called() 758 759 var r0 store.ReactionStore 760 if rf, ok := ret.Get(0).(func() store.ReactionStore); ok { 761 r0 = rf() 762 } else { 763 if ret.Get(0) != nil { 764 r0 = ret.Get(0).(store.ReactionStore) 765 } 766 } 767 768 return r0 769 } 770 771 // ReactionDelete provides a mock function with given fields: ctx, reaction, hints 772 func (_m *LayeredStoreDatabaseLayer) ReactionDelete(ctx context.Context, reaction *model.Reaction, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 773 _va := make([]interface{}, len(hints)) 774 for _i := range hints { 775 _va[_i] = hints[_i] 776 } 777 var _ca []interface{} 778 _ca = append(_ca, ctx, reaction) 779 _ca = append(_ca, _va...) 780 ret := _m.Called(_ca...) 781 782 var r0 *store.LayeredStoreSupplierResult 783 if rf, ok := ret.Get(0).(func(context.Context, *model.Reaction, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 784 r0 = rf(ctx, reaction, hints...) 785 } else { 786 if ret.Get(0) != nil { 787 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 788 } 789 } 790 791 return r0 792 } 793 794 // ReactionDeleteAllWithEmojiName provides a mock function with given fields: ctx, emojiName, hints 795 func (_m *LayeredStoreDatabaseLayer) ReactionDeleteAllWithEmojiName(ctx context.Context, emojiName string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 796 _va := make([]interface{}, len(hints)) 797 for _i := range hints { 798 _va[_i] = hints[_i] 799 } 800 var _ca []interface{} 801 _ca = append(_ca, ctx, emojiName) 802 _ca = append(_ca, _va...) 803 ret := _m.Called(_ca...) 804 805 var r0 *store.LayeredStoreSupplierResult 806 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 807 r0 = rf(ctx, emojiName, hints...) 808 } else { 809 if ret.Get(0) != nil { 810 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 811 } 812 } 813 814 return r0 815 } 816 817 // ReactionGetForPost provides a mock function with given fields: ctx, postId, hints 818 func (_m *LayeredStoreDatabaseLayer) ReactionGetForPost(ctx context.Context, postId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 819 _va := make([]interface{}, len(hints)) 820 for _i := range hints { 821 _va[_i] = hints[_i] 822 } 823 var _ca []interface{} 824 _ca = append(_ca, ctx, postId) 825 _ca = append(_ca, _va...) 826 ret := _m.Called(_ca...) 827 828 var r0 *store.LayeredStoreSupplierResult 829 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 830 r0 = rf(ctx, postId, hints...) 831 } else { 832 if ret.Get(0) != nil { 833 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 834 } 835 } 836 837 return r0 838 } 839 840 // ReactionPermanentDeleteBatch provides a mock function with given fields: ctx, endTime, limit, hints 841 func (_m *LayeredStoreDatabaseLayer) ReactionPermanentDeleteBatch(ctx context.Context, endTime int64, limit int64, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 842 _va := make([]interface{}, len(hints)) 843 for _i := range hints { 844 _va[_i] = hints[_i] 845 } 846 var _ca []interface{} 847 _ca = append(_ca, ctx, endTime, limit) 848 _ca = append(_ca, _va...) 849 ret := _m.Called(_ca...) 850 851 var r0 *store.LayeredStoreSupplierResult 852 if rf, ok := ret.Get(0).(func(context.Context, int64, int64, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 853 r0 = rf(ctx, endTime, limit, hints...) 854 } else { 855 if ret.Get(0) != nil { 856 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 857 } 858 } 859 860 return r0 861 } 862 863 // ReactionSave provides a mock function with given fields: ctx, reaction, hints 864 func (_m *LayeredStoreDatabaseLayer) ReactionSave(ctx context.Context, reaction *model.Reaction, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 865 _va := make([]interface{}, len(hints)) 866 for _i := range hints { 867 _va[_i] = hints[_i] 868 } 869 var _ca []interface{} 870 _ca = append(_ca, ctx, reaction) 871 _ca = append(_ca, _va...) 872 ret := _m.Called(_ca...) 873 874 var r0 *store.LayeredStoreSupplierResult 875 if rf, ok := ret.Get(0).(func(context.Context, *model.Reaction, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 876 r0 = rf(ctx, reaction, hints...) 877 } else { 878 if ret.Get(0) != nil { 879 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 880 } 881 } 882 883 return r0 884 } 885 886 // ReactionsBulkGetForPosts provides a mock function with given fields: ctx, postIds, hints 887 func (_m *LayeredStoreDatabaseLayer) ReactionsBulkGetForPosts(ctx context.Context, postIds []string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 888 _va := make([]interface{}, len(hints)) 889 for _i := range hints { 890 _va[_i] = hints[_i] 891 } 892 var _ca []interface{} 893 _ca = append(_ca, ctx, postIds) 894 _ca = append(_ca, _va...) 895 ret := _m.Called(_ca...) 896 897 var r0 *store.LayeredStoreSupplierResult 898 if rf, ok := ret.Get(0).(func(context.Context, []string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 899 r0 = rf(ctx, postIds, hints...) 900 } else { 901 if ret.Get(0) != nil { 902 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 903 } 904 } 905 906 return r0 907 } 908 909 // Role provides a mock function with given fields: 910 func (_m *LayeredStoreDatabaseLayer) Role() store.RoleStore { 911 ret := _m.Called() 912 913 var r0 store.RoleStore 914 if rf, ok := ret.Get(0).(func() store.RoleStore); ok { 915 r0 = rf() 916 } else { 917 if ret.Get(0) != nil { 918 r0 = ret.Get(0).(store.RoleStore) 919 } 920 } 921 922 return r0 923 } 924 925 // RoleDelete provides a mock function with given fields: ctx, roldId, hints 926 func (_m *LayeredStoreDatabaseLayer) RoleDelete(ctx context.Context, roldId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 927 _va := make([]interface{}, len(hints)) 928 for _i := range hints { 929 _va[_i] = hints[_i] 930 } 931 var _ca []interface{} 932 _ca = append(_ca, ctx, roldId) 933 _ca = append(_ca, _va...) 934 ret := _m.Called(_ca...) 935 936 var r0 *store.LayeredStoreSupplierResult 937 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 938 r0 = rf(ctx, roldId, hints...) 939 } else { 940 if ret.Get(0) != nil { 941 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 942 } 943 } 944 945 return r0 946 } 947 948 // RoleGet provides a mock function with given fields: ctx, roleId, hints 949 func (_m *LayeredStoreDatabaseLayer) RoleGet(ctx context.Context, roleId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 950 _va := make([]interface{}, len(hints)) 951 for _i := range hints { 952 _va[_i] = hints[_i] 953 } 954 var _ca []interface{} 955 _ca = append(_ca, ctx, roleId) 956 _ca = append(_ca, _va...) 957 ret := _m.Called(_ca...) 958 959 var r0 *store.LayeredStoreSupplierResult 960 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 961 r0 = rf(ctx, roleId, hints...) 962 } else { 963 if ret.Get(0) != nil { 964 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 965 } 966 } 967 968 return r0 969 } 970 971 // RoleGetAll provides a mock function with given fields: ctx, hints 972 func (_m *LayeredStoreDatabaseLayer) RoleGetAll(ctx context.Context, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 973 _va := make([]interface{}, len(hints)) 974 for _i := range hints { 975 _va[_i] = hints[_i] 976 } 977 var _ca []interface{} 978 _ca = append(_ca, ctx) 979 _ca = append(_ca, _va...) 980 ret := _m.Called(_ca...) 981 982 var r0 *store.LayeredStoreSupplierResult 983 if rf, ok := ret.Get(0).(func(context.Context, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 984 r0 = rf(ctx, hints...) 985 } else { 986 if ret.Get(0) != nil { 987 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 988 } 989 } 990 991 return r0 992 } 993 994 // RoleGetByName provides a mock function with given fields: ctx, name, hints 995 func (_m *LayeredStoreDatabaseLayer) RoleGetByName(ctx context.Context, name string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 996 _va := make([]interface{}, len(hints)) 997 for _i := range hints { 998 _va[_i] = hints[_i] 999 } 1000 var _ca []interface{} 1001 _ca = append(_ca, ctx, name) 1002 _ca = append(_ca, _va...) 1003 ret := _m.Called(_ca...) 1004 1005 var r0 *store.LayeredStoreSupplierResult 1006 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 1007 r0 = rf(ctx, name, hints...) 1008 } else { 1009 if ret.Get(0) != nil { 1010 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 1011 } 1012 } 1013 1014 return r0 1015 } 1016 1017 // RoleGetByNames provides a mock function with given fields: ctx, names, hints 1018 func (_m *LayeredStoreDatabaseLayer) RoleGetByNames(ctx context.Context, names []string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 1019 _va := make([]interface{}, len(hints)) 1020 for _i := range hints { 1021 _va[_i] = hints[_i] 1022 } 1023 var _ca []interface{} 1024 _ca = append(_ca, ctx, names) 1025 _ca = append(_ca, _va...) 1026 ret := _m.Called(_ca...) 1027 1028 var r0 *store.LayeredStoreSupplierResult 1029 if rf, ok := ret.Get(0).(func(context.Context, []string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 1030 r0 = rf(ctx, names, hints...) 1031 } else { 1032 if ret.Get(0) != nil { 1033 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 1034 } 1035 } 1036 1037 return r0 1038 } 1039 1040 // RolePermanentDeleteAll provides a mock function with given fields: ctx, hints 1041 func (_m *LayeredStoreDatabaseLayer) RolePermanentDeleteAll(ctx context.Context, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 1042 _va := make([]interface{}, len(hints)) 1043 for _i := range hints { 1044 _va[_i] = hints[_i] 1045 } 1046 var _ca []interface{} 1047 _ca = append(_ca, ctx) 1048 _ca = append(_ca, _va...) 1049 ret := _m.Called(_ca...) 1050 1051 var r0 *store.LayeredStoreSupplierResult 1052 if rf, ok := ret.Get(0).(func(context.Context, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 1053 r0 = rf(ctx, hints...) 1054 } else { 1055 if ret.Get(0) != nil { 1056 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 1057 } 1058 } 1059 1060 return r0 1061 } 1062 1063 // RoleSave provides a mock function with given fields: ctx, role, hints 1064 func (_m *LayeredStoreDatabaseLayer) RoleSave(ctx context.Context, role *model.Role, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 1065 _va := make([]interface{}, len(hints)) 1066 for _i := range hints { 1067 _va[_i] = hints[_i] 1068 } 1069 var _ca []interface{} 1070 _ca = append(_ca, ctx, role) 1071 _ca = append(_ca, _va...) 1072 ret := _m.Called(_ca...) 1073 1074 var r0 *store.LayeredStoreSupplierResult 1075 if rf, ok := ret.Get(0).(func(context.Context, *model.Role, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 1076 r0 = rf(ctx, role, hints...) 1077 } else { 1078 if ret.Get(0) != nil { 1079 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 1080 } 1081 } 1082 1083 return r0 1084 } 1085 1086 // Scheme provides a mock function with given fields: 1087 func (_m *LayeredStoreDatabaseLayer) Scheme() store.SchemeStore { 1088 ret := _m.Called() 1089 1090 var r0 store.SchemeStore 1091 if rf, ok := ret.Get(0).(func() store.SchemeStore); ok { 1092 r0 = rf() 1093 } else { 1094 if ret.Get(0) != nil { 1095 r0 = ret.Get(0).(store.SchemeStore) 1096 } 1097 } 1098 1099 return r0 1100 } 1101 1102 // SchemeDelete provides a mock function with given fields: ctx, schemeId, hints 1103 func (_m *LayeredStoreDatabaseLayer) SchemeDelete(ctx context.Context, schemeId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 1104 _va := make([]interface{}, len(hints)) 1105 for _i := range hints { 1106 _va[_i] = hints[_i] 1107 } 1108 var _ca []interface{} 1109 _ca = append(_ca, ctx, schemeId) 1110 _ca = append(_ca, _va...) 1111 ret := _m.Called(_ca...) 1112 1113 var r0 *store.LayeredStoreSupplierResult 1114 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 1115 r0 = rf(ctx, schemeId, hints...) 1116 } else { 1117 if ret.Get(0) != nil { 1118 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 1119 } 1120 } 1121 1122 return r0 1123 } 1124 1125 // SchemeGet provides a mock function with given fields: ctx, schemeId, hints 1126 func (_m *LayeredStoreDatabaseLayer) SchemeGet(ctx context.Context, schemeId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 1127 _va := make([]interface{}, len(hints)) 1128 for _i := range hints { 1129 _va[_i] = hints[_i] 1130 } 1131 var _ca []interface{} 1132 _ca = append(_ca, ctx, schemeId) 1133 _ca = append(_ca, _va...) 1134 ret := _m.Called(_ca...) 1135 1136 var r0 *store.LayeredStoreSupplierResult 1137 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 1138 r0 = rf(ctx, schemeId, hints...) 1139 } else { 1140 if ret.Get(0) != nil { 1141 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 1142 } 1143 } 1144 1145 return r0 1146 } 1147 1148 // SchemeGetAllPage provides a mock function with given fields: ctx, scope, offset, limit, hints 1149 func (_m *LayeredStoreDatabaseLayer) SchemeGetAllPage(ctx context.Context, scope string, offset int, limit int, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 1150 _va := make([]interface{}, len(hints)) 1151 for _i := range hints { 1152 _va[_i] = hints[_i] 1153 } 1154 var _ca []interface{} 1155 _ca = append(_ca, ctx, scope, offset, limit) 1156 _ca = append(_ca, _va...) 1157 ret := _m.Called(_ca...) 1158 1159 var r0 *store.LayeredStoreSupplierResult 1160 if rf, ok := ret.Get(0).(func(context.Context, string, int, int, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 1161 r0 = rf(ctx, scope, offset, limit, hints...) 1162 } else { 1163 if ret.Get(0) != nil { 1164 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 1165 } 1166 } 1167 1168 return r0 1169 } 1170 1171 // SchemeGetByName provides a mock function with given fields: ctx, schemeName, hints 1172 func (_m *LayeredStoreDatabaseLayer) SchemeGetByName(ctx context.Context, schemeName string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 1173 _va := make([]interface{}, len(hints)) 1174 for _i := range hints { 1175 _va[_i] = hints[_i] 1176 } 1177 var _ca []interface{} 1178 _ca = append(_ca, ctx, schemeName) 1179 _ca = append(_ca, _va...) 1180 ret := _m.Called(_ca...) 1181 1182 var r0 *store.LayeredStoreSupplierResult 1183 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 1184 r0 = rf(ctx, schemeName, hints...) 1185 } else { 1186 if ret.Get(0) != nil { 1187 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 1188 } 1189 } 1190 1191 return r0 1192 } 1193 1194 // SchemePermanentDeleteAll provides a mock function with given fields: ctx, hints 1195 func (_m *LayeredStoreDatabaseLayer) SchemePermanentDeleteAll(ctx context.Context, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 1196 _va := make([]interface{}, len(hints)) 1197 for _i := range hints { 1198 _va[_i] = hints[_i] 1199 } 1200 var _ca []interface{} 1201 _ca = append(_ca, ctx) 1202 _ca = append(_ca, _va...) 1203 ret := _m.Called(_ca...) 1204 1205 var r0 *store.LayeredStoreSupplierResult 1206 if rf, ok := ret.Get(0).(func(context.Context, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 1207 r0 = rf(ctx, hints...) 1208 } else { 1209 if ret.Get(0) != nil { 1210 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 1211 } 1212 } 1213 1214 return r0 1215 } 1216 1217 // SchemeSave provides a mock function with given fields: ctx, scheme, hints 1218 func (_m *LayeredStoreDatabaseLayer) SchemeSave(ctx context.Context, scheme *model.Scheme, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 1219 _va := make([]interface{}, len(hints)) 1220 for _i := range hints { 1221 _va[_i] = hints[_i] 1222 } 1223 var _ca []interface{} 1224 _ca = append(_ca, ctx, scheme) 1225 _ca = append(_ca, _va...) 1226 ret := _m.Called(_ca...) 1227 1228 var r0 *store.LayeredStoreSupplierResult 1229 if rf, ok := ret.Get(0).(func(context.Context, *model.Scheme, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 1230 r0 = rf(ctx, scheme, hints...) 1231 } else { 1232 if ret.Get(0) != nil { 1233 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 1234 } 1235 } 1236 1237 return r0 1238 } 1239 1240 // Session provides a mock function with given fields: 1241 func (_m *LayeredStoreDatabaseLayer) Session() store.SessionStore { 1242 ret := _m.Called() 1243 1244 var r0 store.SessionStore 1245 if rf, ok := ret.Get(0).(func() store.SessionStore); ok { 1246 r0 = rf() 1247 } else { 1248 if ret.Get(0) != nil { 1249 r0 = ret.Get(0).(store.SessionStore) 1250 } 1251 } 1252 1253 return r0 1254 } 1255 1256 // SetChainNext provides a mock function with given fields: _a0 1257 func (_m *LayeredStoreDatabaseLayer) SetChainNext(_a0 store.LayeredStoreSupplier) { 1258 _m.Called(_a0) 1259 } 1260 1261 // Status provides a mock function with given fields: 1262 func (_m *LayeredStoreDatabaseLayer) Status() store.StatusStore { 1263 ret := _m.Called() 1264 1265 var r0 store.StatusStore 1266 if rf, ok := ret.Get(0).(func() store.StatusStore); ok { 1267 r0 = rf() 1268 } else { 1269 if ret.Get(0) != nil { 1270 r0 = ret.Get(0).(store.StatusStore) 1271 } 1272 } 1273 1274 return r0 1275 } 1276 1277 // System provides a mock function with given fields: 1278 func (_m *LayeredStoreDatabaseLayer) System() store.SystemStore { 1279 ret := _m.Called() 1280 1281 var r0 store.SystemStore 1282 if rf, ok := ret.Get(0).(func() store.SystemStore); ok { 1283 r0 = rf() 1284 } else { 1285 if ret.Get(0) != nil { 1286 r0 = ret.Get(0).(store.SystemStore) 1287 } 1288 } 1289 1290 return r0 1291 } 1292 1293 // Team provides a mock function with given fields: 1294 func (_m *LayeredStoreDatabaseLayer) Team() store.TeamStore { 1295 ret := _m.Called() 1296 1297 var r0 store.TeamStore 1298 if rf, ok := ret.Get(0).(func() store.TeamStore); ok { 1299 r0 = rf() 1300 } else { 1301 if ret.Get(0) != nil { 1302 r0 = ret.Get(0).(store.TeamStore) 1303 } 1304 } 1305 1306 return r0 1307 } 1308 1309 // TermsOfService provides a mock function with given fields: 1310 func (_m *LayeredStoreDatabaseLayer) TermsOfService() store.TermsOfServiceStore { 1311 ret := _m.Called() 1312 1313 var r0 store.TermsOfServiceStore 1314 if rf, ok := ret.Get(0).(func() store.TermsOfServiceStore); ok { 1315 r0 = rf() 1316 } else { 1317 if ret.Get(0) != nil { 1318 r0 = ret.Get(0).(store.TermsOfServiceStore) 1319 } 1320 } 1321 1322 return r0 1323 } 1324 1325 // Token provides a mock function with given fields: 1326 func (_m *LayeredStoreDatabaseLayer) Token() store.TokenStore { 1327 ret := _m.Called() 1328 1329 var r0 store.TokenStore 1330 if rf, ok := ret.Get(0).(func() store.TokenStore); ok { 1331 r0 = rf() 1332 } else { 1333 if ret.Get(0) != nil { 1334 r0 = ret.Get(0).(store.TokenStore) 1335 } 1336 } 1337 1338 return r0 1339 } 1340 1341 // TotalMasterDbConnections provides a mock function with given fields: 1342 func (_m *LayeredStoreDatabaseLayer) TotalMasterDbConnections() int { 1343 ret := _m.Called() 1344 1345 var r0 int 1346 if rf, ok := ret.Get(0).(func() int); ok { 1347 r0 = rf() 1348 } else { 1349 r0 = ret.Get(0).(int) 1350 } 1351 1352 return r0 1353 } 1354 1355 // TotalReadDbConnections provides a mock function with given fields: 1356 func (_m *LayeredStoreDatabaseLayer) TotalReadDbConnections() int { 1357 ret := _m.Called() 1358 1359 var r0 int 1360 if rf, ok := ret.Get(0).(func() int); ok { 1361 r0 = rf() 1362 } else { 1363 r0 = ret.Get(0).(int) 1364 } 1365 1366 return r0 1367 } 1368 1369 // TotalSearchDbConnections provides a mock function with given fields: 1370 func (_m *LayeredStoreDatabaseLayer) TotalSearchDbConnections() int { 1371 ret := _m.Called() 1372 1373 var r0 int 1374 if rf, ok := ret.Get(0).(func() int); ok { 1375 r0 = rf() 1376 } else { 1377 r0 = ret.Get(0).(int) 1378 } 1379 1380 return r0 1381 } 1382 1383 // UnlockFromMaster provides a mock function with given fields: 1384 func (_m *LayeredStoreDatabaseLayer) UnlockFromMaster() { 1385 _m.Called() 1386 } 1387 1388 // User provides a mock function with given fields: 1389 func (_m *LayeredStoreDatabaseLayer) User() store.UserStore { 1390 ret := _m.Called() 1391 1392 var r0 store.UserStore 1393 if rf, ok := ret.Get(0).(func() store.UserStore); ok { 1394 r0 = rf() 1395 } else { 1396 if ret.Get(0) != nil { 1397 r0 = ret.Get(0).(store.UserStore) 1398 } 1399 } 1400 1401 return r0 1402 } 1403 1404 // UserAccessToken provides a mock function with given fields: 1405 func (_m *LayeredStoreDatabaseLayer) UserAccessToken() store.UserAccessTokenStore { 1406 ret := _m.Called() 1407 1408 var r0 store.UserAccessTokenStore 1409 if rf, ok := ret.Get(0).(func() store.UserAccessTokenStore); ok { 1410 r0 = rf() 1411 } else { 1412 if ret.Get(0) != nil { 1413 r0 = ret.Get(0).(store.UserAccessTokenStore) 1414 } 1415 } 1416 1417 return r0 1418 } 1419 1420 // UserTermsOfService provides a mock function with given fields: 1421 func (_m *LayeredStoreDatabaseLayer) UserTermsOfService() store.UserTermsOfServiceStore { 1422 ret := _m.Called() 1423 1424 var r0 store.UserTermsOfServiceStore 1425 if rf, ok := ret.Get(0).(func() store.UserTermsOfServiceStore); ok { 1426 r0 = rf() 1427 } else { 1428 if ret.Get(0) != nil { 1429 r0 = ret.Get(0).(store.UserTermsOfServiceStore) 1430 } 1431 } 1432 1433 return r0 1434 } 1435 1436 // Webhook provides a mock function with given fields: 1437 func (_m *LayeredStoreDatabaseLayer) Webhook() store.WebhookStore { 1438 ret := _m.Called() 1439 1440 var r0 store.WebhookStore 1441 if rf, ok := ret.Get(0).(func() store.WebhookStore); ok { 1442 r0 = rf() 1443 } else { 1444 if ret.Get(0) != nil { 1445 r0 = ret.Get(0).(store.WebhookStore) 1446 } 1447 } 1448 1449 return r0 1450 }