github.com/haalcala/mattermost-server-change-repo/v5@v5.33.2/store/storetest/mocks/Store.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 ( 8 context "context" 9 10 model "github.com/mattermost/mattermost-server/v5/model" 11 mock "github.com/stretchr/testify/mock" 12 13 store "github.com/mattermost/mattermost-server/v5/store" 14 15 time "time" 16 ) 17 18 // Store is an autogenerated mock type for the Store type 19 type Store struct { 20 mock.Mock 21 } 22 23 // Audit provides a mock function with given fields: 24 func (_m *Store) Audit() store.AuditStore { 25 ret := _m.Called() 26 27 var r0 store.AuditStore 28 if rf, ok := ret.Get(0).(func() store.AuditStore); ok { 29 r0 = rf() 30 } else { 31 if ret.Get(0) != nil { 32 r0 = ret.Get(0).(store.AuditStore) 33 } 34 } 35 36 return r0 37 } 38 39 // Bot provides a mock function with given fields: 40 func (_m *Store) Bot() store.BotStore { 41 ret := _m.Called() 42 43 var r0 store.BotStore 44 if rf, ok := ret.Get(0).(func() store.BotStore); ok { 45 r0 = rf() 46 } else { 47 if ret.Get(0) != nil { 48 r0 = ret.Get(0).(store.BotStore) 49 } 50 } 51 52 return r0 53 } 54 55 // Channel provides a mock function with given fields: 56 func (_m *Store) Channel() store.ChannelStore { 57 ret := _m.Called() 58 59 var r0 store.ChannelStore 60 if rf, ok := ret.Get(0).(func() store.ChannelStore); ok { 61 r0 = rf() 62 } else { 63 if ret.Get(0) != nil { 64 r0 = ret.Get(0).(store.ChannelStore) 65 } 66 } 67 68 return r0 69 } 70 71 // ChannelMemberHistory provides a mock function with given fields: 72 func (_m *Store) ChannelMemberHistory() store.ChannelMemberHistoryStore { 73 ret := _m.Called() 74 75 var r0 store.ChannelMemberHistoryStore 76 if rf, ok := ret.Get(0).(func() store.ChannelMemberHistoryStore); ok { 77 r0 = rf() 78 } else { 79 if ret.Get(0) != nil { 80 r0 = ret.Get(0).(store.ChannelMemberHistoryStore) 81 } 82 } 83 84 return r0 85 } 86 87 // CheckIntegrity provides a mock function with given fields: 88 func (_m *Store) CheckIntegrity() <-chan model.IntegrityCheckResult { 89 ret := _m.Called() 90 91 var r0 <-chan model.IntegrityCheckResult 92 if rf, ok := ret.Get(0).(func() <-chan model.IntegrityCheckResult); ok { 93 r0 = rf() 94 } else { 95 if ret.Get(0) != nil { 96 r0 = ret.Get(0).(<-chan model.IntegrityCheckResult) 97 } 98 } 99 100 return r0 101 } 102 103 // Close provides a mock function with given fields: 104 func (_m *Store) Close() { 105 _m.Called() 106 } 107 108 // ClusterDiscovery provides a mock function with given fields: 109 func (_m *Store) ClusterDiscovery() store.ClusterDiscoveryStore { 110 ret := _m.Called() 111 112 var r0 store.ClusterDiscoveryStore 113 if rf, ok := ret.Get(0).(func() store.ClusterDiscoveryStore); ok { 114 r0 = rf() 115 } else { 116 if ret.Get(0) != nil { 117 r0 = ret.Get(0).(store.ClusterDiscoveryStore) 118 } 119 } 120 121 return r0 122 } 123 124 // Command provides a mock function with given fields: 125 func (_m *Store) Command() store.CommandStore { 126 ret := _m.Called() 127 128 var r0 store.CommandStore 129 if rf, ok := ret.Get(0).(func() store.CommandStore); ok { 130 r0 = rf() 131 } else { 132 if ret.Get(0) != nil { 133 r0 = ret.Get(0).(store.CommandStore) 134 } 135 } 136 137 return r0 138 } 139 140 // CommandWebhook provides a mock function with given fields: 141 func (_m *Store) CommandWebhook() store.CommandWebhookStore { 142 ret := _m.Called() 143 144 var r0 store.CommandWebhookStore 145 if rf, ok := ret.Get(0).(func() store.CommandWebhookStore); ok { 146 r0 = rf() 147 } else { 148 if ret.Get(0) != nil { 149 r0 = ret.Get(0).(store.CommandWebhookStore) 150 } 151 } 152 153 return r0 154 } 155 156 // Compliance provides a mock function with given fields: 157 func (_m *Store) Compliance() store.ComplianceStore { 158 ret := _m.Called() 159 160 var r0 store.ComplianceStore 161 if rf, ok := ret.Get(0).(func() store.ComplianceStore); ok { 162 r0 = rf() 163 } else { 164 if ret.Get(0) != nil { 165 r0 = ret.Get(0).(store.ComplianceStore) 166 } 167 } 168 169 return r0 170 } 171 172 // Context provides a mock function with given fields: 173 func (_m *Store) Context() context.Context { 174 ret := _m.Called() 175 176 var r0 context.Context 177 if rf, ok := ret.Get(0).(func() context.Context); ok { 178 r0 = rf() 179 } else { 180 if ret.Get(0) != nil { 181 r0 = ret.Get(0).(context.Context) 182 } 183 } 184 185 return r0 186 } 187 188 // DropAllTables provides a mock function with given fields: 189 func (_m *Store) DropAllTables() { 190 _m.Called() 191 } 192 193 // Emoji provides a mock function with given fields: 194 func (_m *Store) Emoji() store.EmojiStore { 195 ret := _m.Called() 196 197 var r0 store.EmojiStore 198 if rf, ok := ret.Get(0).(func() store.EmojiStore); ok { 199 r0 = rf() 200 } else { 201 if ret.Get(0) != nil { 202 r0 = ret.Get(0).(store.EmojiStore) 203 } 204 } 205 206 return r0 207 } 208 209 // FileInfo provides a mock function with given fields: 210 func (_m *Store) FileInfo() store.FileInfoStore { 211 ret := _m.Called() 212 213 var r0 store.FileInfoStore 214 if rf, ok := ret.Get(0).(func() store.FileInfoStore); ok { 215 r0 = rf() 216 } else { 217 if ret.Get(0) != nil { 218 r0 = ret.Get(0).(store.FileInfoStore) 219 } 220 } 221 222 return r0 223 } 224 225 // GetCurrentSchemaVersion provides a mock function with given fields: 226 func (_m *Store) GetCurrentSchemaVersion() string { 227 ret := _m.Called() 228 229 var r0 string 230 if rf, ok := ret.Get(0).(func() string); ok { 231 r0 = rf() 232 } else { 233 r0 = ret.Get(0).(string) 234 } 235 236 return r0 237 } 238 239 // GetDbVersion provides a mock function with given fields: numerical 240 func (_m *Store) GetDbVersion(numerical bool) (string, error) { 241 ret := _m.Called(numerical) 242 243 var r0 string 244 if rf, ok := ret.Get(0).(func(bool) string); ok { 245 r0 = rf(numerical) 246 } else { 247 r0 = ret.Get(0).(string) 248 } 249 250 var r1 error 251 if rf, ok := ret.Get(1).(func(bool) error); ok { 252 r1 = rf(numerical) 253 } else { 254 r1 = ret.Error(1) 255 } 256 257 return r0, r1 258 } 259 260 // Group provides a mock function with given fields: 261 func (_m *Store) Group() store.GroupStore { 262 ret := _m.Called() 263 264 var r0 store.GroupStore 265 if rf, ok := ret.Get(0).(func() store.GroupStore); ok { 266 r0 = rf() 267 } else { 268 if ret.Get(0) != nil { 269 r0 = ret.Get(0).(store.GroupStore) 270 } 271 } 272 273 return r0 274 } 275 276 // Job provides a mock function with given fields: 277 func (_m *Store) Job() store.JobStore { 278 ret := _m.Called() 279 280 var r0 store.JobStore 281 if rf, ok := ret.Get(0).(func() store.JobStore); ok { 282 r0 = rf() 283 } else { 284 if ret.Get(0) != nil { 285 r0 = ret.Get(0).(store.JobStore) 286 } 287 } 288 289 return r0 290 } 291 292 // License provides a mock function with given fields: 293 func (_m *Store) License() store.LicenseStore { 294 ret := _m.Called() 295 296 var r0 store.LicenseStore 297 if rf, ok := ret.Get(0).(func() store.LicenseStore); ok { 298 r0 = rf() 299 } else { 300 if ret.Get(0) != nil { 301 r0 = ret.Get(0).(store.LicenseStore) 302 } 303 } 304 305 return r0 306 } 307 308 // LinkMetadata provides a mock function with given fields: 309 func (_m *Store) LinkMetadata() store.LinkMetadataStore { 310 ret := _m.Called() 311 312 var r0 store.LinkMetadataStore 313 if rf, ok := ret.Get(0).(func() store.LinkMetadataStore); ok { 314 r0 = rf() 315 } else { 316 if ret.Get(0) != nil { 317 r0 = ret.Get(0).(store.LinkMetadataStore) 318 } 319 } 320 321 return r0 322 } 323 324 // LockToMaster provides a mock function with given fields: 325 func (_m *Store) LockToMaster() { 326 _m.Called() 327 } 328 329 // MarkSystemRanUnitTests provides a mock function with given fields: 330 func (_m *Store) MarkSystemRanUnitTests() { 331 _m.Called() 332 } 333 334 // OAuth provides a mock function with given fields: 335 func (_m *Store) OAuth() store.OAuthStore { 336 ret := _m.Called() 337 338 var r0 store.OAuthStore 339 if rf, ok := ret.Get(0).(func() store.OAuthStore); ok { 340 r0 = rf() 341 } else { 342 if ret.Get(0) != nil { 343 r0 = ret.Get(0).(store.OAuthStore) 344 } 345 } 346 347 return r0 348 } 349 350 // Plugin provides a mock function with given fields: 351 func (_m *Store) Plugin() store.PluginStore { 352 ret := _m.Called() 353 354 var r0 store.PluginStore 355 if rf, ok := ret.Get(0).(func() store.PluginStore); ok { 356 r0 = rf() 357 } else { 358 if ret.Get(0) != nil { 359 r0 = ret.Get(0).(store.PluginStore) 360 } 361 } 362 363 return r0 364 } 365 366 // Post provides a mock function with given fields: 367 func (_m *Store) Post() store.PostStore { 368 ret := _m.Called() 369 370 var r0 store.PostStore 371 if rf, ok := ret.Get(0).(func() store.PostStore); ok { 372 r0 = rf() 373 } else { 374 if ret.Get(0) != nil { 375 r0 = ret.Get(0).(store.PostStore) 376 } 377 } 378 379 return r0 380 } 381 382 // Preference provides a mock function with given fields: 383 func (_m *Store) Preference() store.PreferenceStore { 384 ret := _m.Called() 385 386 var r0 store.PreferenceStore 387 if rf, ok := ret.Get(0).(func() store.PreferenceStore); ok { 388 r0 = rf() 389 } else { 390 if ret.Get(0) != nil { 391 r0 = ret.Get(0).(store.PreferenceStore) 392 } 393 } 394 395 return r0 396 } 397 398 // ProductNotices provides a mock function with given fields: 399 func (_m *Store) ProductNotices() store.ProductNoticesStore { 400 ret := _m.Called() 401 402 var r0 store.ProductNoticesStore 403 if rf, ok := ret.Get(0).(func() store.ProductNoticesStore); ok { 404 r0 = rf() 405 } else { 406 if ret.Get(0) != nil { 407 r0 = ret.Get(0).(store.ProductNoticesStore) 408 } 409 } 410 411 return r0 412 } 413 414 // Reaction provides a mock function with given fields: 415 func (_m *Store) Reaction() store.ReactionStore { 416 ret := _m.Called() 417 418 var r0 store.ReactionStore 419 if rf, ok := ret.Get(0).(func() store.ReactionStore); ok { 420 r0 = rf() 421 } else { 422 if ret.Get(0) != nil { 423 r0 = ret.Get(0).(store.ReactionStore) 424 } 425 } 426 427 return r0 428 } 429 430 // RecycleDBConnections provides a mock function with given fields: d 431 func (_m *Store) RecycleDBConnections(d time.Duration) { 432 _m.Called(d) 433 } 434 435 // Role provides a mock function with given fields: 436 func (_m *Store) Role() store.RoleStore { 437 ret := _m.Called() 438 439 var r0 store.RoleStore 440 if rf, ok := ret.Get(0).(func() store.RoleStore); ok { 441 r0 = rf() 442 } else { 443 if ret.Get(0) != nil { 444 r0 = ret.Get(0).(store.RoleStore) 445 } 446 } 447 448 return r0 449 } 450 451 // Scheme provides a mock function with given fields: 452 func (_m *Store) Scheme() store.SchemeStore { 453 ret := _m.Called() 454 455 var r0 store.SchemeStore 456 if rf, ok := ret.Get(0).(func() store.SchemeStore); ok { 457 r0 = rf() 458 } else { 459 if ret.Get(0) != nil { 460 r0 = ret.Get(0).(store.SchemeStore) 461 } 462 } 463 464 return r0 465 } 466 467 // Session provides a mock function with given fields: 468 func (_m *Store) Session() store.SessionStore { 469 ret := _m.Called() 470 471 var r0 store.SessionStore 472 if rf, ok := ret.Get(0).(func() store.SessionStore); ok { 473 r0 = rf() 474 } else { 475 if ret.Get(0) != nil { 476 r0 = ret.Get(0).(store.SessionStore) 477 } 478 } 479 480 return r0 481 } 482 483 // SetContext provides a mock function with given fields: _a0 484 func (_m *Store) SetContext(_a0 context.Context) { 485 _m.Called(_a0) 486 } 487 488 // Status provides a mock function with given fields: 489 func (_m *Store) Status() store.StatusStore { 490 ret := _m.Called() 491 492 var r0 store.StatusStore 493 if rf, ok := ret.Get(0).(func() store.StatusStore); ok { 494 r0 = rf() 495 } else { 496 if ret.Get(0) != nil { 497 r0 = ret.Get(0).(store.StatusStore) 498 } 499 } 500 501 return r0 502 } 503 504 // System provides a mock function with given fields: 505 func (_m *Store) System() store.SystemStore { 506 ret := _m.Called() 507 508 var r0 store.SystemStore 509 if rf, ok := ret.Get(0).(func() store.SystemStore); ok { 510 r0 = rf() 511 } else { 512 if ret.Get(0) != nil { 513 r0 = ret.Get(0).(store.SystemStore) 514 } 515 } 516 517 return r0 518 } 519 520 // Team provides a mock function with given fields: 521 func (_m *Store) Team() store.TeamStore { 522 ret := _m.Called() 523 524 var r0 store.TeamStore 525 if rf, ok := ret.Get(0).(func() store.TeamStore); ok { 526 r0 = rf() 527 } else { 528 if ret.Get(0) != nil { 529 r0 = ret.Get(0).(store.TeamStore) 530 } 531 } 532 533 return r0 534 } 535 536 // TermsOfService provides a mock function with given fields: 537 func (_m *Store) TermsOfService() store.TermsOfServiceStore { 538 ret := _m.Called() 539 540 var r0 store.TermsOfServiceStore 541 if rf, ok := ret.Get(0).(func() store.TermsOfServiceStore); ok { 542 r0 = rf() 543 } else { 544 if ret.Get(0) != nil { 545 r0 = ret.Get(0).(store.TermsOfServiceStore) 546 } 547 } 548 549 return r0 550 } 551 552 // Thread provides a mock function with given fields: 553 func (_m *Store) Thread() store.ThreadStore { 554 ret := _m.Called() 555 556 var r0 store.ThreadStore 557 if rf, ok := ret.Get(0).(func() store.ThreadStore); ok { 558 r0 = rf() 559 } else { 560 if ret.Get(0) != nil { 561 r0 = ret.Get(0).(store.ThreadStore) 562 } 563 } 564 565 return r0 566 } 567 568 // Token provides a mock function with given fields: 569 func (_m *Store) Token() store.TokenStore { 570 ret := _m.Called() 571 572 var r0 store.TokenStore 573 if rf, ok := ret.Get(0).(func() store.TokenStore); ok { 574 r0 = rf() 575 } else { 576 if ret.Get(0) != nil { 577 r0 = ret.Get(0).(store.TokenStore) 578 } 579 } 580 581 return r0 582 } 583 584 // TotalMasterDbConnections provides a mock function with given fields: 585 func (_m *Store) TotalMasterDbConnections() int { 586 ret := _m.Called() 587 588 var r0 int 589 if rf, ok := ret.Get(0).(func() int); ok { 590 r0 = rf() 591 } else { 592 r0 = ret.Get(0).(int) 593 } 594 595 return r0 596 } 597 598 // TotalReadDbConnections provides a mock function with given fields: 599 func (_m *Store) TotalReadDbConnections() int { 600 ret := _m.Called() 601 602 var r0 int 603 if rf, ok := ret.Get(0).(func() int); ok { 604 r0 = rf() 605 } else { 606 r0 = ret.Get(0).(int) 607 } 608 609 return r0 610 } 611 612 // TotalSearchDbConnections provides a mock function with given fields: 613 func (_m *Store) TotalSearchDbConnections() int { 614 ret := _m.Called() 615 616 var r0 int 617 if rf, ok := ret.Get(0).(func() int); ok { 618 r0 = rf() 619 } else { 620 r0 = ret.Get(0).(int) 621 } 622 623 return r0 624 } 625 626 // UnlockFromMaster provides a mock function with given fields: 627 func (_m *Store) UnlockFromMaster() { 628 _m.Called() 629 } 630 631 // UploadSession provides a mock function with given fields: 632 func (_m *Store) UploadSession() store.UploadSessionStore { 633 ret := _m.Called() 634 635 var r0 store.UploadSessionStore 636 if rf, ok := ret.Get(0).(func() store.UploadSessionStore); ok { 637 r0 = rf() 638 } else { 639 if ret.Get(0) != nil { 640 r0 = ret.Get(0).(store.UploadSessionStore) 641 } 642 } 643 644 return r0 645 } 646 647 // User provides a mock function with given fields: 648 func (_m *Store) User() store.UserStore { 649 ret := _m.Called() 650 651 var r0 store.UserStore 652 if rf, ok := ret.Get(0).(func() store.UserStore); ok { 653 r0 = rf() 654 } else { 655 if ret.Get(0) != nil { 656 r0 = ret.Get(0).(store.UserStore) 657 } 658 } 659 660 return r0 661 } 662 663 // UserAccessToken provides a mock function with given fields: 664 func (_m *Store) UserAccessToken() store.UserAccessTokenStore { 665 ret := _m.Called() 666 667 var r0 store.UserAccessTokenStore 668 if rf, ok := ret.Get(0).(func() store.UserAccessTokenStore); ok { 669 r0 = rf() 670 } else { 671 if ret.Get(0) != nil { 672 r0 = ret.Get(0).(store.UserAccessTokenStore) 673 } 674 } 675 676 return r0 677 } 678 679 // UserTermsOfService provides a mock function with given fields: 680 func (_m *Store) UserTermsOfService() store.UserTermsOfServiceStore { 681 ret := _m.Called() 682 683 var r0 store.UserTermsOfServiceStore 684 if rf, ok := ret.Get(0).(func() store.UserTermsOfServiceStore); ok { 685 r0 = rf() 686 } else { 687 if ret.Get(0) != nil { 688 r0 = ret.Get(0).(store.UserTermsOfServiceStore) 689 } 690 } 691 692 return r0 693 } 694 695 // Webhook provides a mock function with given fields: 696 func (_m *Store) Webhook() store.WebhookStore { 697 ret := _m.Called() 698 699 var r0 store.WebhookStore 700 if rf, ok := ret.Get(0).(func() store.WebhookStore); ok { 701 r0 = rf() 702 } else { 703 if ret.Get(0) != nil { 704 r0 = ret.Get(0).(store.WebhookStore) 705 } 706 } 707 708 return r0 709 }