github.com/levb/mattermost-server@v5.3.1+incompatible/store/storetest/mocks/ChannelStore.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 mock "github.com/stretchr/testify/mock" 8 import model "github.com/mattermost/mattermost-server/model" 9 import store "github.com/mattermost/mattermost-server/store" 10 11 // ChannelStore is an autogenerated mock type for the ChannelStore type 12 type ChannelStore struct { 13 mock.Mock 14 } 15 16 // AnalyticsDeletedTypeCount provides a mock function with given fields: teamId, channelType 17 func (_m *ChannelStore) AnalyticsDeletedTypeCount(teamId string, channelType string) store.StoreChannel { 18 ret := _m.Called(teamId, channelType) 19 20 var r0 store.StoreChannel 21 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 22 r0 = rf(teamId, channelType) 23 } else { 24 if ret.Get(0) != nil { 25 r0 = ret.Get(0).(store.StoreChannel) 26 } 27 } 28 29 return r0 30 } 31 32 // AnalyticsTypeCount provides a mock function with given fields: teamId, channelType 33 func (_m *ChannelStore) AnalyticsTypeCount(teamId string, channelType string) store.StoreChannel { 34 ret := _m.Called(teamId, channelType) 35 36 var r0 store.StoreChannel 37 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 38 r0 = rf(teamId, channelType) 39 } else { 40 if ret.Get(0) != nil { 41 r0 = ret.Get(0).(store.StoreChannel) 42 } 43 } 44 45 return r0 46 } 47 48 // AutocompleteInTeam provides a mock function with given fields: teamId, term, includeDeleted 49 func (_m *ChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) store.StoreChannel { 50 ret := _m.Called(teamId, term, includeDeleted) 51 52 var r0 store.StoreChannel 53 if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok { 54 r0 = rf(teamId, term, includeDeleted) 55 } else { 56 if ret.Get(0) != nil { 57 r0 = ret.Get(0).(store.StoreChannel) 58 } 59 } 60 61 return r0 62 } 63 64 // ClearAllCustomRoleAssignments provides a mock function with given fields: 65 func (_m *ChannelStore) ClearAllCustomRoleAssignments() store.StoreChannel { 66 ret := _m.Called() 67 68 var r0 store.StoreChannel 69 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 70 r0 = rf() 71 } else { 72 if ret.Get(0) != nil { 73 r0 = ret.Get(0).(store.StoreChannel) 74 } 75 } 76 77 return r0 78 } 79 80 // ClearCaches provides a mock function with given fields: 81 func (_m *ChannelStore) ClearCaches() { 82 _m.Called() 83 } 84 85 // CreateDirectChannel provides a mock function with given fields: userId, otherUserId 86 func (_m *ChannelStore) CreateDirectChannel(userId string, otherUserId string) store.StoreChannel { 87 ret := _m.Called(userId, otherUserId) 88 89 var r0 store.StoreChannel 90 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 91 r0 = rf(userId, otherUserId) 92 } else { 93 if ret.Get(0) != nil { 94 r0 = ret.Get(0).(store.StoreChannel) 95 } 96 } 97 98 return r0 99 } 100 101 // Delete provides a mock function with given fields: channelId, time 102 func (_m *ChannelStore) Delete(channelId string, time int64) store.StoreChannel { 103 ret := _m.Called(channelId, time) 104 105 var r0 store.StoreChannel 106 if rf, ok := ret.Get(0).(func(string, int64) store.StoreChannel); ok { 107 r0 = rf(channelId, time) 108 } else { 109 if ret.Get(0) != nil { 110 r0 = ret.Get(0).(store.StoreChannel) 111 } 112 } 113 114 return r0 115 } 116 117 // Get provides a mock function with given fields: id, allowFromCache 118 func (_m *ChannelStore) Get(id string, allowFromCache bool) store.StoreChannel { 119 ret := _m.Called(id, allowFromCache) 120 121 var r0 store.StoreChannel 122 if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok { 123 r0 = rf(id, allowFromCache) 124 } else { 125 if ret.Get(0) != nil { 126 r0 = ret.Get(0).(store.StoreChannel) 127 } 128 } 129 130 return r0 131 } 132 133 // GetAll provides a mock function with given fields: teamId 134 func (_m *ChannelStore) GetAll(teamId string) store.StoreChannel { 135 ret := _m.Called(teamId) 136 137 var r0 store.StoreChannel 138 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 139 r0 = rf(teamId) 140 } else { 141 if ret.Get(0) != nil { 142 r0 = ret.Get(0).(store.StoreChannel) 143 } 144 } 145 146 return r0 147 } 148 149 // GetAllChannelMembersForUser provides a mock function with given fields: userId, allowFromCache, includeDeleted 150 func (_m *ChannelStore) GetAllChannelMembersForUser(userId string, allowFromCache bool, includeDeleted bool) store.StoreChannel { 151 ret := _m.Called(userId, allowFromCache, includeDeleted) 152 153 var r0 store.StoreChannel 154 if rf, ok := ret.Get(0).(func(string, bool, bool) store.StoreChannel); ok { 155 r0 = rf(userId, allowFromCache, includeDeleted) 156 } else { 157 if ret.Get(0) != nil { 158 r0 = ret.Get(0).(store.StoreChannel) 159 } 160 } 161 162 return r0 163 } 164 165 // GetAllChannelMembersNotifyPropsForChannel provides a mock function with given fields: channelId, allowFromCache 166 func (_m *ChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) store.StoreChannel { 167 ret := _m.Called(channelId, allowFromCache) 168 169 var r0 store.StoreChannel 170 if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok { 171 r0 = rf(channelId, allowFromCache) 172 } else { 173 if ret.Get(0) != nil { 174 r0 = ret.Get(0).(store.StoreChannel) 175 } 176 } 177 178 return r0 179 } 180 181 // GetByName provides a mock function with given fields: team_id, name, allowFromCache 182 func (_m *ChannelStore) GetByName(team_id string, name string, allowFromCache bool) store.StoreChannel { 183 ret := _m.Called(team_id, name, allowFromCache) 184 185 var r0 store.StoreChannel 186 if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok { 187 r0 = rf(team_id, name, allowFromCache) 188 } else { 189 if ret.Get(0) != nil { 190 r0 = ret.Get(0).(store.StoreChannel) 191 } 192 } 193 194 return r0 195 } 196 197 // GetByNameIncludeDeleted provides a mock function with given fields: team_id, name, allowFromCache 198 func (_m *ChannelStore) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) store.StoreChannel { 199 ret := _m.Called(team_id, name, allowFromCache) 200 201 var r0 store.StoreChannel 202 if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok { 203 r0 = rf(team_id, name, allowFromCache) 204 } else { 205 if ret.Get(0) != nil { 206 r0 = ret.Get(0).(store.StoreChannel) 207 } 208 } 209 210 return r0 211 } 212 213 // GetByNames provides a mock function with given fields: team_id, names, allowFromCache 214 func (_m *ChannelStore) GetByNames(team_id string, names []string, allowFromCache bool) store.StoreChannel { 215 ret := _m.Called(team_id, names, allowFromCache) 216 217 var r0 store.StoreChannel 218 if rf, ok := ret.Get(0).(func(string, []string, bool) store.StoreChannel); ok { 219 r0 = rf(team_id, names, allowFromCache) 220 } else { 221 if ret.Get(0) != nil { 222 r0 = ret.Get(0).(store.StoreChannel) 223 } 224 } 225 226 return r0 227 } 228 229 // GetChannelCounts provides a mock function with given fields: teamId, userId 230 func (_m *ChannelStore) GetChannelCounts(teamId string, userId string) store.StoreChannel { 231 ret := _m.Called(teamId, userId) 232 233 var r0 store.StoreChannel 234 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 235 r0 = rf(teamId, userId) 236 } else { 237 if ret.Get(0) != nil { 238 r0 = ret.Get(0).(store.StoreChannel) 239 } 240 } 241 242 return r0 243 } 244 245 // GetChannelUnread provides a mock function with given fields: channelId, userId 246 func (_m *ChannelStore) GetChannelUnread(channelId string, userId string) store.StoreChannel { 247 ret := _m.Called(channelId, userId) 248 249 var r0 store.StoreChannel 250 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 251 r0 = rf(channelId, userId) 252 } else { 253 if ret.Get(0) != nil { 254 r0 = ret.Get(0).(store.StoreChannel) 255 } 256 } 257 258 return r0 259 } 260 261 // GetChannels provides a mock function with given fields: teamId, userId, includeDeleted 262 func (_m *ChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) store.StoreChannel { 263 ret := _m.Called(teamId, userId, includeDeleted) 264 265 var r0 store.StoreChannel 266 if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok { 267 r0 = rf(teamId, userId, includeDeleted) 268 } else { 269 if ret.Get(0) != nil { 270 r0 = ret.Get(0).(store.StoreChannel) 271 } 272 } 273 274 return r0 275 } 276 277 // GetChannelsByScheme provides a mock function with given fields: schemeId, offset, limit 278 func (_m *ChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) store.StoreChannel { 279 ret := _m.Called(schemeId, offset, limit) 280 281 var r0 store.StoreChannel 282 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 283 r0 = rf(schemeId, offset, limit) 284 } else { 285 if ret.Get(0) != nil { 286 r0 = ret.Get(0).(store.StoreChannel) 287 } 288 } 289 290 return r0 291 } 292 293 // GetDeleted provides a mock function with given fields: team_id, offset, limit 294 func (_m *ChannelStore) GetDeleted(team_id string, offset int, limit int) store.StoreChannel { 295 ret := _m.Called(team_id, offset, limit) 296 297 var r0 store.StoreChannel 298 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 299 r0 = rf(team_id, offset, limit) 300 } else { 301 if ret.Get(0) != nil { 302 r0 = ret.Get(0).(store.StoreChannel) 303 } 304 } 305 306 return r0 307 } 308 309 // GetDeletedByName provides a mock function with given fields: team_id, name 310 func (_m *ChannelStore) GetDeletedByName(team_id string, name string) store.StoreChannel { 311 ret := _m.Called(team_id, name) 312 313 var r0 store.StoreChannel 314 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 315 r0 = rf(team_id, name) 316 } else { 317 if ret.Get(0) != nil { 318 r0 = ret.Get(0).(store.StoreChannel) 319 } 320 } 321 322 return r0 323 } 324 325 // GetForPost provides a mock function with given fields: postId 326 func (_m *ChannelStore) GetForPost(postId string) store.StoreChannel { 327 ret := _m.Called(postId) 328 329 var r0 store.StoreChannel 330 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 331 r0 = rf(postId) 332 } else { 333 if ret.Get(0) != nil { 334 r0 = ret.Get(0).(store.StoreChannel) 335 } 336 } 337 338 return r0 339 } 340 341 // GetFromMaster provides a mock function with given fields: id 342 func (_m *ChannelStore) GetFromMaster(id string) store.StoreChannel { 343 ret := _m.Called(id) 344 345 var r0 store.StoreChannel 346 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 347 r0 = rf(id) 348 } else { 349 if ret.Get(0) != nil { 350 r0 = ret.Get(0).(store.StoreChannel) 351 } 352 } 353 354 return r0 355 } 356 357 // GetMember provides a mock function with given fields: channelId, userId 358 func (_m *ChannelStore) GetMember(channelId string, userId string) store.StoreChannel { 359 ret := _m.Called(channelId, userId) 360 361 var r0 store.StoreChannel 362 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 363 r0 = rf(channelId, userId) 364 } else { 365 if ret.Get(0) != nil { 366 r0 = ret.Get(0).(store.StoreChannel) 367 } 368 } 369 370 return r0 371 } 372 373 // GetMemberCount provides a mock function with given fields: channelId, allowFromCache 374 func (_m *ChannelStore) GetMemberCount(channelId string, allowFromCache bool) store.StoreChannel { 375 ret := _m.Called(channelId, allowFromCache) 376 377 var r0 store.StoreChannel 378 if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok { 379 r0 = rf(channelId, allowFromCache) 380 } else { 381 if ret.Get(0) != nil { 382 r0 = ret.Get(0).(store.StoreChannel) 383 } 384 } 385 386 return r0 387 } 388 389 // GetMemberCountFromCache provides a mock function with given fields: channelId 390 func (_m *ChannelStore) GetMemberCountFromCache(channelId string) int64 { 391 ret := _m.Called(channelId) 392 393 var r0 int64 394 if rf, ok := ret.Get(0).(func(string) int64); ok { 395 r0 = rf(channelId) 396 } else { 397 r0 = ret.Get(0).(int64) 398 } 399 400 return r0 401 } 402 403 // GetMemberForPost provides a mock function with given fields: postId, userId 404 func (_m *ChannelStore) GetMemberForPost(postId string, userId string) store.StoreChannel { 405 ret := _m.Called(postId, userId) 406 407 var r0 store.StoreChannel 408 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 409 r0 = rf(postId, userId) 410 } else { 411 if ret.Get(0) != nil { 412 r0 = ret.Get(0).(store.StoreChannel) 413 } 414 } 415 416 return r0 417 } 418 419 // GetMembers provides a mock function with given fields: channelId, offset, limit 420 func (_m *ChannelStore) GetMembers(channelId string, offset int, limit int) store.StoreChannel { 421 ret := _m.Called(channelId, offset, limit) 422 423 var r0 store.StoreChannel 424 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 425 r0 = rf(channelId, offset, limit) 426 } else { 427 if ret.Get(0) != nil { 428 r0 = ret.Get(0).(store.StoreChannel) 429 } 430 } 431 432 return r0 433 } 434 435 // GetMembersByIds provides a mock function with given fields: channelId, userIds 436 func (_m *ChannelStore) GetMembersByIds(channelId string, userIds []string) store.StoreChannel { 437 ret := _m.Called(channelId, userIds) 438 439 var r0 store.StoreChannel 440 if rf, ok := ret.Get(0).(func(string, []string) store.StoreChannel); ok { 441 r0 = rf(channelId, userIds) 442 } else { 443 if ret.Get(0) != nil { 444 r0 = ret.Get(0).(store.StoreChannel) 445 } 446 } 447 448 return r0 449 } 450 451 // GetMembersForUser provides a mock function with given fields: teamId, userId 452 func (_m *ChannelStore) GetMembersForUser(teamId string, userId string) store.StoreChannel { 453 ret := _m.Called(teamId, userId) 454 455 var r0 store.StoreChannel 456 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 457 r0 = rf(teamId, userId) 458 } else { 459 if ret.Get(0) != nil { 460 r0 = ret.Get(0).(store.StoreChannel) 461 } 462 } 463 464 return r0 465 } 466 467 // GetMoreChannels provides a mock function with given fields: teamId, userId, offset, limit 468 func (_m *ChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) store.StoreChannel { 469 ret := _m.Called(teamId, userId, offset, limit) 470 471 var r0 store.StoreChannel 472 if rf, ok := ret.Get(0).(func(string, string, int, int) store.StoreChannel); ok { 473 r0 = rf(teamId, userId, offset, limit) 474 } else { 475 if ret.Get(0) != nil { 476 r0 = ret.Get(0).(store.StoreChannel) 477 } 478 } 479 480 return r0 481 } 482 483 // GetPinnedPosts provides a mock function with given fields: channelId 484 func (_m *ChannelStore) GetPinnedPosts(channelId string) store.StoreChannel { 485 ret := _m.Called(channelId) 486 487 var r0 store.StoreChannel 488 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 489 r0 = rf(channelId) 490 } else { 491 if ret.Get(0) != nil { 492 r0 = ret.Get(0).(store.StoreChannel) 493 } 494 } 495 496 return r0 497 } 498 499 // GetPublicChannelsByIdsForTeam provides a mock function with given fields: teamId, channelIds 500 func (_m *ChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) store.StoreChannel { 501 ret := _m.Called(teamId, channelIds) 502 503 var r0 store.StoreChannel 504 if rf, ok := ret.Get(0).(func(string, []string) store.StoreChannel); ok { 505 r0 = rf(teamId, channelIds) 506 } else { 507 if ret.Get(0) != nil { 508 r0 = ret.Get(0).(store.StoreChannel) 509 } 510 } 511 512 return r0 513 } 514 515 // GetPublicChannelsForTeam provides a mock function with given fields: teamId, offset, limit 516 func (_m *ChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) store.StoreChannel { 517 ret := _m.Called(teamId, offset, limit) 518 519 var r0 store.StoreChannel 520 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 521 r0 = rf(teamId, offset, limit) 522 } else { 523 if ret.Get(0) != nil { 524 r0 = ret.Get(0).(store.StoreChannel) 525 } 526 } 527 528 return r0 529 } 530 531 // GetTeamChannels provides a mock function with given fields: teamId 532 func (_m *ChannelStore) GetTeamChannels(teamId string) store.StoreChannel { 533 ret := _m.Called(teamId) 534 535 var r0 store.StoreChannel 536 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 537 r0 = rf(teamId) 538 } else { 539 if ret.Get(0) != nil { 540 r0 = ret.Get(0).(store.StoreChannel) 541 } 542 } 543 544 return r0 545 } 546 547 // IncrementMentionCount provides a mock function with given fields: channelId, userId 548 func (_m *ChannelStore) IncrementMentionCount(channelId string, userId string) store.StoreChannel { 549 ret := _m.Called(channelId, userId) 550 551 var r0 store.StoreChannel 552 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 553 r0 = rf(channelId, userId) 554 } else { 555 if ret.Get(0) != nil { 556 r0 = ret.Get(0).(store.StoreChannel) 557 } 558 } 559 560 return r0 561 } 562 563 // InvalidateAllChannelMembersForUser provides a mock function with given fields: userId 564 func (_m *ChannelStore) InvalidateAllChannelMembersForUser(userId string) { 565 _m.Called(userId) 566 } 567 568 // InvalidateCacheForChannelMembersNotifyProps provides a mock function with given fields: channelId 569 func (_m *ChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string) { 570 _m.Called(channelId) 571 } 572 573 // InvalidateChannel provides a mock function with given fields: id 574 func (_m *ChannelStore) InvalidateChannel(id string) { 575 _m.Called(id) 576 } 577 578 // InvalidateChannelByName provides a mock function with given fields: teamId, name 579 func (_m *ChannelStore) InvalidateChannelByName(teamId string, name string) { 580 _m.Called(teamId, name) 581 } 582 583 // InvalidateMemberCount provides a mock function with given fields: channelId 584 func (_m *ChannelStore) InvalidateMemberCount(channelId string) { 585 _m.Called(channelId) 586 } 587 588 // IsUserInChannelUseCache provides a mock function with given fields: userId, channelId 589 func (_m *ChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool { 590 ret := _m.Called(userId, channelId) 591 592 var r0 bool 593 if rf, ok := ret.Get(0).(func(string, string) bool); ok { 594 r0 = rf(userId, channelId) 595 } else { 596 r0 = ret.Get(0).(bool) 597 } 598 599 return r0 600 } 601 602 // MigrateChannelMembers provides a mock function with given fields: fromChannelId, fromUserId 603 func (_m *ChannelStore) MigrateChannelMembers(fromChannelId string, fromUserId string) store.StoreChannel { 604 ret := _m.Called(fromChannelId, fromUserId) 605 606 var r0 store.StoreChannel 607 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 608 r0 = rf(fromChannelId, fromUserId) 609 } else { 610 if ret.Get(0) != nil { 611 r0 = ret.Get(0).(store.StoreChannel) 612 } 613 } 614 615 return r0 616 } 617 618 // PermanentDelete provides a mock function with given fields: channelId 619 func (_m *ChannelStore) PermanentDelete(channelId string) store.StoreChannel { 620 ret := _m.Called(channelId) 621 622 var r0 store.StoreChannel 623 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 624 r0 = rf(channelId) 625 } else { 626 if ret.Get(0) != nil { 627 r0 = ret.Get(0).(store.StoreChannel) 628 } 629 } 630 631 return r0 632 } 633 634 // PermanentDeleteByTeam provides a mock function with given fields: teamId 635 func (_m *ChannelStore) PermanentDeleteByTeam(teamId string) store.StoreChannel { 636 ret := _m.Called(teamId) 637 638 var r0 store.StoreChannel 639 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 640 r0 = rf(teamId) 641 } else { 642 if ret.Get(0) != nil { 643 r0 = ret.Get(0).(store.StoreChannel) 644 } 645 } 646 647 return r0 648 } 649 650 // PermanentDeleteMembersByChannel provides a mock function with given fields: channelId 651 func (_m *ChannelStore) PermanentDeleteMembersByChannel(channelId string) store.StoreChannel { 652 ret := _m.Called(channelId) 653 654 var r0 store.StoreChannel 655 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 656 r0 = rf(channelId) 657 } else { 658 if ret.Get(0) != nil { 659 r0 = ret.Get(0).(store.StoreChannel) 660 } 661 } 662 663 return r0 664 } 665 666 // PermanentDeleteMembersByUser provides a mock function with given fields: userId 667 func (_m *ChannelStore) PermanentDeleteMembersByUser(userId string) store.StoreChannel { 668 ret := _m.Called(userId) 669 670 var r0 store.StoreChannel 671 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 672 r0 = rf(userId) 673 } else { 674 if ret.Get(0) != nil { 675 r0 = ret.Get(0).(store.StoreChannel) 676 } 677 } 678 679 return r0 680 } 681 682 // RemoveMember provides a mock function with given fields: channelId, userId 683 func (_m *ChannelStore) RemoveMember(channelId string, userId string) store.StoreChannel { 684 ret := _m.Called(channelId, userId) 685 686 var r0 store.StoreChannel 687 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 688 r0 = rf(channelId, userId) 689 } else { 690 if ret.Get(0) != nil { 691 r0 = ret.Get(0).(store.StoreChannel) 692 } 693 } 694 695 return r0 696 } 697 698 // ResetAllChannelSchemes provides a mock function with given fields: 699 func (_m *ChannelStore) ResetAllChannelSchemes() store.StoreChannel { 700 ret := _m.Called() 701 702 var r0 store.StoreChannel 703 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 704 r0 = rf() 705 } else { 706 if ret.Get(0) != nil { 707 r0 = ret.Get(0).(store.StoreChannel) 708 } 709 } 710 711 return r0 712 } 713 714 // ResetLastPostAt provides a mock function with given fields: 715 func (_m *ChannelStore) ResetLastPostAt() store.StoreChannel { 716 ret := _m.Called() 717 718 var r0 store.StoreChannel 719 if rf, ok := ret.Get(0).(func() store.StoreChannel); ok { 720 r0 = rf() 721 } else { 722 if ret.Get(0) != nil { 723 r0 = ret.Get(0).(store.StoreChannel) 724 } 725 } 726 727 return r0 728 } 729 730 // Restore provides a mock function with given fields: channelId, time 731 func (_m *ChannelStore) Restore(channelId string, time int64) store.StoreChannel { 732 ret := _m.Called(channelId, time) 733 734 var r0 store.StoreChannel 735 if rf, ok := ret.Get(0).(func(string, int64) store.StoreChannel); ok { 736 r0 = rf(channelId, time) 737 } else { 738 if ret.Get(0) != nil { 739 r0 = ret.Get(0).(store.StoreChannel) 740 } 741 } 742 743 return r0 744 } 745 746 // Save provides a mock function with given fields: channel, maxChannelsPerTeam 747 func (_m *ChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) store.StoreChannel { 748 ret := _m.Called(channel, maxChannelsPerTeam) 749 750 var r0 store.StoreChannel 751 if rf, ok := ret.Get(0).(func(*model.Channel, int64) store.StoreChannel); ok { 752 r0 = rf(channel, maxChannelsPerTeam) 753 } else { 754 if ret.Get(0) != nil { 755 r0 = ret.Get(0).(store.StoreChannel) 756 } 757 } 758 759 return r0 760 } 761 762 // SaveDirectChannel provides a mock function with given fields: channel, member1, member2 763 func (_m *ChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) store.StoreChannel { 764 ret := _m.Called(channel, member1, member2) 765 766 var r0 store.StoreChannel 767 if rf, ok := ret.Get(0).(func(*model.Channel, *model.ChannelMember, *model.ChannelMember) store.StoreChannel); ok { 768 r0 = rf(channel, member1, member2) 769 } else { 770 if ret.Get(0) != nil { 771 r0 = ret.Get(0).(store.StoreChannel) 772 } 773 } 774 775 return r0 776 } 777 778 // SaveMember provides a mock function with given fields: member 779 func (_m *ChannelStore) SaveMember(member *model.ChannelMember) store.StoreChannel { 780 ret := _m.Called(member) 781 782 var r0 store.StoreChannel 783 if rf, ok := ret.Get(0).(func(*model.ChannelMember) store.StoreChannel); ok { 784 r0 = rf(member) 785 } else { 786 if ret.Get(0) != nil { 787 r0 = ret.Get(0).(store.StoreChannel) 788 } 789 } 790 791 return r0 792 } 793 794 // SearchInTeam provides a mock function with given fields: teamId, term, includeDeleted 795 func (_m *ChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) store.StoreChannel { 796 ret := _m.Called(teamId, term, includeDeleted) 797 798 var r0 store.StoreChannel 799 if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok { 800 r0 = rf(teamId, term, includeDeleted) 801 } else { 802 if ret.Get(0) != nil { 803 r0 = ret.Get(0).(store.StoreChannel) 804 } 805 } 806 807 return r0 808 } 809 810 // SearchMore provides a mock function with given fields: userId, teamId, term 811 func (_m *ChannelStore) SearchMore(userId string, teamId string, term string) store.StoreChannel { 812 ret := _m.Called(userId, teamId, term) 813 814 var r0 store.StoreChannel 815 if rf, ok := ret.Get(0).(func(string, string, string) store.StoreChannel); ok { 816 r0 = rf(userId, teamId, term) 817 } else { 818 if ret.Get(0) != nil { 819 r0 = ret.Get(0).(store.StoreChannel) 820 } 821 } 822 823 return r0 824 } 825 826 // SetDeleteAt provides a mock function with given fields: channelId, deleteAt, updateAt 827 func (_m *ChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) store.StoreChannel { 828 ret := _m.Called(channelId, deleteAt, updateAt) 829 830 var r0 store.StoreChannel 831 if rf, ok := ret.Get(0).(func(string, int64, int64) store.StoreChannel); ok { 832 r0 = rf(channelId, deleteAt, updateAt) 833 } else { 834 if ret.Get(0) != nil { 835 r0 = ret.Get(0).(store.StoreChannel) 836 } 837 } 838 839 return r0 840 } 841 842 // Update provides a mock function with given fields: channel 843 func (_m *ChannelStore) Update(channel *model.Channel) store.StoreChannel { 844 ret := _m.Called(channel) 845 846 var r0 store.StoreChannel 847 if rf, ok := ret.Get(0).(func(*model.Channel) store.StoreChannel); ok { 848 r0 = rf(channel) 849 } else { 850 if ret.Get(0) != nil { 851 r0 = ret.Get(0).(store.StoreChannel) 852 } 853 } 854 855 return r0 856 } 857 858 // UpdateLastViewedAt provides a mock function with given fields: channelIds, userId 859 func (_m *ChannelStore) UpdateLastViewedAt(channelIds []string, userId string) store.StoreChannel { 860 ret := _m.Called(channelIds, userId) 861 862 var r0 store.StoreChannel 863 if rf, ok := ret.Get(0).(func([]string, string) store.StoreChannel); ok { 864 r0 = rf(channelIds, userId) 865 } else { 866 if ret.Get(0) != nil { 867 r0 = ret.Get(0).(store.StoreChannel) 868 } 869 } 870 871 return r0 872 } 873 874 // UpdateMember provides a mock function with given fields: member 875 func (_m *ChannelStore) UpdateMember(member *model.ChannelMember) store.StoreChannel { 876 ret := _m.Called(member) 877 878 var r0 store.StoreChannel 879 if rf, ok := ret.Get(0).(func(*model.ChannelMember) store.StoreChannel); ok { 880 r0 = rf(member) 881 } else { 882 if ret.Get(0) != nil { 883 r0 = ret.Get(0).(store.StoreChannel) 884 } 885 } 886 887 return r0 888 }