github.com/masterhung0112/hk_server/v5@v5.0.0-20220302090640-ec71aef15e1c/store/storetest/mocks/ChannelStore.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 // 'Regenerate 4 5 package mocks 6 7 import ( 8 context "context" 9 10 model "github.com/masterhung0112/hk_server/v5/model" 11 mock "github.com/stretchr/testify/mock" 12 13 store "github.com/masterhung0112/hk_server/v5/store" 14 ) 15 16 // ChannelStore is an autogenerated mock type for the ChannelStore type 17 type ChannelStore struct { 18 mock.Mock 19 } 20 21 // AnalyticsDeletedTypeCount provides a mock function with given fields: teamID, channelType 22 func (_m *ChannelStore) AnalyticsDeletedTypeCount(teamID string, channelType string) (int64, error) { 23 ret := _m.Called(teamID, channelType) 24 25 var r0 int64 26 if rf, ok := ret.Get(0).(func(string, string) int64); ok { 27 r0 = rf(teamID, channelType) 28 } else { 29 r0 = ret.Get(0).(int64) 30 } 31 32 var r1 error 33 if rf, ok := ret.Get(1).(func(string, string) error); ok { 34 r1 = rf(teamID, channelType) 35 } else { 36 r1 = ret.Error(1) 37 } 38 39 return r0, r1 40 } 41 42 // AnalyticsTypeCount provides a mock function with given fields: teamID, channelType 43 func (_m *ChannelStore) AnalyticsTypeCount(teamID string, channelType string) (int64, error) { 44 ret := _m.Called(teamID, channelType) 45 46 var r0 int64 47 if rf, ok := ret.Get(0).(func(string, string) int64); ok { 48 r0 = rf(teamID, channelType) 49 } else { 50 r0 = ret.Get(0).(int64) 51 } 52 53 var r1 error 54 if rf, ok := ret.Get(1).(func(string, string) error); ok { 55 r1 = rf(teamID, channelType) 56 } else { 57 r1 = ret.Error(1) 58 } 59 60 return r0, r1 61 } 62 63 // AutocompleteInTeam provides a mock function with given fields: teamID, term, includeDeleted 64 func (_m *ChannelStore) AutocompleteInTeam(teamID string, term string, includeDeleted bool) (*model.ChannelList, error) { 65 ret := _m.Called(teamID, term, includeDeleted) 66 67 var r0 *model.ChannelList 68 if rf, ok := ret.Get(0).(func(string, string, bool) *model.ChannelList); ok { 69 r0 = rf(teamID, term, includeDeleted) 70 } else { 71 if ret.Get(0) != nil { 72 r0 = ret.Get(0).(*model.ChannelList) 73 } 74 } 75 76 var r1 error 77 if rf, ok := ret.Get(1).(func(string, string, bool) error); ok { 78 r1 = rf(teamID, term, includeDeleted) 79 } else { 80 r1 = ret.Error(1) 81 } 82 83 return r0, r1 84 } 85 86 // AutocompleteInTeamForSearch provides a mock function with given fields: teamID, userID, term, includeDeleted 87 func (_m *ChannelStore) AutocompleteInTeamForSearch(teamID string, userID string, term string, includeDeleted bool) (*model.ChannelList, error) { 88 ret := _m.Called(teamID, userID, term, includeDeleted) 89 90 var r0 *model.ChannelList 91 if rf, ok := ret.Get(0).(func(string, string, string, bool) *model.ChannelList); ok { 92 r0 = rf(teamID, userID, term, includeDeleted) 93 } else { 94 if ret.Get(0) != nil { 95 r0 = ret.Get(0).(*model.ChannelList) 96 } 97 } 98 99 var r1 error 100 if rf, ok := ret.Get(1).(func(string, string, string, bool) error); ok { 101 r1 = rf(teamID, userID, term, includeDeleted) 102 } else { 103 r1 = ret.Error(1) 104 } 105 106 return r0, r1 107 } 108 109 // ClearAllCustomRoleAssignments provides a mock function with given fields: 110 func (_m *ChannelStore) ClearAllCustomRoleAssignments() error { 111 ret := _m.Called() 112 113 var r0 error 114 if rf, ok := ret.Get(0).(func() error); ok { 115 r0 = rf() 116 } else { 117 r0 = ret.Error(0) 118 } 119 120 return r0 121 } 122 123 // ClearCaches provides a mock function with given fields: 124 func (_m *ChannelStore) ClearCaches() { 125 _m.Called() 126 } 127 128 // ClearSidebarOnTeamLeave provides a mock function with given fields: userID, teamID 129 func (_m *ChannelStore) ClearSidebarOnTeamLeave(userID string, teamID string) error { 130 ret := _m.Called(userID, teamID) 131 132 var r0 error 133 if rf, ok := ret.Get(0).(func(string, string) error); ok { 134 r0 = rf(userID, teamID) 135 } else { 136 r0 = ret.Error(0) 137 } 138 139 return r0 140 } 141 142 // CountPostsAfter provides a mock function with given fields: channelID, timestamp, userID 143 func (_m *ChannelStore) CountPostsAfter(channelID string, timestamp int64, userID string) (int, int, error) { 144 ret := _m.Called(channelID, timestamp, userID) 145 146 var r0 int 147 if rf, ok := ret.Get(0).(func(string, int64, string) int); ok { 148 r0 = rf(channelID, timestamp, userID) 149 } else { 150 r0 = ret.Get(0).(int) 151 } 152 153 var r1 int 154 if rf, ok := ret.Get(1).(func(string, int64, string) int); ok { 155 r1 = rf(channelID, timestamp, userID) 156 } else { 157 r1 = ret.Get(1).(int) 158 } 159 160 var r2 error 161 if rf, ok := ret.Get(2).(func(string, int64, string) error); ok { 162 r2 = rf(channelID, timestamp, userID) 163 } else { 164 r2 = ret.Error(2) 165 } 166 167 return r0, r1, r2 168 } 169 170 // CreateDirectChannel provides a mock function with given fields: userID, otherUserID, channelOptions 171 func (_m *ChannelStore) CreateDirectChannel(userID *model.User, otherUserID *model.User, channelOptions ...model.ChannelOption) (*model.Channel, error) { 172 _va := make([]interface{}, len(channelOptions)) 173 for _i := range channelOptions { 174 _va[_i] = channelOptions[_i] 175 } 176 var _ca []interface{} 177 _ca = append(_ca, userID, otherUserID) 178 _ca = append(_ca, _va...) 179 ret := _m.Called(_ca...) 180 181 var r0 *model.Channel 182 if rf, ok := ret.Get(0).(func(*model.User, *model.User, ...model.ChannelOption) *model.Channel); ok { 183 r0 = rf(userID, otherUserID, channelOptions...) 184 } else { 185 if ret.Get(0) != nil { 186 r0 = ret.Get(0).(*model.Channel) 187 } 188 } 189 190 var r1 error 191 if rf, ok := ret.Get(1).(func(*model.User, *model.User, ...model.ChannelOption) error); ok { 192 r1 = rf(userID, otherUserID, channelOptions...) 193 } else { 194 r1 = ret.Error(1) 195 } 196 197 return r0, r1 198 } 199 200 // CreateInitialSidebarCategories provides a mock function with given fields: userID, teamID 201 func (_m *ChannelStore) CreateInitialSidebarCategories(userID string, teamID string) (*model.OrderedSidebarCategories, error) { 202 ret := _m.Called(userID, teamID) 203 204 var r0 *model.OrderedSidebarCategories 205 if rf, ok := ret.Get(0).(func(string, string) *model.OrderedSidebarCategories); ok { 206 r0 = rf(userID, teamID) 207 } else { 208 if ret.Get(0) != nil { 209 r0 = ret.Get(0).(*model.OrderedSidebarCategories) 210 } 211 } 212 213 var r1 error 214 if rf, ok := ret.Get(1).(func(string, string) error); ok { 215 r1 = rf(userID, teamID) 216 } else { 217 r1 = ret.Error(1) 218 } 219 220 return r0, r1 221 } 222 223 // CreateSidebarCategory provides a mock function with given fields: userID, teamID, newCategory 224 func (_m *ChannelStore) CreateSidebarCategory(userID string, teamID string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, error) { 225 ret := _m.Called(userID, teamID, newCategory) 226 227 var r0 *model.SidebarCategoryWithChannels 228 if rf, ok := ret.Get(0).(func(string, string, *model.SidebarCategoryWithChannels) *model.SidebarCategoryWithChannels); ok { 229 r0 = rf(userID, teamID, newCategory) 230 } else { 231 if ret.Get(0) != nil { 232 r0 = ret.Get(0).(*model.SidebarCategoryWithChannels) 233 } 234 } 235 236 var r1 error 237 if rf, ok := ret.Get(1).(func(string, string, *model.SidebarCategoryWithChannels) error); ok { 238 r1 = rf(userID, teamID, newCategory) 239 } else { 240 r1 = ret.Error(1) 241 } 242 243 return r0, r1 244 } 245 246 // Delete provides a mock function with given fields: channelID, time 247 func (_m *ChannelStore) Delete(channelID string, time int64) error { 248 ret := _m.Called(channelID, time) 249 250 var r0 error 251 if rf, ok := ret.Get(0).(func(string, int64) error); ok { 252 r0 = rf(channelID, time) 253 } else { 254 r0 = ret.Error(0) 255 } 256 257 return r0 258 } 259 260 // DeleteSidebarCategory provides a mock function with given fields: categoryID 261 func (_m *ChannelStore) DeleteSidebarCategory(categoryID string) error { 262 ret := _m.Called(categoryID) 263 264 var r0 error 265 if rf, ok := ret.Get(0).(func(string) error); ok { 266 r0 = rf(categoryID) 267 } else { 268 r0 = ret.Error(0) 269 } 270 271 return r0 272 } 273 274 // DeleteSidebarChannelsByPreferences provides a mock function with given fields: preferences 275 func (_m *ChannelStore) DeleteSidebarChannelsByPreferences(preferences *model.Preferences) error { 276 ret := _m.Called(preferences) 277 278 var r0 error 279 if rf, ok := ret.Get(0).(func(*model.Preferences) error); ok { 280 r0 = rf(preferences) 281 } else { 282 r0 = ret.Error(0) 283 } 284 285 return r0 286 } 287 288 // Get provides a mock function with given fields: id, allowFromCache 289 func (_m *ChannelStore) Get(id string, allowFromCache bool) (*model.Channel, error) { 290 ret := _m.Called(id, allowFromCache) 291 292 var r0 *model.Channel 293 if rf, ok := ret.Get(0).(func(string, bool) *model.Channel); ok { 294 r0 = rf(id, allowFromCache) 295 } else { 296 if ret.Get(0) != nil { 297 r0 = ret.Get(0).(*model.Channel) 298 } 299 } 300 301 var r1 error 302 if rf, ok := ret.Get(1).(func(string, bool) error); ok { 303 r1 = rf(id, allowFromCache) 304 } else { 305 r1 = ret.Error(1) 306 } 307 308 return r0, r1 309 } 310 311 // GetAll provides a mock function with given fields: teamID 312 func (_m *ChannelStore) GetAll(teamID string) ([]*model.Channel, error) { 313 ret := _m.Called(teamID) 314 315 var r0 []*model.Channel 316 if rf, ok := ret.Get(0).(func(string) []*model.Channel); ok { 317 r0 = rf(teamID) 318 } else { 319 if ret.Get(0) != nil { 320 r0 = ret.Get(0).([]*model.Channel) 321 } 322 } 323 324 var r1 error 325 if rf, ok := ret.Get(1).(func(string) error); ok { 326 r1 = rf(teamID) 327 } else { 328 r1 = ret.Error(1) 329 } 330 331 return r0, r1 332 } 333 334 // GetAllChannelMembersForUser provides a mock function with given fields: userID, allowFromCache, includeDeleted 335 func (_m *ChannelStore) GetAllChannelMembersForUser(userID string, allowFromCache bool, includeDeleted bool) (map[string]string, error) { 336 ret := _m.Called(userID, allowFromCache, includeDeleted) 337 338 var r0 map[string]string 339 if rf, ok := ret.Get(0).(func(string, bool, bool) map[string]string); ok { 340 r0 = rf(userID, allowFromCache, includeDeleted) 341 } else { 342 if ret.Get(0) != nil { 343 r0 = ret.Get(0).(map[string]string) 344 } 345 } 346 347 var r1 error 348 if rf, ok := ret.Get(1).(func(string, bool, bool) error); ok { 349 r1 = rf(userID, allowFromCache, includeDeleted) 350 } else { 351 r1 = ret.Error(1) 352 } 353 354 return r0, r1 355 } 356 357 // GetAllChannelMembersNotifyPropsForChannel provides a mock function with given fields: channelID, allowFromCache 358 func (_m *ChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelID string, allowFromCache bool) (map[string]model.StringMap, error) { 359 ret := _m.Called(channelID, allowFromCache) 360 361 var r0 map[string]model.StringMap 362 if rf, ok := ret.Get(0).(func(string, bool) map[string]model.StringMap); ok { 363 r0 = rf(channelID, allowFromCache) 364 } else { 365 if ret.Get(0) != nil { 366 r0 = ret.Get(0).(map[string]model.StringMap) 367 } 368 } 369 370 var r1 error 371 if rf, ok := ret.Get(1).(func(string, bool) error); ok { 372 r1 = rf(channelID, allowFromCache) 373 } else { 374 r1 = ret.Error(1) 375 } 376 377 return r0, r1 378 } 379 380 // GetAllChannels provides a mock function with given fields: page, perPage, opts 381 func (_m *ChannelStore) GetAllChannels(page int, perPage int, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, error) { 382 ret := _m.Called(page, perPage, opts) 383 384 var r0 *model.ChannelListWithTeamData 385 if rf, ok := ret.Get(0).(func(int, int, store.ChannelSearchOpts) *model.ChannelListWithTeamData); ok { 386 r0 = rf(page, perPage, opts) 387 } else { 388 if ret.Get(0) != nil { 389 r0 = ret.Get(0).(*model.ChannelListWithTeamData) 390 } 391 } 392 393 var r1 error 394 if rf, ok := ret.Get(1).(func(int, int, store.ChannelSearchOpts) error); ok { 395 r1 = rf(page, perPage, opts) 396 } else { 397 r1 = ret.Error(1) 398 } 399 400 return r0, r1 401 } 402 403 // GetAllChannelsCount provides a mock function with given fields: opts 404 func (_m *ChannelStore) GetAllChannelsCount(opts store.ChannelSearchOpts) (int64, error) { 405 ret := _m.Called(opts) 406 407 var r0 int64 408 if rf, ok := ret.Get(0).(func(store.ChannelSearchOpts) int64); ok { 409 r0 = rf(opts) 410 } else { 411 r0 = ret.Get(0).(int64) 412 } 413 414 var r1 error 415 if rf, ok := ret.Get(1).(func(store.ChannelSearchOpts) error); ok { 416 r1 = rf(opts) 417 } else { 418 r1 = ret.Error(1) 419 } 420 421 return r0, r1 422 } 423 424 // GetAllChannelsForExportAfter provides a mock function with given fields: limit, afterID 425 func (_m *ChannelStore) GetAllChannelsForExportAfter(limit int, afterID string) ([]*model.ChannelForExport, error) { 426 ret := _m.Called(limit, afterID) 427 428 var r0 []*model.ChannelForExport 429 if rf, ok := ret.Get(0).(func(int, string) []*model.ChannelForExport); ok { 430 r0 = rf(limit, afterID) 431 } else { 432 if ret.Get(0) != nil { 433 r0 = ret.Get(0).([]*model.ChannelForExport) 434 } 435 } 436 437 var r1 error 438 if rf, ok := ret.Get(1).(func(int, string) error); ok { 439 r1 = rf(limit, afterID) 440 } else { 441 r1 = ret.Error(1) 442 } 443 444 return r0, r1 445 } 446 447 // GetAllDirectChannelsForExportAfter provides a mock function with given fields: limit, afterID 448 func (_m *ChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterID string) ([]*model.DirectChannelForExport, error) { 449 ret := _m.Called(limit, afterID) 450 451 var r0 []*model.DirectChannelForExport 452 if rf, ok := ret.Get(0).(func(int, string) []*model.DirectChannelForExport); ok { 453 r0 = rf(limit, afterID) 454 } else { 455 if ret.Get(0) != nil { 456 r0 = ret.Get(0).([]*model.DirectChannelForExport) 457 } 458 } 459 460 var r1 error 461 if rf, ok := ret.Get(1).(func(int, string) error); ok { 462 r1 = rf(limit, afterID) 463 } else { 464 r1 = ret.Error(1) 465 } 466 467 return r0, r1 468 } 469 470 // GetByName provides a mock function with given fields: team_id, name, allowFromCache 471 func (_m *ChannelStore) GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, error) { 472 ret := _m.Called(team_id, name, allowFromCache) 473 474 var r0 *model.Channel 475 if rf, ok := ret.Get(0).(func(string, string, bool) *model.Channel); ok { 476 r0 = rf(team_id, name, allowFromCache) 477 } else { 478 if ret.Get(0) != nil { 479 r0 = ret.Get(0).(*model.Channel) 480 } 481 } 482 483 var r1 error 484 if rf, ok := ret.Get(1).(func(string, string, bool) error); ok { 485 r1 = rf(team_id, name, allowFromCache) 486 } else { 487 r1 = ret.Error(1) 488 } 489 490 return r0, r1 491 } 492 493 // GetByNameIncludeDeleted provides a mock function with given fields: team_id, name, allowFromCache 494 func (_m *ChannelStore) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, error) { 495 ret := _m.Called(team_id, name, allowFromCache) 496 497 var r0 *model.Channel 498 if rf, ok := ret.Get(0).(func(string, string, bool) *model.Channel); ok { 499 r0 = rf(team_id, name, allowFromCache) 500 } else { 501 if ret.Get(0) != nil { 502 r0 = ret.Get(0).(*model.Channel) 503 } 504 } 505 506 var r1 error 507 if rf, ok := ret.Get(1).(func(string, string, bool) error); ok { 508 r1 = rf(team_id, name, allowFromCache) 509 } else { 510 r1 = ret.Error(1) 511 } 512 513 return r0, r1 514 } 515 516 // GetByNames provides a mock function with given fields: team_id, names, allowFromCache 517 func (_m *ChannelStore) GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, error) { 518 ret := _m.Called(team_id, names, allowFromCache) 519 520 var r0 []*model.Channel 521 if rf, ok := ret.Get(0).(func(string, []string, bool) []*model.Channel); ok { 522 r0 = rf(team_id, names, allowFromCache) 523 } else { 524 if ret.Get(0) != nil { 525 r0 = ret.Get(0).([]*model.Channel) 526 } 527 } 528 529 var r1 error 530 if rf, ok := ret.Get(1).(func(string, []string, bool) error); ok { 531 r1 = rf(team_id, names, allowFromCache) 532 } else { 533 r1 = ret.Error(1) 534 } 535 536 return r0, r1 537 } 538 539 // GetChannelCounts provides a mock function with given fields: teamID, userID 540 func (_m *ChannelStore) GetChannelCounts(teamID string, userID string) (*model.ChannelCounts, error) { 541 ret := _m.Called(teamID, userID) 542 543 var r0 *model.ChannelCounts 544 if rf, ok := ret.Get(0).(func(string, string) *model.ChannelCounts); ok { 545 r0 = rf(teamID, userID) 546 } else { 547 if ret.Get(0) != nil { 548 r0 = ret.Get(0).(*model.ChannelCounts) 549 } 550 } 551 552 var r1 error 553 if rf, ok := ret.Get(1).(func(string, string) error); ok { 554 r1 = rf(teamID, userID) 555 } else { 556 r1 = ret.Error(1) 557 } 558 559 return r0, r1 560 } 561 562 // GetChannelMembersForExport provides a mock function with given fields: userID, teamID 563 func (_m *ChannelStore) GetChannelMembersForExport(userID string, teamID string) ([]*model.ChannelMemberForExport, error) { 564 ret := _m.Called(userID, teamID) 565 566 var r0 []*model.ChannelMemberForExport 567 if rf, ok := ret.Get(0).(func(string, string) []*model.ChannelMemberForExport); ok { 568 r0 = rf(userID, teamID) 569 } else { 570 if ret.Get(0) != nil { 571 r0 = ret.Get(0).([]*model.ChannelMemberForExport) 572 } 573 } 574 575 var r1 error 576 if rf, ok := ret.Get(1).(func(string, string) error); ok { 577 r1 = rf(userID, teamID) 578 } else { 579 r1 = ret.Error(1) 580 } 581 582 return r0, r1 583 } 584 585 // GetChannelMembersTimezones provides a mock function with given fields: channelID 586 func (_m *ChannelStore) GetChannelMembersTimezones(channelID string) ([]model.StringMap, error) { 587 ret := _m.Called(channelID) 588 589 var r0 []model.StringMap 590 if rf, ok := ret.Get(0).(func(string) []model.StringMap); ok { 591 r0 = rf(channelID) 592 } else { 593 if ret.Get(0) != nil { 594 r0 = ret.Get(0).([]model.StringMap) 595 } 596 } 597 598 var r1 error 599 if rf, ok := ret.Get(1).(func(string) error); ok { 600 r1 = rf(channelID) 601 } else { 602 r1 = ret.Error(1) 603 } 604 605 return r0, r1 606 } 607 608 // GetChannelUnread provides a mock function with given fields: channelID, userID 609 func (_m *ChannelStore) GetChannelUnread(channelID string, userID string) (*model.ChannelUnread, error) { 610 ret := _m.Called(channelID, userID) 611 612 var r0 *model.ChannelUnread 613 if rf, ok := ret.Get(0).(func(string, string) *model.ChannelUnread); ok { 614 r0 = rf(channelID, userID) 615 } else { 616 if ret.Get(0) != nil { 617 r0 = ret.Get(0).(*model.ChannelUnread) 618 } 619 } 620 621 var r1 error 622 if rf, ok := ret.Get(1).(func(string, string) error); ok { 623 r1 = rf(channelID, userID) 624 } else { 625 r1 = ret.Error(1) 626 } 627 628 return r0, r1 629 } 630 631 // GetChannels provides a mock function with given fields: teamID, userID, includeDeleted, lastDeleteAt 632 func (_m *ChannelStore) GetChannels(teamID string, userID string, includeDeleted bool, lastDeleteAt int) (*model.ChannelList, error) { 633 ret := _m.Called(teamID, userID, includeDeleted, lastDeleteAt) 634 635 var r0 *model.ChannelList 636 if rf, ok := ret.Get(0).(func(string, string, bool, int) *model.ChannelList); ok { 637 r0 = rf(teamID, userID, includeDeleted, lastDeleteAt) 638 } else { 639 if ret.Get(0) != nil { 640 r0 = ret.Get(0).(*model.ChannelList) 641 } 642 } 643 644 var r1 error 645 if rf, ok := ret.Get(1).(func(string, string, bool, int) error); ok { 646 r1 = rf(teamID, userID, includeDeleted, lastDeleteAt) 647 } else { 648 r1 = ret.Error(1) 649 } 650 651 return r0, r1 652 } 653 654 // GetChannelsBatchForIndexing provides a mock function with given fields: startTime, endTime, limit 655 func (_m *ChannelStore) GetChannelsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Channel, error) { 656 ret := _m.Called(startTime, endTime, limit) 657 658 var r0 []*model.Channel 659 if rf, ok := ret.Get(0).(func(int64, int64, int) []*model.Channel); ok { 660 r0 = rf(startTime, endTime, limit) 661 } else { 662 if ret.Get(0) != nil { 663 r0 = ret.Get(0).([]*model.Channel) 664 } 665 } 666 667 var r1 error 668 if rf, ok := ret.Get(1).(func(int64, int64, int) error); ok { 669 r1 = rf(startTime, endTime, limit) 670 } else { 671 r1 = ret.Error(1) 672 } 673 674 return r0, r1 675 } 676 677 // GetChannelsByIds provides a mock function with given fields: channelIds, includeDeleted 678 func (_m *ChannelStore) GetChannelsByIds(channelIds []string, includeDeleted bool) ([]*model.Channel, error) { 679 ret := _m.Called(channelIds, includeDeleted) 680 681 var r0 []*model.Channel 682 if rf, ok := ret.Get(0).(func([]string, bool) []*model.Channel); ok { 683 r0 = rf(channelIds, includeDeleted) 684 } else { 685 if ret.Get(0) != nil { 686 r0 = ret.Get(0).([]*model.Channel) 687 } 688 } 689 690 var r1 error 691 if rf, ok := ret.Get(1).(func([]string, bool) error); ok { 692 r1 = rf(channelIds, includeDeleted) 693 } else { 694 r1 = ret.Error(1) 695 } 696 697 return r0, r1 698 } 699 700 // GetChannelsByScheme provides a mock function with given fields: schemeID, offset, limit 701 func (_m *ChannelStore) GetChannelsByScheme(schemeID string, offset int, limit int) (model.ChannelList, error) { 702 ret := _m.Called(schemeID, offset, limit) 703 704 var r0 model.ChannelList 705 if rf, ok := ret.Get(0).(func(string, int, int) model.ChannelList); ok { 706 r0 = rf(schemeID, offset, limit) 707 } else { 708 if ret.Get(0) != nil { 709 r0 = ret.Get(0).(model.ChannelList) 710 } 711 } 712 713 var r1 error 714 if rf, ok := ret.Get(1).(func(string, int, int) error); ok { 715 r1 = rf(schemeID, offset, limit) 716 } else { 717 r1 = ret.Error(1) 718 } 719 720 return r0, r1 721 } 722 723 // GetDeleted provides a mock function with given fields: team_id, offset, limit, userID 724 func (_m *ChannelStore) GetDeleted(team_id string, offset int, limit int, userID string) (*model.ChannelList, error) { 725 ret := _m.Called(team_id, offset, limit, userID) 726 727 var r0 *model.ChannelList 728 if rf, ok := ret.Get(0).(func(string, int, int, string) *model.ChannelList); ok { 729 r0 = rf(team_id, offset, limit, userID) 730 } else { 731 if ret.Get(0) != nil { 732 r0 = ret.Get(0).(*model.ChannelList) 733 } 734 } 735 736 var r1 error 737 if rf, ok := ret.Get(1).(func(string, int, int, string) error); ok { 738 r1 = rf(team_id, offset, limit, userID) 739 } else { 740 r1 = ret.Error(1) 741 } 742 743 return r0, r1 744 } 745 746 // GetDeletedByName provides a mock function with given fields: team_id, name 747 func (_m *ChannelStore) GetDeletedByName(team_id string, name string) (*model.Channel, error) { 748 ret := _m.Called(team_id, name) 749 750 var r0 *model.Channel 751 if rf, ok := ret.Get(0).(func(string, string) *model.Channel); ok { 752 r0 = rf(team_id, name) 753 } else { 754 if ret.Get(0) != nil { 755 r0 = ret.Get(0).(*model.Channel) 756 } 757 } 758 759 var r1 error 760 if rf, ok := ret.Get(1).(func(string, string) error); ok { 761 r1 = rf(team_id, name) 762 } else { 763 r1 = ret.Error(1) 764 } 765 766 return r0, r1 767 } 768 769 // GetForPost provides a mock function with given fields: postID 770 func (_m *ChannelStore) GetForPost(postID string) (*model.Channel, error) { 771 ret := _m.Called(postID) 772 773 var r0 *model.Channel 774 if rf, ok := ret.Get(0).(func(string) *model.Channel); ok { 775 r0 = rf(postID) 776 } else { 777 if ret.Get(0) != nil { 778 r0 = ret.Get(0).(*model.Channel) 779 } 780 } 781 782 var r1 error 783 if rf, ok := ret.Get(1).(func(string) error); ok { 784 r1 = rf(postID) 785 } else { 786 r1 = ret.Error(1) 787 } 788 789 return r0, r1 790 } 791 792 // GetFromMaster provides a mock function with given fields: id 793 func (_m *ChannelStore) GetFromMaster(id string) (*model.Channel, error) { 794 ret := _m.Called(id) 795 796 var r0 *model.Channel 797 if rf, ok := ret.Get(0).(func(string) *model.Channel); ok { 798 r0 = rf(id) 799 } else { 800 if ret.Get(0) != nil { 801 r0 = ret.Get(0).(*model.Channel) 802 } 803 } 804 805 var r1 error 806 if rf, ok := ret.Get(1).(func(string) error); ok { 807 r1 = rf(id) 808 } else { 809 r1 = ret.Error(1) 810 } 811 812 return r0, r1 813 } 814 815 // GetGuestCount provides a mock function with given fields: channelID, allowFromCache 816 func (_m *ChannelStore) GetGuestCount(channelID string, allowFromCache bool) (int64, error) { 817 ret := _m.Called(channelID, allowFromCache) 818 819 var r0 int64 820 if rf, ok := ret.Get(0).(func(string, bool) int64); ok { 821 r0 = rf(channelID, allowFromCache) 822 } else { 823 r0 = ret.Get(0).(int64) 824 } 825 826 var r1 error 827 if rf, ok := ret.Get(1).(func(string, bool) error); ok { 828 r1 = rf(channelID, allowFromCache) 829 } else { 830 r1 = ret.Error(1) 831 } 832 833 return r0, r1 834 } 835 836 // GetMember provides a mock function with given fields: ctx, channelID, userID 837 func (_m *ChannelStore) GetMember(ctx context.Context, channelID string, userID string) (*model.ChannelMember, error) { 838 ret := _m.Called(ctx, channelID, userID) 839 840 var r0 *model.ChannelMember 841 if rf, ok := ret.Get(0).(func(context.Context, string, string) *model.ChannelMember); ok { 842 r0 = rf(ctx, channelID, userID) 843 } else { 844 if ret.Get(0) != nil { 845 r0 = ret.Get(0).(*model.ChannelMember) 846 } 847 } 848 849 var r1 error 850 if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { 851 r1 = rf(ctx, channelID, userID) 852 } else { 853 r1 = ret.Error(1) 854 } 855 856 return r0, r1 857 } 858 859 // GetMemberCount provides a mock function with given fields: channelID, allowFromCache 860 func (_m *ChannelStore) GetMemberCount(channelID string, allowFromCache bool) (int64, error) { 861 ret := _m.Called(channelID, allowFromCache) 862 863 var r0 int64 864 if rf, ok := ret.Get(0).(func(string, bool) int64); ok { 865 r0 = rf(channelID, allowFromCache) 866 } else { 867 r0 = ret.Get(0).(int64) 868 } 869 870 var r1 error 871 if rf, ok := ret.Get(1).(func(string, bool) error); ok { 872 r1 = rf(channelID, allowFromCache) 873 } else { 874 r1 = ret.Error(1) 875 } 876 877 return r0, r1 878 } 879 880 // GetMemberCountFromCache provides a mock function with given fields: channelID 881 func (_m *ChannelStore) GetMemberCountFromCache(channelID string) int64 { 882 ret := _m.Called(channelID) 883 884 var r0 int64 885 if rf, ok := ret.Get(0).(func(string) int64); ok { 886 r0 = rf(channelID) 887 } else { 888 r0 = ret.Get(0).(int64) 889 } 890 891 return r0 892 } 893 894 // GetMemberCountsByGroup provides a mock function with given fields: ctx, channelID, includeTimezones 895 func (_m *ChannelStore) GetMemberCountsByGroup(ctx context.Context, channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, error) { 896 ret := _m.Called(ctx, channelID, includeTimezones) 897 898 var r0 []*model.ChannelMemberCountByGroup 899 if rf, ok := ret.Get(0).(func(context.Context, string, bool) []*model.ChannelMemberCountByGroup); ok { 900 r0 = rf(ctx, channelID, includeTimezones) 901 } else { 902 if ret.Get(0) != nil { 903 r0 = ret.Get(0).([]*model.ChannelMemberCountByGroup) 904 } 905 } 906 907 var r1 error 908 if rf, ok := ret.Get(1).(func(context.Context, string, bool) error); ok { 909 r1 = rf(ctx, channelID, includeTimezones) 910 } else { 911 r1 = ret.Error(1) 912 } 913 914 return r0, r1 915 } 916 917 // GetMemberForPost provides a mock function with given fields: postID, userID 918 func (_m *ChannelStore) GetMemberForPost(postID string, userID string) (*model.ChannelMember, error) { 919 ret := _m.Called(postID, userID) 920 921 var r0 *model.ChannelMember 922 if rf, ok := ret.Get(0).(func(string, string) *model.ChannelMember); ok { 923 r0 = rf(postID, userID) 924 } else { 925 if ret.Get(0) != nil { 926 r0 = ret.Get(0).(*model.ChannelMember) 927 } 928 } 929 930 var r1 error 931 if rf, ok := ret.Get(1).(func(string, string) error); ok { 932 r1 = rf(postID, userID) 933 } else { 934 r1 = ret.Error(1) 935 } 936 937 return r0, r1 938 } 939 940 // GetMembers provides a mock function with given fields: channelID, offset, limit 941 func (_m *ChannelStore) GetMembers(channelID string, offset int, limit int) (*model.ChannelMembers, error) { 942 ret := _m.Called(channelID, offset, limit) 943 944 var r0 *model.ChannelMembers 945 if rf, ok := ret.Get(0).(func(string, int, int) *model.ChannelMembers); ok { 946 r0 = rf(channelID, offset, limit) 947 } else { 948 if ret.Get(0) != nil { 949 r0 = ret.Get(0).(*model.ChannelMembers) 950 } 951 } 952 953 var r1 error 954 if rf, ok := ret.Get(1).(func(string, int, int) error); ok { 955 r1 = rf(channelID, offset, limit) 956 } else { 957 r1 = ret.Error(1) 958 } 959 960 return r0, r1 961 } 962 963 // GetMembersByChannelIds provides a mock function with given fields: channelIds, userID 964 func (_m *ChannelStore) GetMembersByChannelIds(channelIds []string, userID string) (*model.ChannelMembers, error) { 965 ret := _m.Called(channelIds, userID) 966 967 var r0 *model.ChannelMembers 968 if rf, ok := ret.Get(0).(func([]string, string) *model.ChannelMembers); ok { 969 r0 = rf(channelIds, userID) 970 } else { 971 if ret.Get(0) != nil { 972 r0 = ret.Get(0).(*model.ChannelMembers) 973 } 974 } 975 976 var r1 error 977 if rf, ok := ret.Get(1).(func([]string, string) error); ok { 978 r1 = rf(channelIds, userID) 979 } else { 980 r1 = ret.Error(1) 981 } 982 983 return r0, r1 984 } 985 986 // GetMembersByIds provides a mock function with given fields: channelID, userIds 987 func (_m *ChannelStore) GetMembersByIds(channelID string, userIds []string) (*model.ChannelMembers, error) { 988 ret := _m.Called(channelID, userIds) 989 990 var r0 *model.ChannelMembers 991 if rf, ok := ret.Get(0).(func(string, []string) *model.ChannelMembers); ok { 992 r0 = rf(channelID, userIds) 993 } else { 994 if ret.Get(0) != nil { 995 r0 = ret.Get(0).(*model.ChannelMembers) 996 } 997 } 998 999 var r1 error 1000 if rf, ok := ret.Get(1).(func(string, []string) error); ok { 1001 r1 = rf(channelID, userIds) 1002 } else { 1003 r1 = ret.Error(1) 1004 } 1005 1006 return r0, r1 1007 } 1008 1009 // GetMembersForUser provides a mock function with given fields: teamID, userID 1010 func (_m *ChannelStore) GetMembersForUser(teamID string, userID string) (*model.ChannelMembers, error) { 1011 ret := _m.Called(teamID, userID) 1012 1013 var r0 *model.ChannelMembers 1014 if rf, ok := ret.Get(0).(func(string, string) *model.ChannelMembers); ok { 1015 r0 = rf(teamID, userID) 1016 } else { 1017 if ret.Get(0) != nil { 1018 r0 = ret.Get(0).(*model.ChannelMembers) 1019 } 1020 } 1021 1022 var r1 error 1023 if rf, ok := ret.Get(1).(func(string, string) error); ok { 1024 r1 = rf(teamID, userID) 1025 } else { 1026 r1 = ret.Error(1) 1027 } 1028 1029 return r0, r1 1030 } 1031 1032 // GetMembersForUserWithPagination provides a mock function with given fields: teamID, userID, page, perPage 1033 func (_m *ChannelStore) GetMembersForUserWithPagination(teamID string, userID string, page int, perPage int) (*model.ChannelMembers, error) { 1034 ret := _m.Called(teamID, userID, page, perPage) 1035 1036 var r0 *model.ChannelMembers 1037 if rf, ok := ret.Get(0).(func(string, string, int, int) *model.ChannelMembers); ok { 1038 r0 = rf(teamID, userID, page, perPage) 1039 } else { 1040 if ret.Get(0) != nil { 1041 r0 = ret.Get(0).(*model.ChannelMembers) 1042 } 1043 } 1044 1045 var r1 error 1046 if rf, ok := ret.Get(1).(func(string, string, int, int) error); ok { 1047 r1 = rf(teamID, userID, page, perPage) 1048 } else { 1049 r1 = ret.Error(1) 1050 } 1051 1052 return r0, r1 1053 } 1054 1055 // GetMoreChannels provides a mock function with given fields: teamID, userID, offset, limit 1056 func (_m *ChannelStore) GetMoreChannels(teamID string, userID string, offset int, limit int) (*model.ChannelList, error) { 1057 ret := _m.Called(teamID, userID, offset, limit) 1058 1059 var r0 *model.ChannelList 1060 if rf, ok := ret.Get(0).(func(string, string, int, int) *model.ChannelList); ok { 1061 r0 = rf(teamID, userID, offset, limit) 1062 } else { 1063 if ret.Get(0) != nil { 1064 r0 = ret.Get(0).(*model.ChannelList) 1065 } 1066 } 1067 1068 var r1 error 1069 if rf, ok := ret.Get(1).(func(string, string, int, int) error); ok { 1070 r1 = rf(teamID, userID, offset, limit) 1071 } else { 1072 r1 = ret.Error(1) 1073 } 1074 1075 return r0, r1 1076 } 1077 1078 // GetPinnedPostCount provides a mock function with given fields: channelID, allowFromCache 1079 func (_m *ChannelStore) GetPinnedPostCount(channelID string, allowFromCache bool) (int64, error) { 1080 ret := _m.Called(channelID, allowFromCache) 1081 1082 var r0 int64 1083 if rf, ok := ret.Get(0).(func(string, bool) int64); ok { 1084 r0 = rf(channelID, allowFromCache) 1085 } else { 1086 r0 = ret.Get(0).(int64) 1087 } 1088 1089 var r1 error 1090 if rf, ok := ret.Get(1).(func(string, bool) error); ok { 1091 r1 = rf(channelID, allowFromCache) 1092 } else { 1093 r1 = ret.Error(1) 1094 } 1095 1096 return r0, r1 1097 } 1098 1099 // GetPinnedPosts provides a mock function with given fields: channelID 1100 func (_m *ChannelStore) GetPinnedPosts(channelID string) (*model.PostList, error) { 1101 ret := _m.Called(channelID) 1102 1103 var r0 *model.PostList 1104 if rf, ok := ret.Get(0).(func(string) *model.PostList); ok { 1105 r0 = rf(channelID) 1106 } else { 1107 if ret.Get(0) != nil { 1108 r0 = ret.Get(0).(*model.PostList) 1109 } 1110 } 1111 1112 var r1 error 1113 if rf, ok := ret.Get(1).(func(string) error); ok { 1114 r1 = rf(channelID) 1115 } else { 1116 r1 = ret.Error(1) 1117 } 1118 1119 return r0, r1 1120 } 1121 1122 // GetPrivateChannelsForTeam provides a mock function with given fields: teamID, offset, limit 1123 func (_m *ChannelStore) GetPrivateChannelsForTeam(teamID string, offset int, limit int) (*model.ChannelList, error) { 1124 ret := _m.Called(teamID, offset, limit) 1125 1126 var r0 *model.ChannelList 1127 if rf, ok := ret.Get(0).(func(string, int, int) *model.ChannelList); ok { 1128 r0 = rf(teamID, offset, limit) 1129 } else { 1130 if ret.Get(0) != nil { 1131 r0 = ret.Get(0).(*model.ChannelList) 1132 } 1133 } 1134 1135 var r1 error 1136 if rf, ok := ret.Get(1).(func(string, int, int) error); ok { 1137 r1 = rf(teamID, offset, limit) 1138 } else { 1139 r1 = ret.Error(1) 1140 } 1141 1142 return r0, r1 1143 } 1144 1145 // GetPublicChannelsByIdsForTeam provides a mock function with given fields: teamID, channelIds 1146 func (_m *ChannelStore) GetPublicChannelsByIdsForTeam(teamID string, channelIds []string) (*model.ChannelList, error) { 1147 ret := _m.Called(teamID, channelIds) 1148 1149 var r0 *model.ChannelList 1150 if rf, ok := ret.Get(0).(func(string, []string) *model.ChannelList); ok { 1151 r0 = rf(teamID, channelIds) 1152 } else { 1153 if ret.Get(0) != nil { 1154 r0 = ret.Get(0).(*model.ChannelList) 1155 } 1156 } 1157 1158 var r1 error 1159 if rf, ok := ret.Get(1).(func(string, []string) error); ok { 1160 r1 = rf(teamID, channelIds) 1161 } else { 1162 r1 = ret.Error(1) 1163 } 1164 1165 return r0, r1 1166 } 1167 1168 // GetPublicChannelsForTeam provides a mock function with given fields: teamID, offset, limit 1169 func (_m *ChannelStore) GetPublicChannelsForTeam(teamID string, offset int, limit int) (*model.ChannelList, error) { 1170 ret := _m.Called(teamID, offset, limit) 1171 1172 var r0 *model.ChannelList 1173 if rf, ok := ret.Get(0).(func(string, int, int) *model.ChannelList); ok { 1174 r0 = rf(teamID, offset, limit) 1175 } else { 1176 if ret.Get(0) != nil { 1177 r0 = ret.Get(0).(*model.ChannelList) 1178 } 1179 } 1180 1181 var r1 error 1182 if rf, ok := ret.Get(1).(func(string, int, int) error); ok { 1183 r1 = rf(teamID, offset, limit) 1184 } else { 1185 r1 = ret.Error(1) 1186 } 1187 1188 return r0, r1 1189 } 1190 1191 // GetSidebarCategories provides a mock function with given fields: userID, teamID 1192 func (_m *ChannelStore) GetSidebarCategories(userID string, teamID string) (*model.OrderedSidebarCategories, error) { 1193 ret := _m.Called(userID, teamID) 1194 1195 var r0 *model.OrderedSidebarCategories 1196 if rf, ok := ret.Get(0).(func(string, string) *model.OrderedSidebarCategories); ok { 1197 r0 = rf(userID, teamID) 1198 } else { 1199 if ret.Get(0) != nil { 1200 r0 = ret.Get(0).(*model.OrderedSidebarCategories) 1201 } 1202 } 1203 1204 var r1 error 1205 if rf, ok := ret.Get(1).(func(string, string) error); ok { 1206 r1 = rf(userID, teamID) 1207 } else { 1208 r1 = ret.Error(1) 1209 } 1210 1211 return r0, r1 1212 } 1213 1214 // GetSidebarCategory provides a mock function with given fields: categoryID 1215 func (_m *ChannelStore) GetSidebarCategory(categoryID string) (*model.SidebarCategoryWithChannels, error) { 1216 ret := _m.Called(categoryID) 1217 1218 var r0 *model.SidebarCategoryWithChannels 1219 if rf, ok := ret.Get(0).(func(string) *model.SidebarCategoryWithChannels); ok { 1220 r0 = rf(categoryID) 1221 } else { 1222 if ret.Get(0) != nil { 1223 r0 = ret.Get(0).(*model.SidebarCategoryWithChannels) 1224 } 1225 } 1226 1227 var r1 error 1228 if rf, ok := ret.Get(1).(func(string) error); ok { 1229 r1 = rf(categoryID) 1230 } else { 1231 r1 = ret.Error(1) 1232 } 1233 1234 return r0, r1 1235 } 1236 1237 // GetSidebarCategoryOrder provides a mock function with given fields: userID, teamID 1238 func (_m *ChannelStore) GetSidebarCategoryOrder(userID string, teamID string) ([]string, error) { 1239 ret := _m.Called(userID, teamID) 1240 1241 var r0 []string 1242 if rf, ok := ret.Get(0).(func(string, string) []string); ok { 1243 r0 = rf(userID, teamID) 1244 } else { 1245 if ret.Get(0) != nil { 1246 r0 = ret.Get(0).([]string) 1247 } 1248 } 1249 1250 var r1 error 1251 if rf, ok := ret.Get(1).(func(string, string) error); ok { 1252 r1 = rf(userID, teamID) 1253 } else { 1254 r1 = ret.Error(1) 1255 } 1256 1257 return r0, r1 1258 } 1259 1260 // GetTeamChannels provides a mock function with given fields: teamID 1261 func (_m *ChannelStore) GetTeamChannels(teamID string) (*model.ChannelList, error) { 1262 ret := _m.Called(teamID) 1263 1264 var r0 *model.ChannelList 1265 if rf, ok := ret.Get(0).(func(string) *model.ChannelList); ok { 1266 r0 = rf(teamID) 1267 } else { 1268 if ret.Get(0) != nil { 1269 r0 = ret.Get(0).(*model.ChannelList) 1270 } 1271 } 1272 1273 var r1 error 1274 if rf, ok := ret.Get(1).(func(string) error); ok { 1275 r1 = rf(teamID) 1276 } else { 1277 r1 = ret.Error(1) 1278 } 1279 1280 return r0, r1 1281 } 1282 1283 // GetTeamForChannel provides a mock function with given fields: channelID 1284 func (_m *ChannelStore) GetTeamForChannel(channelID string) (*model.Team, error) { 1285 ret := _m.Called(channelID) 1286 1287 var r0 *model.Team 1288 if rf, ok := ret.Get(0).(func(string) *model.Team); ok { 1289 r0 = rf(channelID) 1290 } else { 1291 if ret.Get(0) != nil { 1292 r0 = ret.Get(0).(*model.Team) 1293 } 1294 } 1295 1296 var r1 error 1297 if rf, ok := ret.Get(1).(func(string) error); ok { 1298 r1 = rf(channelID) 1299 } else { 1300 r1 = ret.Error(1) 1301 } 1302 1303 return r0, r1 1304 } 1305 1306 // GroupSyncedChannelCount provides a mock function with given fields: 1307 func (_m *ChannelStore) GroupSyncedChannelCount() (int64, error) { 1308 ret := _m.Called() 1309 1310 var r0 int64 1311 if rf, ok := ret.Get(0).(func() int64); ok { 1312 r0 = rf() 1313 } else { 1314 r0 = ret.Get(0).(int64) 1315 } 1316 1317 var r1 error 1318 if rf, ok := ret.Get(1).(func() error); ok { 1319 r1 = rf() 1320 } else { 1321 r1 = ret.Error(1) 1322 } 1323 1324 return r0, r1 1325 } 1326 1327 // IncrementMentionCount provides a mock function with given fields: channelID, userID, updateThreads, isRoot 1328 func (_m *ChannelStore) IncrementMentionCount(channelID string, userID string, updateThreads bool, isRoot bool) error { 1329 ret := _m.Called(channelID, userID, updateThreads, isRoot) 1330 1331 var r0 error 1332 if rf, ok := ret.Get(0).(func(string, string, bool, bool) error); ok { 1333 r0 = rf(channelID, userID, updateThreads, isRoot) 1334 } else { 1335 r0 = ret.Error(0) 1336 } 1337 1338 return r0 1339 } 1340 1341 // InvalidateAllChannelMembersForUser provides a mock function with given fields: userID 1342 func (_m *ChannelStore) InvalidateAllChannelMembersForUser(userID string) { 1343 _m.Called(userID) 1344 } 1345 1346 // InvalidateCacheForChannelMembersNotifyProps provides a mock function with given fields: channelID 1347 func (_m *ChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelID string) { 1348 _m.Called(channelID) 1349 } 1350 1351 // InvalidateChannel provides a mock function with given fields: id 1352 func (_m *ChannelStore) InvalidateChannel(id string) { 1353 _m.Called(id) 1354 } 1355 1356 // InvalidateChannelByName provides a mock function with given fields: teamID, name 1357 func (_m *ChannelStore) InvalidateChannelByName(teamID string, name string) { 1358 _m.Called(teamID, name) 1359 } 1360 1361 // InvalidateGuestCount provides a mock function with given fields: channelID 1362 func (_m *ChannelStore) InvalidateGuestCount(channelID string) { 1363 _m.Called(channelID) 1364 } 1365 1366 // InvalidateMemberCount provides a mock function with given fields: channelID 1367 func (_m *ChannelStore) InvalidateMemberCount(channelID string) { 1368 _m.Called(channelID) 1369 } 1370 1371 // InvalidatePinnedPostCount provides a mock function with given fields: channelID 1372 func (_m *ChannelStore) InvalidatePinnedPostCount(channelID string) { 1373 _m.Called(channelID) 1374 } 1375 1376 // IsUserInChannelUseCache provides a mock function with given fields: userID, channelID 1377 func (_m *ChannelStore) IsUserInChannelUseCache(userID string, channelID string) bool { 1378 ret := _m.Called(userID, channelID) 1379 1380 var r0 bool 1381 if rf, ok := ret.Get(0).(func(string, string) bool); ok { 1382 r0 = rf(userID, channelID) 1383 } else { 1384 r0 = ret.Get(0).(bool) 1385 } 1386 1387 return r0 1388 } 1389 1390 // MigrateChannelMembers provides a mock function with given fields: fromChannelID, fromUserID 1391 func (_m *ChannelStore) MigrateChannelMembers(fromChannelID string, fromUserID string) (map[string]string, error) { 1392 ret := _m.Called(fromChannelID, fromUserID) 1393 1394 var r0 map[string]string 1395 if rf, ok := ret.Get(0).(func(string, string) map[string]string); ok { 1396 r0 = rf(fromChannelID, fromUserID) 1397 } else { 1398 if ret.Get(0) != nil { 1399 r0 = ret.Get(0).(map[string]string) 1400 } 1401 } 1402 1403 var r1 error 1404 if rf, ok := ret.Get(1).(func(string, string) error); ok { 1405 r1 = rf(fromChannelID, fromUserID) 1406 } else { 1407 r1 = ret.Error(1) 1408 } 1409 1410 return r0, r1 1411 } 1412 1413 // MigratePublicChannels provides a mock function with given fields: 1414 func (_m *ChannelStore) MigratePublicChannels() error { 1415 ret := _m.Called() 1416 1417 var r0 error 1418 if rf, ok := ret.Get(0).(func() error); ok { 1419 r0 = rf() 1420 } else { 1421 r0 = ret.Error(0) 1422 } 1423 1424 return r0 1425 } 1426 1427 // PermanentDelete provides a mock function with given fields: channelID 1428 func (_m *ChannelStore) PermanentDelete(channelID string) error { 1429 ret := _m.Called(channelID) 1430 1431 var r0 error 1432 if rf, ok := ret.Get(0).(func(string) error); ok { 1433 r0 = rf(channelID) 1434 } else { 1435 r0 = ret.Error(0) 1436 } 1437 1438 return r0 1439 } 1440 1441 // PermanentDeleteByTeam provides a mock function with given fields: teamID 1442 func (_m *ChannelStore) PermanentDeleteByTeam(teamID string) error { 1443 ret := _m.Called(teamID) 1444 1445 var r0 error 1446 if rf, ok := ret.Get(0).(func(string) error); ok { 1447 r0 = rf(teamID) 1448 } else { 1449 r0 = ret.Error(0) 1450 } 1451 1452 return r0 1453 } 1454 1455 // PermanentDeleteMembersByChannel provides a mock function with given fields: channelID 1456 func (_m *ChannelStore) PermanentDeleteMembersByChannel(channelID string) error { 1457 ret := _m.Called(channelID) 1458 1459 var r0 error 1460 if rf, ok := ret.Get(0).(func(string) error); ok { 1461 r0 = rf(channelID) 1462 } else { 1463 r0 = ret.Error(0) 1464 } 1465 1466 return r0 1467 } 1468 1469 // PermanentDeleteMembersByUser provides a mock function with given fields: userID 1470 func (_m *ChannelStore) PermanentDeleteMembersByUser(userID string) error { 1471 ret := _m.Called(userID) 1472 1473 var r0 error 1474 if rf, ok := ret.Get(0).(func(string) error); ok { 1475 r0 = rf(userID) 1476 } else { 1477 r0 = ret.Error(0) 1478 } 1479 1480 return r0 1481 } 1482 1483 // RemoveAllDeactivatedMembers provides a mock function with given fields: channelID 1484 func (_m *ChannelStore) RemoveAllDeactivatedMembers(channelID string) error { 1485 ret := _m.Called(channelID) 1486 1487 var r0 error 1488 if rf, ok := ret.Get(0).(func(string) error); ok { 1489 r0 = rf(channelID) 1490 } else { 1491 r0 = ret.Error(0) 1492 } 1493 1494 return r0 1495 } 1496 1497 // RemoveMember provides a mock function with given fields: channelID, userID 1498 func (_m *ChannelStore) RemoveMember(channelID string, userID string) error { 1499 ret := _m.Called(channelID, userID) 1500 1501 var r0 error 1502 if rf, ok := ret.Get(0).(func(string, string) error); ok { 1503 r0 = rf(channelID, userID) 1504 } else { 1505 r0 = ret.Error(0) 1506 } 1507 1508 return r0 1509 } 1510 1511 // RemoveMembers provides a mock function with given fields: channelID, userIds 1512 func (_m *ChannelStore) RemoveMembers(channelID string, userIds []string) error { 1513 ret := _m.Called(channelID, userIds) 1514 1515 var r0 error 1516 if rf, ok := ret.Get(0).(func(string, []string) error); ok { 1517 r0 = rf(channelID, userIds) 1518 } else { 1519 r0 = ret.Error(0) 1520 } 1521 1522 return r0 1523 } 1524 1525 // ResetAllChannelSchemes provides a mock function with given fields: 1526 func (_m *ChannelStore) ResetAllChannelSchemes() error { 1527 ret := _m.Called() 1528 1529 var r0 error 1530 if rf, ok := ret.Get(0).(func() error); ok { 1531 r0 = rf() 1532 } else { 1533 r0 = ret.Error(0) 1534 } 1535 1536 return r0 1537 } 1538 1539 // Restore provides a mock function with given fields: channelID, time 1540 func (_m *ChannelStore) Restore(channelID string, time int64) error { 1541 ret := _m.Called(channelID, time) 1542 1543 var r0 error 1544 if rf, ok := ret.Get(0).(func(string, int64) error); ok { 1545 r0 = rf(channelID, time) 1546 } else { 1547 r0 = ret.Error(0) 1548 } 1549 1550 return r0 1551 } 1552 1553 // Save provides a mock function with given fields: channel, maxChannelsPerTeam 1554 func (_m *ChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, error) { 1555 ret := _m.Called(channel, maxChannelsPerTeam) 1556 1557 var r0 *model.Channel 1558 if rf, ok := ret.Get(0).(func(*model.Channel, int64) *model.Channel); ok { 1559 r0 = rf(channel, maxChannelsPerTeam) 1560 } else { 1561 if ret.Get(0) != nil { 1562 r0 = ret.Get(0).(*model.Channel) 1563 } 1564 } 1565 1566 var r1 error 1567 if rf, ok := ret.Get(1).(func(*model.Channel, int64) error); ok { 1568 r1 = rf(channel, maxChannelsPerTeam) 1569 } else { 1570 r1 = ret.Error(1) 1571 } 1572 1573 return r0, r1 1574 } 1575 1576 // SaveDirectChannel provides a mock function with given fields: channel, member1, member2 1577 func (_m *ChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) (*model.Channel, error) { 1578 ret := _m.Called(channel, member1, member2) 1579 1580 var r0 *model.Channel 1581 if rf, ok := ret.Get(0).(func(*model.Channel, *model.ChannelMember, *model.ChannelMember) *model.Channel); ok { 1582 r0 = rf(channel, member1, member2) 1583 } else { 1584 if ret.Get(0) != nil { 1585 r0 = ret.Get(0).(*model.Channel) 1586 } 1587 } 1588 1589 var r1 error 1590 if rf, ok := ret.Get(1).(func(*model.Channel, *model.ChannelMember, *model.ChannelMember) error); ok { 1591 r1 = rf(channel, member1, member2) 1592 } else { 1593 r1 = ret.Error(1) 1594 } 1595 1596 return r0, r1 1597 } 1598 1599 // SaveMember provides a mock function with given fields: member 1600 func (_m *ChannelStore) SaveMember(member *model.ChannelMember) (*model.ChannelMember, error) { 1601 ret := _m.Called(member) 1602 1603 var r0 *model.ChannelMember 1604 if rf, ok := ret.Get(0).(func(*model.ChannelMember) *model.ChannelMember); ok { 1605 r0 = rf(member) 1606 } else { 1607 if ret.Get(0) != nil { 1608 r0 = ret.Get(0).(*model.ChannelMember) 1609 } 1610 } 1611 1612 var r1 error 1613 if rf, ok := ret.Get(1).(func(*model.ChannelMember) error); ok { 1614 r1 = rf(member) 1615 } else { 1616 r1 = ret.Error(1) 1617 } 1618 1619 return r0, r1 1620 } 1621 1622 // SaveMultipleMembers provides a mock function with given fields: members 1623 func (_m *ChannelStore) SaveMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, error) { 1624 ret := _m.Called(members) 1625 1626 var r0 []*model.ChannelMember 1627 if rf, ok := ret.Get(0).(func([]*model.ChannelMember) []*model.ChannelMember); ok { 1628 r0 = rf(members) 1629 } else { 1630 if ret.Get(0) != nil { 1631 r0 = ret.Get(0).([]*model.ChannelMember) 1632 } 1633 } 1634 1635 var r1 error 1636 if rf, ok := ret.Get(1).(func([]*model.ChannelMember) error); ok { 1637 r1 = rf(members) 1638 } else { 1639 r1 = ret.Error(1) 1640 } 1641 1642 return r0, r1 1643 } 1644 1645 // SearchAllChannels provides a mock function with given fields: term, opts 1646 func (_m *ChannelStore) SearchAllChannels(term string, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, error) { 1647 ret := _m.Called(term, opts) 1648 1649 var r0 *model.ChannelListWithTeamData 1650 if rf, ok := ret.Get(0).(func(string, store.ChannelSearchOpts) *model.ChannelListWithTeamData); ok { 1651 r0 = rf(term, opts) 1652 } else { 1653 if ret.Get(0) != nil { 1654 r0 = ret.Get(0).(*model.ChannelListWithTeamData) 1655 } 1656 } 1657 1658 var r1 int64 1659 if rf, ok := ret.Get(1).(func(string, store.ChannelSearchOpts) int64); ok { 1660 r1 = rf(term, opts) 1661 } else { 1662 r1 = ret.Get(1).(int64) 1663 } 1664 1665 var r2 error 1666 if rf, ok := ret.Get(2).(func(string, store.ChannelSearchOpts) error); ok { 1667 r2 = rf(term, opts) 1668 } else { 1669 r2 = ret.Error(2) 1670 } 1671 1672 return r0, r1, r2 1673 } 1674 1675 // SearchArchivedInTeam provides a mock function with given fields: teamID, term, userID 1676 func (_m *ChannelStore) SearchArchivedInTeam(teamID string, term string, userID string) (*model.ChannelList, error) { 1677 ret := _m.Called(teamID, term, userID) 1678 1679 var r0 *model.ChannelList 1680 if rf, ok := ret.Get(0).(func(string, string, string) *model.ChannelList); ok { 1681 r0 = rf(teamID, term, userID) 1682 } else { 1683 if ret.Get(0) != nil { 1684 r0 = ret.Get(0).(*model.ChannelList) 1685 } 1686 } 1687 1688 var r1 error 1689 if rf, ok := ret.Get(1).(func(string, string, string) error); ok { 1690 r1 = rf(teamID, term, userID) 1691 } else { 1692 r1 = ret.Error(1) 1693 } 1694 1695 return r0, r1 1696 } 1697 1698 // SearchForUserInTeam provides a mock function with given fields: userID, teamID, term, includeDeleted 1699 func (_m *ChannelStore) SearchForUserInTeam(userID string, teamID string, term string, includeDeleted bool) (*model.ChannelList, error) { 1700 ret := _m.Called(userID, teamID, term, includeDeleted) 1701 1702 var r0 *model.ChannelList 1703 if rf, ok := ret.Get(0).(func(string, string, string, bool) *model.ChannelList); ok { 1704 r0 = rf(userID, teamID, term, includeDeleted) 1705 } else { 1706 if ret.Get(0) != nil { 1707 r0 = ret.Get(0).(*model.ChannelList) 1708 } 1709 } 1710 1711 var r1 error 1712 if rf, ok := ret.Get(1).(func(string, string, string, bool) error); ok { 1713 r1 = rf(userID, teamID, term, includeDeleted) 1714 } else { 1715 r1 = ret.Error(1) 1716 } 1717 1718 return r0, r1 1719 } 1720 1721 // SearchGroupChannels provides a mock function with given fields: userID, term 1722 func (_m *ChannelStore) SearchGroupChannels(userID string, term string) (*model.ChannelList, error) { 1723 ret := _m.Called(userID, term) 1724 1725 var r0 *model.ChannelList 1726 if rf, ok := ret.Get(0).(func(string, string) *model.ChannelList); ok { 1727 r0 = rf(userID, term) 1728 } else { 1729 if ret.Get(0) != nil { 1730 r0 = ret.Get(0).(*model.ChannelList) 1731 } 1732 } 1733 1734 var r1 error 1735 if rf, ok := ret.Get(1).(func(string, string) error); ok { 1736 r1 = rf(userID, term) 1737 } else { 1738 r1 = ret.Error(1) 1739 } 1740 1741 return r0, r1 1742 } 1743 1744 // SearchInTeam provides a mock function with given fields: teamID, term, includeDeleted 1745 func (_m *ChannelStore) SearchInTeam(teamID string, term string, includeDeleted bool) (*model.ChannelList, error) { 1746 ret := _m.Called(teamID, term, includeDeleted) 1747 1748 var r0 *model.ChannelList 1749 if rf, ok := ret.Get(0).(func(string, string, bool) *model.ChannelList); ok { 1750 r0 = rf(teamID, term, includeDeleted) 1751 } else { 1752 if ret.Get(0) != nil { 1753 r0 = ret.Get(0).(*model.ChannelList) 1754 } 1755 } 1756 1757 var r1 error 1758 if rf, ok := ret.Get(1).(func(string, string, bool) error); ok { 1759 r1 = rf(teamID, term, includeDeleted) 1760 } else { 1761 r1 = ret.Error(1) 1762 } 1763 1764 return r0, r1 1765 } 1766 1767 // SearchMore provides a mock function with given fields: userID, teamID, term 1768 func (_m *ChannelStore) SearchMore(userID string, teamID string, term string) (*model.ChannelList, error) { 1769 ret := _m.Called(userID, teamID, term) 1770 1771 var r0 *model.ChannelList 1772 if rf, ok := ret.Get(0).(func(string, string, string) *model.ChannelList); ok { 1773 r0 = rf(userID, teamID, term) 1774 } else { 1775 if ret.Get(0) != nil { 1776 r0 = ret.Get(0).(*model.ChannelList) 1777 } 1778 } 1779 1780 var r1 error 1781 if rf, ok := ret.Get(1).(func(string, string, string) error); ok { 1782 r1 = rf(userID, teamID, term) 1783 } else { 1784 r1 = ret.Error(1) 1785 } 1786 1787 return r0, r1 1788 } 1789 1790 // SetDeleteAt provides a mock function with given fields: channelID, deleteAt, updateAt 1791 func (_m *ChannelStore) SetDeleteAt(channelID string, deleteAt int64, updateAt int64) error { 1792 ret := _m.Called(channelID, deleteAt, updateAt) 1793 1794 var r0 error 1795 if rf, ok := ret.Get(0).(func(string, int64, int64) error); ok { 1796 r0 = rf(channelID, deleteAt, updateAt) 1797 } else { 1798 r0 = ret.Error(0) 1799 } 1800 1801 return r0 1802 } 1803 1804 // SetShared provides a mock function with given fields: channelId, shared 1805 func (_m *ChannelStore) SetShared(channelId string, shared bool) error { 1806 ret := _m.Called(channelId, shared) 1807 1808 var r0 error 1809 if rf, ok := ret.Get(0).(func(string, bool) error); ok { 1810 r0 = rf(channelId, shared) 1811 } else { 1812 r0 = ret.Error(0) 1813 } 1814 1815 return r0 1816 } 1817 1818 // Update provides a mock function with given fields: channel 1819 func (_m *ChannelStore) Update(channel *model.Channel) (*model.Channel, error) { 1820 ret := _m.Called(channel) 1821 1822 var r0 *model.Channel 1823 if rf, ok := ret.Get(0).(func(*model.Channel) *model.Channel); ok { 1824 r0 = rf(channel) 1825 } else { 1826 if ret.Get(0) != nil { 1827 r0 = ret.Get(0).(*model.Channel) 1828 } 1829 } 1830 1831 var r1 error 1832 if rf, ok := ret.Get(1).(func(*model.Channel) error); ok { 1833 r1 = rf(channel) 1834 } else { 1835 r1 = ret.Error(1) 1836 } 1837 1838 return r0, r1 1839 } 1840 1841 // UpdateLastViewedAt provides a mock function with given fields: channelIds, userID, updateThreads 1842 func (_m *ChannelStore) UpdateLastViewedAt(channelIds []string, userID string, updateThreads bool) (map[string]int64, error) { 1843 ret := _m.Called(channelIds, userID, updateThreads) 1844 1845 var r0 map[string]int64 1846 if rf, ok := ret.Get(0).(func([]string, string, bool) map[string]int64); ok { 1847 r0 = rf(channelIds, userID, updateThreads) 1848 } else { 1849 if ret.Get(0) != nil { 1850 r0 = ret.Get(0).(map[string]int64) 1851 } 1852 } 1853 1854 var r1 error 1855 if rf, ok := ret.Get(1).(func([]string, string, bool) error); ok { 1856 r1 = rf(channelIds, userID, updateThreads) 1857 } else { 1858 r1 = ret.Error(1) 1859 } 1860 1861 return r0, r1 1862 } 1863 1864 // UpdateLastViewedAtPost provides a mock function with given fields: unreadPost, userID, mentionCount, mentionCountRoot, updateThreads, setUnreadCountRoot 1865 func (_m *ChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int, mentionCountRoot int, updateThreads bool, setUnreadCountRoot bool) (*model.ChannelUnreadAt, error) { 1866 ret := _m.Called(unreadPost, userID, mentionCount, mentionCountRoot, updateThreads, setUnreadCountRoot) 1867 1868 var r0 *model.ChannelUnreadAt 1869 if rf, ok := ret.Get(0).(func(*model.Post, string, int, int, bool, bool) *model.ChannelUnreadAt); ok { 1870 r0 = rf(unreadPost, userID, mentionCount, mentionCountRoot, updateThreads, setUnreadCountRoot) 1871 } else { 1872 if ret.Get(0) != nil { 1873 r0 = ret.Get(0).(*model.ChannelUnreadAt) 1874 } 1875 } 1876 1877 var r1 error 1878 if rf, ok := ret.Get(1).(func(*model.Post, string, int, int, bool, bool) error); ok { 1879 r1 = rf(unreadPost, userID, mentionCount, mentionCountRoot, updateThreads, setUnreadCountRoot) 1880 } else { 1881 r1 = ret.Error(1) 1882 } 1883 1884 return r0, r1 1885 } 1886 1887 // UpdateMember provides a mock function with given fields: member 1888 func (_m *ChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, error) { 1889 ret := _m.Called(member) 1890 1891 var r0 *model.ChannelMember 1892 if rf, ok := ret.Get(0).(func(*model.ChannelMember) *model.ChannelMember); ok { 1893 r0 = rf(member) 1894 } else { 1895 if ret.Get(0) != nil { 1896 r0 = ret.Get(0).(*model.ChannelMember) 1897 } 1898 } 1899 1900 var r1 error 1901 if rf, ok := ret.Get(1).(func(*model.ChannelMember) error); ok { 1902 r1 = rf(member) 1903 } else { 1904 r1 = ret.Error(1) 1905 } 1906 1907 return r0, r1 1908 } 1909 1910 // UpdateMembersRole provides a mock function with given fields: channelID, userIDs 1911 func (_m *ChannelStore) UpdateMembersRole(channelID string, userIDs []string) error { 1912 ret := _m.Called(channelID, userIDs) 1913 1914 var r0 error 1915 if rf, ok := ret.Get(0).(func(string, []string) error); ok { 1916 r0 = rf(channelID, userIDs) 1917 } else { 1918 r0 = ret.Error(0) 1919 } 1920 1921 return r0 1922 } 1923 1924 // UpdateMultipleMembers provides a mock function with given fields: members 1925 func (_m *ChannelStore) UpdateMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, error) { 1926 ret := _m.Called(members) 1927 1928 var r0 []*model.ChannelMember 1929 if rf, ok := ret.Get(0).(func([]*model.ChannelMember) []*model.ChannelMember); ok { 1930 r0 = rf(members) 1931 } else { 1932 if ret.Get(0) != nil { 1933 r0 = ret.Get(0).([]*model.ChannelMember) 1934 } 1935 } 1936 1937 var r1 error 1938 if rf, ok := ret.Get(1).(func([]*model.ChannelMember) error); ok { 1939 r1 = rf(members) 1940 } else { 1941 r1 = ret.Error(1) 1942 } 1943 1944 return r0, r1 1945 } 1946 1947 // UpdateSidebarCategories provides a mock function with given fields: userID, teamID, categories 1948 func (_m *ChannelStore) UpdateSidebarCategories(userID string, teamID string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, []*model.SidebarCategoryWithChannels, error) { 1949 ret := _m.Called(userID, teamID, categories) 1950 1951 var r0 []*model.SidebarCategoryWithChannels 1952 if rf, ok := ret.Get(0).(func(string, string, []*model.SidebarCategoryWithChannels) []*model.SidebarCategoryWithChannels); ok { 1953 r0 = rf(userID, teamID, categories) 1954 } else { 1955 if ret.Get(0) != nil { 1956 r0 = ret.Get(0).([]*model.SidebarCategoryWithChannels) 1957 } 1958 } 1959 1960 var r1 []*model.SidebarCategoryWithChannels 1961 if rf, ok := ret.Get(1).(func(string, string, []*model.SidebarCategoryWithChannels) []*model.SidebarCategoryWithChannels); ok { 1962 r1 = rf(userID, teamID, categories) 1963 } else { 1964 if ret.Get(1) != nil { 1965 r1 = ret.Get(1).([]*model.SidebarCategoryWithChannels) 1966 } 1967 } 1968 1969 var r2 error 1970 if rf, ok := ret.Get(2).(func(string, string, []*model.SidebarCategoryWithChannels) error); ok { 1971 r2 = rf(userID, teamID, categories) 1972 } else { 1973 r2 = ret.Error(2) 1974 } 1975 1976 return r0, r1, r2 1977 } 1978 1979 // UpdateSidebarCategoryOrder provides a mock function with given fields: userID, teamID, categoryOrder 1980 func (_m *ChannelStore) UpdateSidebarCategoryOrder(userID string, teamID string, categoryOrder []string) error { 1981 ret := _m.Called(userID, teamID, categoryOrder) 1982 1983 var r0 error 1984 if rf, ok := ret.Get(0).(func(string, string, []string) error); ok { 1985 r0 = rf(userID, teamID, categoryOrder) 1986 } else { 1987 r0 = ret.Error(0) 1988 } 1989 1990 return r0 1991 } 1992 1993 // UpdateSidebarChannelCategoryOnMove provides a mock function with given fields: channel, newTeamID 1994 func (_m *ChannelStore) UpdateSidebarChannelCategoryOnMove(channel *model.Channel, newTeamID string) error { 1995 ret := _m.Called(channel, newTeamID) 1996 1997 var r0 error 1998 if rf, ok := ret.Get(0).(func(*model.Channel, string) error); ok { 1999 r0 = rf(channel, newTeamID) 2000 } else { 2001 r0 = ret.Error(0) 2002 } 2003 2004 return r0 2005 } 2006 2007 // UpdateSidebarChannelsByPreferences provides a mock function with given fields: preferences 2008 func (_m *ChannelStore) UpdateSidebarChannelsByPreferences(preferences *model.Preferences) error { 2009 ret := _m.Called(preferences) 2010 2011 var r0 error 2012 if rf, ok := ret.Get(0).(func(*model.Preferences) error); ok { 2013 r0 = rf(preferences) 2014 } else { 2015 r0 = ret.Error(0) 2016 } 2017 2018 return r0 2019 } 2020 2021 // UserBelongsToChannels provides a mock function with given fields: userID, channelIds 2022 func (_m *ChannelStore) UserBelongsToChannels(userID string, channelIds []string) (bool, error) { 2023 ret := _m.Called(userID, channelIds) 2024 2025 var r0 bool 2026 if rf, ok := ret.Get(0).(func(string, []string) bool); ok { 2027 r0 = rf(userID, channelIds) 2028 } else { 2029 r0 = ret.Get(0).(bool) 2030 } 2031 2032 var r1 error 2033 if rf, ok := ret.Get(1).(func(string, []string) error); ok { 2034 r1 = rf(userID, channelIds) 2035 } else { 2036 r1 = ret.Error(1) 2037 } 2038 2039 return r0, r1 2040 }