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