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