github.com/mad-app/mattermost-server@v5.11.1+incompatible/store/storetest/mocks/ChannelStore.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  // Regenerate this file using `make store-mocks`.
     4  
     5  package mocks
     6  
     7  import mock "github.com/stretchr/testify/mock"
     8  import model "github.com/mattermost/mattermost-server/model"
     9  import store "github.com/mattermost/mattermost-server/store"
    10  
    11  // ChannelStore is an autogenerated mock type for the ChannelStore type
    12  type ChannelStore struct {
    13  	mock.Mock
    14  }
    15  
    16  // AnalyticsDeletedTypeCount provides a mock function with given fields: teamId, channelType
    17  func (_m *ChannelStore) AnalyticsDeletedTypeCount(teamId string, channelType string) store.StoreChannel {
    18  	ret := _m.Called(teamId, channelType)
    19  
    20  	var r0 store.StoreChannel
    21  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
    22  		r0 = rf(teamId, channelType)
    23  	} else {
    24  		if ret.Get(0) != nil {
    25  			r0 = ret.Get(0).(store.StoreChannel)
    26  		}
    27  	}
    28  
    29  	return r0
    30  }
    31  
    32  // AnalyticsTypeCount provides a mock function with given fields: teamId, channelType
    33  func (_m *ChannelStore) AnalyticsTypeCount(teamId string, channelType string) store.StoreChannel {
    34  	ret := _m.Called(teamId, channelType)
    35  
    36  	var r0 store.StoreChannel
    37  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
    38  		r0 = rf(teamId, channelType)
    39  	} else {
    40  		if ret.Get(0) != nil {
    41  			r0 = ret.Get(0).(store.StoreChannel)
    42  		}
    43  	}
    44  
    45  	return r0
    46  }
    47  
    48  // AutocompleteInTeam provides a mock function with given fields: teamId, term, includeDeleted
    49  func (_m *ChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) store.StoreChannel {
    50  	ret := _m.Called(teamId, term, includeDeleted)
    51  
    52  	var r0 store.StoreChannel
    53  	if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok {
    54  		r0 = rf(teamId, term, includeDeleted)
    55  	} else {
    56  		if ret.Get(0) != nil {
    57  			r0 = ret.Get(0).(store.StoreChannel)
    58  		}
    59  	}
    60  
    61  	return r0
    62  }
    63  
    64  // AutocompleteInTeamForSearch provides a mock function with given fields: teamId, userId, term, includeDeleted
    65  func (_m *ChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) store.StoreChannel {
    66  	ret := _m.Called(teamId, userId, term, includeDeleted)
    67  
    68  	var r0 store.StoreChannel
    69  	if rf, ok := ret.Get(0).(func(string, string, string, bool) store.StoreChannel); ok {
    70  		r0 = rf(teamId, userId, term, includeDeleted)
    71  	} else {
    72  		if ret.Get(0) != nil {
    73  			r0 = ret.Get(0).(store.StoreChannel)
    74  		}
    75  	}
    76  
    77  	return r0
    78  }
    79  
    80  // ClearAllCustomRoleAssignments provides a mock function with given fields:
    81  func (_m *ChannelStore) ClearAllCustomRoleAssignments() store.StoreChannel {
    82  	ret := _m.Called()
    83  
    84  	var r0 store.StoreChannel
    85  	if rf, ok := ret.Get(0).(func() store.StoreChannel); ok {
    86  		r0 = rf()
    87  	} else {
    88  		if ret.Get(0) != nil {
    89  			r0 = ret.Get(0).(store.StoreChannel)
    90  		}
    91  	}
    92  
    93  	return r0
    94  }
    95  
    96  // ClearCaches provides a mock function with given fields:
    97  func (_m *ChannelStore) ClearCaches() {
    98  	_m.Called()
    99  }
   100  
   101  // CreateDirectChannel provides a mock function with given fields: userId, otherUserId
   102  func (_m *ChannelStore) CreateDirectChannel(userId string, otherUserId string) store.StoreChannel {
   103  	ret := _m.Called(userId, otherUserId)
   104  
   105  	var r0 store.StoreChannel
   106  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   107  		r0 = rf(userId, otherUserId)
   108  	} else {
   109  		if ret.Get(0) != nil {
   110  			r0 = ret.Get(0).(store.StoreChannel)
   111  		}
   112  	}
   113  
   114  	return r0
   115  }
   116  
   117  // Delete provides a mock function with given fields: channelId, time
   118  func (_m *ChannelStore) Delete(channelId string, time int64) store.StoreChannel {
   119  	ret := _m.Called(channelId, time)
   120  
   121  	var r0 store.StoreChannel
   122  	if rf, ok := ret.Get(0).(func(string, int64) store.StoreChannel); ok {
   123  		r0 = rf(channelId, time)
   124  	} else {
   125  		if ret.Get(0) != nil {
   126  			r0 = ret.Get(0).(store.StoreChannel)
   127  		}
   128  	}
   129  
   130  	return r0
   131  }
   132  
   133  // Get provides a mock function with given fields: id, allowFromCache
   134  func (_m *ChannelStore) Get(id string, allowFromCache bool) store.StoreChannel {
   135  	ret := _m.Called(id, allowFromCache)
   136  
   137  	var r0 store.StoreChannel
   138  	if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok {
   139  		r0 = rf(id, 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  // GetAll provides a mock function with given fields: teamId
   150  func (_m *ChannelStore) GetAll(teamId string) store.StoreChannel {
   151  	ret := _m.Called(teamId)
   152  
   153  	var r0 store.StoreChannel
   154  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   155  		r0 = rf(teamId)
   156  	} else {
   157  		if ret.Get(0) != nil {
   158  			r0 = ret.Get(0).(store.StoreChannel)
   159  		}
   160  	}
   161  
   162  	return r0
   163  }
   164  
   165  // GetAllChannelMembersForUser provides a mock function with given fields: userId, allowFromCache, includeDeleted
   166  func (_m *ChannelStore) GetAllChannelMembersForUser(userId string, allowFromCache bool, includeDeleted bool) store.StoreChannel {
   167  	ret := _m.Called(userId, allowFromCache, includeDeleted)
   168  
   169  	var r0 store.StoreChannel
   170  	if rf, ok := ret.Get(0).(func(string, bool, bool) store.StoreChannel); ok {
   171  		r0 = rf(userId, allowFromCache, includeDeleted)
   172  	} else {
   173  		if ret.Get(0) != nil {
   174  			r0 = ret.Get(0).(store.StoreChannel)
   175  		}
   176  	}
   177  
   178  	return r0
   179  }
   180  
   181  // GetAllChannelMembersNotifyPropsForChannel provides a mock function with given fields: channelId, allowFromCache
   182  func (_m *ChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) store.StoreChannel {
   183  	ret := _m.Called(channelId, allowFromCache)
   184  
   185  	var r0 store.StoreChannel
   186  	if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok {
   187  		r0 = rf(channelId, 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  // GetAllChannels provides a mock function with given fields: page, perPage, includeDeleted
   198  func (_m *ChannelStore) GetAllChannels(page int, perPage int, includeDeleted bool) store.StoreChannel {
   199  	ret := _m.Called(page, perPage, includeDeleted)
   200  
   201  	var r0 store.StoreChannel
   202  	if rf, ok := ret.Get(0).(func(int, int, bool) store.StoreChannel); ok {
   203  		r0 = rf(page, perPage, includeDeleted)
   204  	} else {
   205  		if ret.Get(0) != nil {
   206  			r0 = ret.Get(0).(store.StoreChannel)
   207  		}
   208  	}
   209  
   210  	return r0
   211  }
   212  
   213  // GetAllChannelsForExportAfter provides a mock function with given fields: limit, afterId
   214  func (_m *ChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) store.StoreChannel {
   215  	ret := _m.Called(limit, afterId)
   216  
   217  	var r0 store.StoreChannel
   218  	if rf, ok := ret.Get(0).(func(int, string) store.StoreChannel); ok {
   219  		r0 = rf(limit, afterId)
   220  	} else {
   221  		if ret.Get(0) != nil {
   222  			r0 = ret.Get(0).(store.StoreChannel)
   223  		}
   224  	}
   225  
   226  	return r0
   227  }
   228  
   229  // GetAllDirectChannelsForExportAfter provides a mock function with given fields: limit, afterId
   230  func (_m *ChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterId string) store.StoreChannel {
   231  	ret := _m.Called(limit, afterId)
   232  
   233  	var r0 store.StoreChannel
   234  	if rf, ok := ret.Get(0).(func(int, string) store.StoreChannel); ok {
   235  		r0 = rf(limit, afterId)
   236  	} else {
   237  		if ret.Get(0) != nil {
   238  			r0 = ret.Get(0).(store.StoreChannel)
   239  		}
   240  	}
   241  
   242  	return r0
   243  }
   244  
   245  // GetByName provides a mock function with given fields: team_id, name, allowFromCache
   246  func (_m *ChannelStore) GetByName(team_id string, name string, allowFromCache bool) store.StoreChannel {
   247  	ret := _m.Called(team_id, name, allowFromCache)
   248  
   249  	var r0 store.StoreChannel
   250  	if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok {
   251  		r0 = rf(team_id, name, allowFromCache)
   252  	} else {
   253  		if ret.Get(0) != nil {
   254  			r0 = ret.Get(0).(store.StoreChannel)
   255  		}
   256  	}
   257  
   258  	return r0
   259  }
   260  
   261  // GetByNameIncludeDeleted provides a mock function with given fields: team_id, name, allowFromCache
   262  func (_m *ChannelStore) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) store.StoreChannel {
   263  	ret := _m.Called(team_id, name, allowFromCache)
   264  
   265  	var r0 store.StoreChannel
   266  	if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok {
   267  		r0 = rf(team_id, name, allowFromCache)
   268  	} else {
   269  		if ret.Get(0) != nil {
   270  			r0 = ret.Get(0).(store.StoreChannel)
   271  		}
   272  	}
   273  
   274  	return r0
   275  }
   276  
   277  // GetByNames provides a mock function with given fields: team_id, names, allowFromCache
   278  func (_m *ChannelStore) GetByNames(team_id string, names []string, allowFromCache bool) store.StoreChannel {
   279  	ret := _m.Called(team_id, names, allowFromCache)
   280  
   281  	var r0 store.StoreChannel
   282  	if rf, ok := ret.Get(0).(func(string, []string, bool) store.StoreChannel); ok {
   283  		r0 = rf(team_id, names, allowFromCache)
   284  	} else {
   285  		if ret.Get(0) != nil {
   286  			r0 = ret.Get(0).(store.StoreChannel)
   287  		}
   288  	}
   289  
   290  	return r0
   291  }
   292  
   293  // GetChannelCounts provides a mock function with given fields: teamId, userId
   294  func (_m *ChannelStore) GetChannelCounts(teamId string, userId string) store.StoreChannel {
   295  	ret := _m.Called(teamId, userId)
   296  
   297  	var r0 store.StoreChannel
   298  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   299  		r0 = rf(teamId, userId)
   300  	} else {
   301  		if ret.Get(0) != nil {
   302  			r0 = ret.Get(0).(store.StoreChannel)
   303  		}
   304  	}
   305  
   306  	return r0
   307  }
   308  
   309  // GetChannelMembersForExport provides a mock function with given fields: userId, teamId
   310  func (_m *ChannelStore) GetChannelMembersForExport(userId string, teamId string) store.StoreChannel {
   311  	ret := _m.Called(userId, teamId)
   312  
   313  	var r0 store.StoreChannel
   314  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   315  		r0 = rf(userId, teamId)
   316  	} else {
   317  		if ret.Get(0) != nil {
   318  			r0 = ret.Get(0).(store.StoreChannel)
   319  		}
   320  	}
   321  
   322  	return r0
   323  }
   324  
   325  // GetChannelMembersTimezones provides a mock function with given fields: channelId
   326  func (_m *ChannelStore) GetChannelMembersTimezones(channelId string) store.StoreChannel {
   327  	ret := _m.Called(channelId)
   328  
   329  	var r0 store.StoreChannel
   330  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   331  		r0 = rf(channelId)
   332  	} else {
   333  		if ret.Get(0) != nil {
   334  			r0 = ret.Get(0).(store.StoreChannel)
   335  		}
   336  	}
   337  
   338  	return r0
   339  }
   340  
   341  // GetChannelUnread provides a mock function with given fields: channelId, userId
   342  func (_m *ChannelStore) GetChannelUnread(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  // GetChannels provides a mock function with given fields: teamId, userId, includeDeleted
   358  func (_m *ChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) store.StoreChannel {
   359  	ret := _m.Called(teamId, userId, includeDeleted)
   360  
   361  	var r0 store.StoreChannel
   362  	if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok {
   363  		r0 = rf(teamId, userId, includeDeleted)
   364  	} else {
   365  		if ret.Get(0) != nil {
   366  			r0 = ret.Get(0).(store.StoreChannel)
   367  		}
   368  	}
   369  
   370  	return r0
   371  }
   372  
   373  // GetChannelsBatchForIndexing provides a mock function with given fields: startTime, endTime, limit
   374  func (_m *ChannelStore) GetChannelsBatchForIndexing(startTime int64, endTime int64, limit int) store.StoreChannel {
   375  	ret := _m.Called(startTime, endTime, limit)
   376  
   377  	var r0 store.StoreChannel
   378  	if rf, ok := ret.Get(0).(func(int64, int64, int) store.StoreChannel); ok {
   379  		r0 = rf(startTime, endTime, limit)
   380  	} else {
   381  		if ret.Get(0) != nil {
   382  			r0 = ret.Get(0).(store.StoreChannel)
   383  		}
   384  	}
   385  
   386  	return r0
   387  }
   388  
   389  // GetChannelsByIds provides a mock function with given fields: channelIds
   390  func (_m *ChannelStore) GetChannelsByIds(channelIds []string) store.StoreChannel {
   391  	ret := _m.Called(channelIds)
   392  
   393  	var r0 store.StoreChannel
   394  	if rf, ok := ret.Get(0).(func([]string) store.StoreChannel); ok {
   395  		r0 = rf(channelIds)
   396  	} else {
   397  		if ret.Get(0) != nil {
   398  			r0 = ret.Get(0).(store.StoreChannel)
   399  		}
   400  	}
   401  
   402  	return r0
   403  }
   404  
   405  // GetChannelsByScheme provides a mock function with given fields: schemeId, offset, limit
   406  func (_m *ChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) store.StoreChannel {
   407  	ret := _m.Called(schemeId, offset, limit)
   408  
   409  	var r0 store.StoreChannel
   410  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   411  		r0 = rf(schemeId, offset, limit)
   412  	} else {
   413  		if ret.Get(0) != nil {
   414  			r0 = ret.Get(0).(store.StoreChannel)
   415  		}
   416  	}
   417  
   418  	return r0
   419  }
   420  
   421  // GetDeleted provides a mock function with given fields: team_id, offset, limit
   422  func (_m *ChannelStore) GetDeleted(team_id string, offset int, limit int) store.StoreChannel {
   423  	ret := _m.Called(team_id, offset, limit)
   424  
   425  	var r0 store.StoreChannel
   426  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   427  		r0 = rf(team_id, offset, limit)
   428  	} else {
   429  		if ret.Get(0) != nil {
   430  			r0 = ret.Get(0).(store.StoreChannel)
   431  		}
   432  	}
   433  
   434  	return r0
   435  }
   436  
   437  // GetDeletedByName provides a mock function with given fields: team_id, name
   438  func (_m *ChannelStore) GetDeletedByName(team_id string, name string) store.StoreChannel {
   439  	ret := _m.Called(team_id, name)
   440  
   441  	var r0 store.StoreChannel
   442  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   443  		r0 = rf(team_id, name)
   444  	} else {
   445  		if ret.Get(0) != nil {
   446  			r0 = ret.Get(0).(store.StoreChannel)
   447  		}
   448  	}
   449  
   450  	return r0
   451  }
   452  
   453  // GetForPost provides a mock function with given fields: postId
   454  func (_m *ChannelStore) GetForPost(postId string) store.StoreChannel {
   455  	ret := _m.Called(postId)
   456  
   457  	var r0 store.StoreChannel
   458  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   459  		r0 = rf(postId)
   460  	} else {
   461  		if ret.Get(0) != nil {
   462  			r0 = ret.Get(0).(store.StoreChannel)
   463  		}
   464  	}
   465  
   466  	return r0
   467  }
   468  
   469  // GetFromMaster provides a mock function with given fields: id
   470  func (_m *ChannelStore) GetFromMaster(id string) store.StoreChannel {
   471  	ret := _m.Called(id)
   472  
   473  	var r0 store.StoreChannel
   474  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   475  		r0 = rf(id)
   476  	} else {
   477  		if ret.Get(0) != nil {
   478  			r0 = ret.Get(0).(store.StoreChannel)
   479  		}
   480  	}
   481  
   482  	return r0
   483  }
   484  
   485  // GetMember provides a mock function with given fields: channelId, userId
   486  func (_m *ChannelStore) GetMember(channelId string, userId string) store.StoreChannel {
   487  	ret := _m.Called(channelId, userId)
   488  
   489  	var r0 store.StoreChannel
   490  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   491  		r0 = rf(channelId, userId)
   492  	} else {
   493  		if ret.Get(0) != nil {
   494  			r0 = ret.Get(0).(store.StoreChannel)
   495  		}
   496  	}
   497  
   498  	return r0
   499  }
   500  
   501  // GetMemberCount provides a mock function with given fields: channelId, allowFromCache
   502  func (_m *ChannelStore) GetMemberCount(channelId string, allowFromCache bool) store.StoreChannel {
   503  	ret := _m.Called(channelId, allowFromCache)
   504  
   505  	var r0 store.StoreChannel
   506  	if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok {
   507  		r0 = rf(channelId, allowFromCache)
   508  	} else {
   509  		if ret.Get(0) != nil {
   510  			r0 = ret.Get(0).(store.StoreChannel)
   511  		}
   512  	}
   513  
   514  	return r0
   515  }
   516  
   517  // GetMemberCountFromCache provides a mock function with given fields: channelId
   518  func (_m *ChannelStore) GetMemberCountFromCache(channelId string) int64 {
   519  	ret := _m.Called(channelId)
   520  
   521  	var r0 int64
   522  	if rf, ok := ret.Get(0).(func(string) int64); ok {
   523  		r0 = rf(channelId)
   524  	} else {
   525  		r0 = ret.Get(0).(int64)
   526  	}
   527  
   528  	return r0
   529  }
   530  
   531  // GetMemberForPost provides a mock function with given fields: postId, userId
   532  func (_m *ChannelStore) GetMemberForPost(postId string, userId string) store.StoreChannel {
   533  	ret := _m.Called(postId, userId)
   534  
   535  	var r0 store.StoreChannel
   536  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   537  		r0 = rf(postId, 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  // GetMembers provides a mock function with given fields: channelId, offset, limit
   548  func (_m *ChannelStore) GetMembers(channelId string, offset int, limit int) store.StoreChannel {
   549  	ret := _m.Called(channelId, offset, limit)
   550  
   551  	var r0 store.StoreChannel
   552  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   553  		r0 = rf(channelId, offset, limit)
   554  	} else {
   555  		if ret.Get(0) != nil {
   556  			r0 = ret.Get(0).(store.StoreChannel)
   557  		}
   558  	}
   559  
   560  	return r0
   561  }
   562  
   563  // GetMembersByIds provides a mock function with given fields: channelId, userIds
   564  func (_m *ChannelStore) GetMembersByIds(channelId string, userIds []string) store.StoreChannel {
   565  	ret := _m.Called(channelId, userIds)
   566  
   567  	var r0 store.StoreChannel
   568  	if rf, ok := ret.Get(0).(func(string, []string) store.StoreChannel); ok {
   569  		r0 = rf(channelId, userIds)
   570  	} else {
   571  		if ret.Get(0) != nil {
   572  			r0 = ret.Get(0).(store.StoreChannel)
   573  		}
   574  	}
   575  
   576  	return r0
   577  }
   578  
   579  // GetMembersForUser provides a mock function with given fields: teamId, userId
   580  func (_m *ChannelStore) GetMembersForUser(teamId string, userId string) store.StoreChannel {
   581  	ret := _m.Called(teamId, userId)
   582  
   583  	var r0 store.StoreChannel
   584  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   585  		r0 = rf(teamId, userId)
   586  	} else {
   587  		if ret.Get(0) != nil {
   588  			r0 = ret.Get(0).(store.StoreChannel)
   589  		}
   590  	}
   591  
   592  	return r0
   593  }
   594  
   595  // GetMembersForUserWithPagination provides a mock function with given fields: teamId, userId, page, perPage
   596  func (_m *ChannelStore) GetMembersForUserWithPagination(teamId string, userId string, page int, perPage int) store.StoreChannel {
   597  	ret := _m.Called(teamId, userId, page, perPage)
   598  
   599  	var r0 store.StoreChannel
   600  	if rf, ok := ret.Get(0).(func(string, string, int, int) store.StoreChannel); ok {
   601  		r0 = rf(teamId, userId, page, perPage)
   602  	} else {
   603  		if ret.Get(0) != nil {
   604  			r0 = ret.Get(0).(store.StoreChannel)
   605  		}
   606  	}
   607  
   608  	return r0
   609  }
   610  
   611  // GetMoreChannels provides a mock function with given fields: teamId, userId, offset, limit
   612  func (_m *ChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) store.StoreChannel {
   613  	ret := _m.Called(teamId, userId, offset, limit)
   614  
   615  	var r0 store.StoreChannel
   616  	if rf, ok := ret.Get(0).(func(string, string, int, int) store.StoreChannel); ok {
   617  		r0 = rf(teamId, userId, offset, limit)
   618  	} else {
   619  		if ret.Get(0) != nil {
   620  			r0 = ret.Get(0).(store.StoreChannel)
   621  		}
   622  	}
   623  
   624  	return r0
   625  }
   626  
   627  // GetPinnedPosts provides a mock function with given fields: channelId
   628  func (_m *ChannelStore) GetPinnedPosts(channelId string) store.StoreChannel {
   629  	ret := _m.Called(channelId)
   630  
   631  	var r0 store.StoreChannel
   632  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   633  		r0 = rf(channelId)
   634  	} else {
   635  		if ret.Get(0) != nil {
   636  			r0 = ret.Get(0).(store.StoreChannel)
   637  		}
   638  	}
   639  
   640  	return r0
   641  }
   642  
   643  // GetPublicChannelsByIdsForTeam provides a mock function with given fields: teamId, channelIds
   644  func (_m *ChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) store.StoreChannel {
   645  	ret := _m.Called(teamId, channelIds)
   646  
   647  	var r0 store.StoreChannel
   648  	if rf, ok := ret.Get(0).(func(string, []string) store.StoreChannel); ok {
   649  		r0 = rf(teamId, channelIds)
   650  	} else {
   651  		if ret.Get(0) != nil {
   652  			r0 = ret.Get(0).(store.StoreChannel)
   653  		}
   654  	}
   655  
   656  	return r0
   657  }
   658  
   659  // GetPublicChannelsForTeam provides a mock function with given fields: teamId, offset, limit
   660  func (_m *ChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) store.StoreChannel {
   661  	ret := _m.Called(teamId, offset, limit)
   662  
   663  	var r0 store.StoreChannel
   664  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   665  		r0 = rf(teamId, offset, limit)
   666  	} else {
   667  		if ret.Get(0) != nil {
   668  			r0 = ret.Get(0).(store.StoreChannel)
   669  		}
   670  	}
   671  
   672  	return r0
   673  }
   674  
   675  // GetTeamChannels provides a mock function with given fields: teamId
   676  func (_m *ChannelStore) GetTeamChannels(teamId string) store.StoreChannel {
   677  	ret := _m.Called(teamId)
   678  
   679  	var r0 store.StoreChannel
   680  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   681  		r0 = rf(teamId)
   682  	} else {
   683  		if ret.Get(0) != nil {
   684  			r0 = ret.Get(0).(store.StoreChannel)
   685  		}
   686  	}
   687  
   688  	return r0
   689  }
   690  
   691  // IncrementMentionCount provides a mock function with given fields: channelId, userId
   692  func (_m *ChannelStore) IncrementMentionCount(channelId string, userId string) store.StoreChannel {
   693  	ret := _m.Called(channelId, userId)
   694  
   695  	var r0 store.StoreChannel
   696  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   697  		r0 = rf(channelId, userId)
   698  	} else {
   699  		if ret.Get(0) != nil {
   700  			r0 = ret.Get(0).(store.StoreChannel)
   701  		}
   702  	}
   703  
   704  	return r0
   705  }
   706  
   707  // InvalidateAllChannelMembersForUser provides a mock function with given fields: userId
   708  func (_m *ChannelStore) InvalidateAllChannelMembersForUser(userId string) {
   709  	_m.Called(userId)
   710  }
   711  
   712  // InvalidateCacheForChannelMembersNotifyProps provides a mock function with given fields: channelId
   713  func (_m *ChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string) {
   714  	_m.Called(channelId)
   715  }
   716  
   717  // InvalidateChannel provides a mock function with given fields: id
   718  func (_m *ChannelStore) InvalidateChannel(id string) {
   719  	_m.Called(id)
   720  }
   721  
   722  // InvalidateChannelByName provides a mock function with given fields: teamId, name
   723  func (_m *ChannelStore) InvalidateChannelByName(teamId string, name string) {
   724  	_m.Called(teamId, name)
   725  }
   726  
   727  // InvalidateMemberCount provides a mock function with given fields: channelId
   728  func (_m *ChannelStore) InvalidateMemberCount(channelId string) {
   729  	_m.Called(channelId)
   730  }
   731  
   732  // IsUserInChannelUseCache provides a mock function with given fields: userId, channelId
   733  func (_m *ChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool {
   734  	ret := _m.Called(userId, channelId)
   735  
   736  	var r0 bool
   737  	if rf, ok := ret.Get(0).(func(string, string) bool); ok {
   738  		r0 = rf(userId, channelId)
   739  	} else {
   740  		r0 = ret.Get(0).(bool)
   741  	}
   742  
   743  	return r0
   744  }
   745  
   746  // MigrateChannelMembers provides a mock function with given fields: fromChannelId, fromUserId
   747  func (_m *ChannelStore) MigrateChannelMembers(fromChannelId string, fromUserId string) store.StoreChannel {
   748  	ret := _m.Called(fromChannelId, fromUserId)
   749  
   750  	var r0 store.StoreChannel
   751  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   752  		r0 = rf(fromChannelId, fromUserId)
   753  	} else {
   754  		if ret.Get(0) != nil {
   755  			r0 = ret.Get(0).(store.StoreChannel)
   756  		}
   757  	}
   758  
   759  	return r0
   760  }
   761  
   762  // MigratePublicChannels provides a mock function with given fields:
   763  func (_m *ChannelStore) MigratePublicChannels() error {
   764  	ret := _m.Called()
   765  
   766  	var r0 error
   767  	if rf, ok := ret.Get(0).(func() error); ok {
   768  		r0 = rf()
   769  	} else {
   770  		r0 = ret.Error(0)
   771  	}
   772  
   773  	return r0
   774  }
   775  
   776  // PermanentDelete provides a mock function with given fields: channelId
   777  func (_m *ChannelStore) PermanentDelete(channelId string) store.StoreChannel {
   778  	ret := _m.Called(channelId)
   779  
   780  	var r0 store.StoreChannel
   781  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   782  		r0 = rf(channelId)
   783  	} else {
   784  		if ret.Get(0) != nil {
   785  			r0 = ret.Get(0).(store.StoreChannel)
   786  		}
   787  	}
   788  
   789  	return r0
   790  }
   791  
   792  // PermanentDeleteByTeam provides a mock function with given fields: teamId
   793  func (_m *ChannelStore) PermanentDeleteByTeam(teamId string) store.StoreChannel {
   794  	ret := _m.Called(teamId)
   795  
   796  	var r0 store.StoreChannel
   797  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   798  		r0 = rf(teamId)
   799  	} else {
   800  		if ret.Get(0) != nil {
   801  			r0 = ret.Get(0).(store.StoreChannel)
   802  		}
   803  	}
   804  
   805  	return r0
   806  }
   807  
   808  // PermanentDeleteMembersByChannel provides a mock function with given fields: channelId
   809  func (_m *ChannelStore) PermanentDeleteMembersByChannel(channelId string) store.StoreChannel {
   810  	ret := _m.Called(channelId)
   811  
   812  	var r0 store.StoreChannel
   813  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   814  		r0 = rf(channelId)
   815  	} else {
   816  		if ret.Get(0) != nil {
   817  			r0 = ret.Get(0).(store.StoreChannel)
   818  		}
   819  	}
   820  
   821  	return r0
   822  }
   823  
   824  // PermanentDeleteMembersByUser provides a mock function with given fields: userId
   825  func (_m *ChannelStore) PermanentDeleteMembersByUser(userId string) store.StoreChannel {
   826  	ret := _m.Called(userId)
   827  
   828  	var r0 store.StoreChannel
   829  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   830  		r0 = rf(userId)
   831  	} else {
   832  		if ret.Get(0) != nil {
   833  			r0 = ret.Get(0).(store.StoreChannel)
   834  		}
   835  	}
   836  
   837  	return r0
   838  }
   839  
   840  // RemoveAllDeactivatedMembers provides a mock function with given fields: channelId
   841  func (_m *ChannelStore) RemoveAllDeactivatedMembers(channelId string) store.StoreChannel {
   842  	ret := _m.Called(channelId)
   843  
   844  	var r0 store.StoreChannel
   845  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   846  		r0 = rf(channelId)
   847  	} else {
   848  		if ret.Get(0) != nil {
   849  			r0 = ret.Get(0).(store.StoreChannel)
   850  		}
   851  	}
   852  
   853  	return r0
   854  }
   855  
   856  // RemoveMember provides a mock function with given fields: channelId, userId
   857  func (_m *ChannelStore) RemoveMember(channelId string, userId string) store.StoreChannel {
   858  	ret := _m.Called(channelId, userId)
   859  
   860  	var r0 store.StoreChannel
   861  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   862  		r0 = rf(channelId, userId)
   863  	} else {
   864  		if ret.Get(0) != nil {
   865  			r0 = ret.Get(0).(store.StoreChannel)
   866  		}
   867  	}
   868  
   869  	return r0
   870  }
   871  
   872  // ResetAllChannelSchemes provides a mock function with given fields:
   873  func (_m *ChannelStore) ResetAllChannelSchemes() store.StoreChannel {
   874  	ret := _m.Called()
   875  
   876  	var r0 store.StoreChannel
   877  	if rf, ok := ret.Get(0).(func() store.StoreChannel); ok {
   878  		r0 = rf()
   879  	} else {
   880  		if ret.Get(0) != nil {
   881  			r0 = ret.Get(0).(store.StoreChannel)
   882  		}
   883  	}
   884  
   885  	return r0
   886  }
   887  
   888  // Restore provides a mock function with given fields: channelId, time
   889  func (_m *ChannelStore) Restore(channelId string, time int64) store.StoreChannel {
   890  	ret := _m.Called(channelId, time)
   891  
   892  	var r0 store.StoreChannel
   893  	if rf, ok := ret.Get(0).(func(string, int64) store.StoreChannel); ok {
   894  		r0 = rf(channelId, time)
   895  	} else {
   896  		if ret.Get(0) != nil {
   897  			r0 = ret.Get(0).(store.StoreChannel)
   898  		}
   899  	}
   900  
   901  	return r0
   902  }
   903  
   904  // Save provides a mock function with given fields: channel, maxChannelsPerTeam
   905  func (_m *ChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) store.StoreChannel {
   906  	ret := _m.Called(channel, maxChannelsPerTeam)
   907  
   908  	var r0 store.StoreChannel
   909  	if rf, ok := ret.Get(0).(func(*model.Channel, int64) store.StoreChannel); ok {
   910  		r0 = rf(channel, maxChannelsPerTeam)
   911  	} else {
   912  		if ret.Get(0) != nil {
   913  			r0 = ret.Get(0).(store.StoreChannel)
   914  		}
   915  	}
   916  
   917  	return r0
   918  }
   919  
   920  // SaveDirectChannel provides a mock function with given fields: channel, member1, member2
   921  func (_m *ChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) store.StoreChannel {
   922  	ret := _m.Called(channel, member1, member2)
   923  
   924  	var r0 store.StoreChannel
   925  	if rf, ok := ret.Get(0).(func(*model.Channel, *model.ChannelMember, *model.ChannelMember) store.StoreChannel); ok {
   926  		r0 = rf(channel, member1, member2)
   927  	} else {
   928  		if ret.Get(0) != nil {
   929  			r0 = ret.Get(0).(store.StoreChannel)
   930  		}
   931  	}
   932  
   933  	return r0
   934  }
   935  
   936  // SaveMember provides a mock function with given fields: member
   937  func (_m *ChannelStore) SaveMember(member *model.ChannelMember) store.StoreChannel {
   938  	ret := _m.Called(member)
   939  
   940  	var r0 store.StoreChannel
   941  	if rf, ok := ret.Get(0).(func(*model.ChannelMember) store.StoreChannel); ok {
   942  		r0 = rf(member)
   943  	} else {
   944  		if ret.Get(0) != nil {
   945  			r0 = ret.Get(0).(store.StoreChannel)
   946  		}
   947  	}
   948  
   949  	return r0
   950  }
   951  
   952  // SearchAllChannels provides a mock function with given fields: term, includeDeleted
   953  func (_m *ChannelStore) SearchAllChannels(term string, includeDeleted bool) store.StoreChannel {
   954  	ret := _m.Called(term, includeDeleted)
   955  
   956  	var r0 store.StoreChannel
   957  	if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok {
   958  		r0 = rf(term, includeDeleted)
   959  	} else {
   960  		if ret.Get(0) != nil {
   961  			r0 = ret.Get(0).(store.StoreChannel)
   962  		}
   963  	}
   964  
   965  	return r0
   966  }
   967  
   968  // SearchInTeam provides a mock function with given fields: teamId, term, includeDeleted
   969  func (_m *ChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) store.StoreChannel {
   970  	ret := _m.Called(teamId, term, includeDeleted)
   971  
   972  	var r0 store.StoreChannel
   973  	if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok {
   974  		r0 = rf(teamId, term, includeDeleted)
   975  	} else {
   976  		if ret.Get(0) != nil {
   977  			r0 = ret.Get(0).(store.StoreChannel)
   978  		}
   979  	}
   980  
   981  	return r0
   982  }
   983  
   984  // SearchMore provides a mock function with given fields: userId, teamId, term
   985  func (_m *ChannelStore) SearchMore(userId string, teamId string, term string) store.StoreChannel {
   986  	ret := _m.Called(userId, teamId, term)
   987  
   988  	var r0 store.StoreChannel
   989  	if rf, ok := ret.Get(0).(func(string, string, string) store.StoreChannel); ok {
   990  		r0 = rf(userId, teamId, term)
   991  	} else {
   992  		if ret.Get(0) != nil {
   993  			r0 = ret.Get(0).(store.StoreChannel)
   994  		}
   995  	}
   996  
   997  	return r0
   998  }
   999  
  1000  // SetDeleteAt provides a mock function with given fields: channelId, deleteAt, updateAt
  1001  func (_m *ChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) store.StoreChannel {
  1002  	ret := _m.Called(channelId, deleteAt, updateAt)
  1003  
  1004  	var r0 store.StoreChannel
  1005  	if rf, ok := ret.Get(0).(func(string, int64, int64) store.StoreChannel); ok {
  1006  		r0 = rf(channelId, deleteAt, updateAt)
  1007  	} else {
  1008  		if ret.Get(0) != nil {
  1009  			r0 = ret.Get(0).(store.StoreChannel)
  1010  		}
  1011  	}
  1012  
  1013  	return r0
  1014  }
  1015  
  1016  // Update provides a mock function with given fields: channel
  1017  func (_m *ChannelStore) Update(channel *model.Channel) store.StoreChannel {
  1018  	ret := _m.Called(channel)
  1019  
  1020  	var r0 store.StoreChannel
  1021  	if rf, ok := ret.Get(0).(func(*model.Channel) store.StoreChannel); ok {
  1022  		r0 = rf(channel)
  1023  	} else {
  1024  		if ret.Get(0) != nil {
  1025  			r0 = ret.Get(0).(store.StoreChannel)
  1026  		}
  1027  	}
  1028  
  1029  	return r0
  1030  }
  1031  
  1032  // UpdateLastViewedAt provides a mock function with given fields: channelIds, userId
  1033  func (_m *ChannelStore) UpdateLastViewedAt(channelIds []string, userId string) store.StoreChannel {
  1034  	ret := _m.Called(channelIds, userId)
  1035  
  1036  	var r0 store.StoreChannel
  1037  	if rf, ok := ret.Get(0).(func([]string, string) store.StoreChannel); ok {
  1038  		r0 = rf(channelIds, userId)
  1039  	} else {
  1040  		if ret.Get(0) != nil {
  1041  			r0 = ret.Get(0).(store.StoreChannel)
  1042  		}
  1043  	}
  1044  
  1045  	return r0
  1046  }
  1047  
  1048  // UpdateMember provides a mock function with given fields: member
  1049  func (_m *ChannelStore) UpdateMember(member *model.ChannelMember) store.StoreChannel {
  1050  	ret := _m.Called(member)
  1051  
  1052  	var r0 store.StoreChannel
  1053  	if rf, ok := ret.Get(0).(func(*model.ChannelMember) store.StoreChannel); ok {
  1054  		r0 = rf(member)
  1055  	} else {
  1056  		if ret.Get(0) != nil {
  1057  			r0 = ret.Get(0).(store.StoreChannel)
  1058  		}
  1059  	}
  1060  
  1061  	return r0
  1062  }