github.com/lologarithm/mattermost-server@v5.3.2-0.20181002060438-c82a84ed765b+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  // DisableExperimentalPublicChannelsMaterialization provides a mock function with given fields:
   134  func (_m *ChannelStore) DisableExperimentalPublicChannelsMaterialization() {
   135  	_m.Called()
   136  }
   137  
   138  // DropPublicChannels provides a mock function with given fields:
   139  func (_m *ChannelStore) DropPublicChannels() error {
   140  	ret := _m.Called()
   141  
   142  	var r0 error
   143  	if rf, ok := ret.Get(0).(func() error); ok {
   144  		r0 = rf()
   145  	} else {
   146  		r0 = ret.Error(0)
   147  	}
   148  
   149  	return r0
   150  }
   151  
   152  // EnableExperimentalPublicChannelsMaterialization provides a mock function with given fields:
   153  func (_m *ChannelStore) EnableExperimentalPublicChannelsMaterialization() {
   154  	_m.Called()
   155  }
   156  
   157  // Get provides a mock function with given fields: id, allowFromCache
   158  func (_m *ChannelStore) Get(id string, allowFromCache bool) store.StoreChannel {
   159  	ret := _m.Called(id, allowFromCache)
   160  
   161  	var r0 store.StoreChannel
   162  	if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok {
   163  		r0 = rf(id, allowFromCache)
   164  	} else {
   165  		if ret.Get(0) != nil {
   166  			r0 = ret.Get(0).(store.StoreChannel)
   167  		}
   168  	}
   169  
   170  	return r0
   171  }
   172  
   173  // GetAll provides a mock function with given fields: teamId
   174  func (_m *ChannelStore) GetAll(teamId string) store.StoreChannel {
   175  	ret := _m.Called(teamId)
   176  
   177  	var r0 store.StoreChannel
   178  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   179  		r0 = rf(teamId)
   180  	} else {
   181  		if ret.Get(0) != nil {
   182  			r0 = ret.Get(0).(store.StoreChannel)
   183  		}
   184  	}
   185  
   186  	return r0
   187  }
   188  
   189  // GetAllChannelMembersForUser provides a mock function with given fields: userId, allowFromCache, includeDeleted
   190  func (_m *ChannelStore) GetAllChannelMembersForUser(userId string, allowFromCache bool, includeDeleted bool) store.StoreChannel {
   191  	ret := _m.Called(userId, allowFromCache, includeDeleted)
   192  
   193  	var r0 store.StoreChannel
   194  	if rf, ok := ret.Get(0).(func(string, bool, bool) store.StoreChannel); ok {
   195  		r0 = rf(userId, allowFromCache, includeDeleted)
   196  	} else {
   197  		if ret.Get(0) != nil {
   198  			r0 = ret.Get(0).(store.StoreChannel)
   199  		}
   200  	}
   201  
   202  	return r0
   203  }
   204  
   205  // GetAllChannelMembersNotifyPropsForChannel provides a mock function with given fields: channelId, allowFromCache
   206  func (_m *ChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) store.StoreChannel {
   207  	ret := _m.Called(channelId, allowFromCache)
   208  
   209  	var r0 store.StoreChannel
   210  	if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok {
   211  		r0 = rf(channelId, allowFromCache)
   212  	} else {
   213  		if ret.Get(0) != nil {
   214  			r0 = ret.Get(0).(store.StoreChannel)
   215  		}
   216  	}
   217  
   218  	return r0
   219  }
   220  
   221  // GetAllChannelsForExportAfter provides a mock function with given fields: limit, afterId
   222  func (_m *ChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) store.StoreChannel {
   223  	ret := _m.Called(limit, afterId)
   224  
   225  	var r0 store.StoreChannel
   226  	if rf, ok := ret.Get(0).(func(int, string) store.StoreChannel); ok {
   227  		r0 = rf(limit, afterId)
   228  	} else {
   229  		if ret.Get(0) != nil {
   230  			r0 = ret.Get(0).(store.StoreChannel)
   231  		}
   232  	}
   233  
   234  	return r0
   235  }
   236  
   237  // GetByName provides a mock function with given fields: team_id, name, allowFromCache
   238  func (_m *ChannelStore) GetByName(team_id string, name string, allowFromCache bool) store.StoreChannel {
   239  	ret := _m.Called(team_id, name, allowFromCache)
   240  
   241  	var r0 store.StoreChannel
   242  	if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok {
   243  		r0 = rf(team_id, name, allowFromCache)
   244  	} else {
   245  		if ret.Get(0) != nil {
   246  			r0 = ret.Get(0).(store.StoreChannel)
   247  		}
   248  	}
   249  
   250  	return r0
   251  }
   252  
   253  // GetByNameIncludeDeleted provides a mock function with given fields: team_id, name, allowFromCache
   254  func (_m *ChannelStore) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) store.StoreChannel {
   255  	ret := _m.Called(team_id, name, allowFromCache)
   256  
   257  	var r0 store.StoreChannel
   258  	if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok {
   259  		r0 = rf(team_id, name, allowFromCache)
   260  	} else {
   261  		if ret.Get(0) != nil {
   262  			r0 = ret.Get(0).(store.StoreChannel)
   263  		}
   264  	}
   265  
   266  	return r0
   267  }
   268  
   269  // GetByNames provides a mock function with given fields: team_id, names, allowFromCache
   270  func (_m *ChannelStore) GetByNames(team_id string, names []string, allowFromCache bool) store.StoreChannel {
   271  	ret := _m.Called(team_id, names, allowFromCache)
   272  
   273  	var r0 store.StoreChannel
   274  	if rf, ok := ret.Get(0).(func(string, []string, bool) store.StoreChannel); ok {
   275  		r0 = rf(team_id, names, allowFromCache)
   276  	} else {
   277  		if ret.Get(0) != nil {
   278  			r0 = ret.Get(0).(store.StoreChannel)
   279  		}
   280  	}
   281  
   282  	return r0
   283  }
   284  
   285  // GetChannelCounts provides a mock function with given fields: teamId, userId
   286  func (_m *ChannelStore) GetChannelCounts(teamId string, userId string) store.StoreChannel {
   287  	ret := _m.Called(teamId, userId)
   288  
   289  	var r0 store.StoreChannel
   290  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   291  		r0 = rf(teamId, userId)
   292  	} else {
   293  		if ret.Get(0) != nil {
   294  			r0 = ret.Get(0).(store.StoreChannel)
   295  		}
   296  	}
   297  
   298  	return r0
   299  }
   300  
   301  // GetChannelMembersForExport provides a mock function with given fields: userId, teamId
   302  func (_m *ChannelStore) GetChannelMembersForExport(userId string, teamId string) store.StoreChannel {
   303  	ret := _m.Called(userId, teamId)
   304  
   305  	var r0 store.StoreChannel
   306  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   307  		r0 = rf(userId, teamId)
   308  	} else {
   309  		if ret.Get(0) != nil {
   310  			r0 = ret.Get(0).(store.StoreChannel)
   311  		}
   312  	}
   313  
   314  	return r0
   315  }
   316  
   317  // GetChannelUnread provides a mock function with given fields: channelId, userId
   318  func (_m *ChannelStore) GetChannelUnread(channelId string, userId string) store.StoreChannel {
   319  	ret := _m.Called(channelId, userId)
   320  
   321  	var r0 store.StoreChannel
   322  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   323  		r0 = rf(channelId, userId)
   324  	} else {
   325  		if ret.Get(0) != nil {
   326  			r0 = ret.Get(0).(store.StoreChannel)
   327  		}
   328  	}
   329  
   330  	return r0
   331  }
   332  
   333  // GetChannels provides a mock function with given fields: teamId, userId, includeDeleted
   334  func (_m *ChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) store.StoreChannel {
   335  	ret := _m.Called(teamId, userId, includeDeleted)
   336  
   337  	var r0 store.StoreChannel
   338  	if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok {
   339  		r0 = rf(teamId, userId, includeDeleted)
   340  	} else {
   341  		if ret.Get(0) != nil {
   342  			r0 = ret.Get(0).(store.StoreChannel)
   343  		}
   344  	}
   345  
   346  	return r0
   347  }
   348  
   349  // GetChannelsByScheme provides a mock function with given fields: schemeId, offset, limit
   350  func (_m *ChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) store.StoreChannel {
   351  	ret := _m.Called(schemeId, offset, limit)
   352  
   353  	var r0 store.StoreChannel
   354  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   355  		r0 = rf(schemeId, offset, limit)
   356  	} else {
   357  		if ret.Get(0) != nil {
   358  			r0 = ret.Get(0).(store.StoreChannel)
   359  		}
   360  	}
   361  
   362  	return r0
   363  }
   364  
   365  // GetDeleted provides a mock function with given fields: team_id, offset, limit
   366  func (_m *ChannelStore) GetDeleted(team_id string, offset int, limit int) store.StoreChannel {
   367  	ret := _m.Called(team_id, offset, limit)
   368  
   369  	var r0 store.StoreChannel
   370  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   371  		r0 = rf(team_id, offset, limit)
   372  	} else {
   373  		if ret.Get(0) != nil {
   374  			r0 = ret.Get(0).(store.StoreChannel)
   375  		}
   376  	}
   377  
   378  	return r0
   379  }
   380  
   381  // GetDeletedByName provides a mock function with given fields: team_id, name
   382  func (_m *ChannelStore) GetDeletedByName(team_id string, name string) store.StoreChannel {
   383  	ret := _m.Called(team_id, name)
   384  
   385  	var r0 store.StoreChannel
   386  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   387  		r0 = rf(team_id, name)
   388  	} else {
   389  		if ret.Get(0) != nil {
   390  			r0 = ret.Get(0).(store.StoreChannel)
   391  		}
   392  	}
   393  
   394  	return r0
   395  }
   396  
   397  // GetForPost provides a mock function with given fields: postId
   398  func (_m *ChannelStore) GetForPost(postId string) store.StoreChannel {
   399  	ret := _m.Called(postId)
   400  
   401  	var r0 store.StoreChannel
   402  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   403  		r0 = rf(postId)
   404  	} else {
   405  		if ret.Get(0) != nil {
   406  			r0 = ret.Get(0).(store.StoreChannel)
   407  		}
   408  	}
   409  
   410  	return r0
   411  }
   412  
   413  // GetFromMaster provides a mock function with given fields: id
   414  func (_m *ChannelStore) GetFromMaster(id string) store.StoreChannel {
   415  	ret := _m.Called(id)
   416  
   417  	var r0 store.StoreChannel
   418  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   419  		r0 = rf(id)
   420  	} else {
   421  		if ret.Get(0) != nil {
   422  			r0 = ret.Get(0).(store.StoreChannel)
   423  		}
   424  	}
   425  
   426  	return r0
   427  }
   428  
   429  // GetMember provides a mock function with given fields: channelId, userId
   430  func (_m *ChannelStore) GetMember(channelId string, userId string) store.StoreChannel {
   431  	ret := _m.Called(channelId, userId)
   432  
   433  	var r0 store.StoreChannel
   434  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   435  		r0 = rf(channelId, userId)
   436  	} else {
   437  		if ret.Get(0) != nil {
   438  			r0 = ret.Get(0).(store.StoreChannel)
   439  		}
   440  	}
   441  
   442  	return r0
   443  }
   444  
   445  // GetMemberCount provides a mock function with given fields: channelId, allowFromCache
   446  func (_m *ChannelStore) GetMemberCount(channelId string, allowFromCache bool) store.StoreChannel {
   447  	ret := _m.Called(channelId, allowFromCache)
   448  
   449  	var r0 store.StoreChannel
   450  	if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok {
   451  		r0 = rf(channelId, allowFromCache)
   452  	} else {
   453  		if ret.Get(0) != nil {
   454  			r0 = ret.Get(0).(store.StoreChannel)
   455  		}
   456  	}
   457  
   458  	return r0
   459  }
   460  
   461  // GetMemberCountFromCache provides a mock function with given fields: channelId
   462  func (_m *ChannelStore) GetMemberCountFromCache(channelId string) int64 {
   463  	ret := _m.Called(channelId)
   464  
   465  	var r0 int64
   466  	if rf, ok := ret.Get(0).(func(string) int64); ok {
   467  		r0 = rf(channelId)
   468  	} else {
   469  		r0 = ret.Get(0).(int64)
   470  	}
   471  
   472  	return r0
   473  }
   474  
   475  // GetMemberForPost provides a mock function with given fields: postId, userId
   476  func (_m *ChannelStore) GetMemberForPost(postId string, userId string) store.StoreChannel {
   477  	ret := _m.Called(postId, userId)
   478  
   479  	var r0 store.StoreChannel
   480  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   481  		r0 = rf(postId, userId)
   482  	} else {
   483  		if ret.Get(0) != nil {
   484  			r0 = ret.Get(0).(store.StoreChannel)
   485  		}
   486  	}
   487  
   488  	return r0
   489  }
   490  
   491  // GetMembers provides a mock function with given fields: channelId, offset, limit
   492  func (_m *ChannelStore) GetMembers(channelId string, offset int, limit int) store.StoreChannel {
   493  	ret := _m.Called(channelId, offset, limit)
   494  
   495  	var r0 store.StoreChannel
   496  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   497  		r0 = rf(channelId, offset, limit)
   498  	} else {
   499  		if ret.Get(0) != nil {
   500  			r0 = ret.Get(0).(store.StoreChannel)
   501  		}
   502  	}
   503  
   504  	return r0
   505  }
   506  
   507  // GetMembersByIds provides a mock function with given fields: channelId, userIds
   508  func (_m *ChannelStore) GetMembersByIds(channelId string, userIds []string) store.StoreChannel {
   509  	ret := _m.Called(channelId, userIds)
   510  
   511  	var r0 store.StoreChannel
   512  	if rf, ok := ret.Get(0).(func(string, []string) store.StoreChannel); ok {
   513  		r0 = rf(channelId, userIds)
   514  	} else {
   515  		if ret.Get(0) != nil {
   516  			r0 = ret.Get(0).(store.StoreChannel)
   517  		}
   518  	}
   519  
   520  	return r0
   521  }
   522  
   523  // GetMembersForUser provides a mock function with given fields: teamId, userId
   524  func (_m *ChannelStore) GetMembersForUser(teamId string, userId string) store.StoreChannel {
   525  	ret := _m.Called(teamId, userId)
   526  
   527  	var r0 store.StoreChannel
   528  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   529  		r0 = rf(teamId, userId)
   530  	} else {
   531  		if ret.Get(0) != nil {
   532  			r0 = ret.Get(0).(store.StoreChannel)
   533  		}
   534  	}
   535  
   536  	return r0
   537  }
   538  
   539  // GetMoreChannels provides a mock function with given fields: teamId, userId, offset, limit
   540  func (_m *ChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) store.StoreChannel {
   541  	ret := _m.Called(teamId, userId, offset, limit)
   542  
   543  	var r0 store.StoreChannel
   544  	if rf, ok := ret.Get(0).(func(string, string, int, int) store.StoreChannel); ok {
   545  		r0 = rf(teamId, userId, offset, limit)
   546  	} else {
   547  		if ret.Get(0) != nil {
   548  			r0 = ret.Get(0).(store.StoreChannel)
   549  		}
   550  	}
   551  
   552  	return r0
   553  }
   554  
   555  // GetPinnedPosts provides a mock function with given fields: channelId
   556  func (_m *ChannelStore) GetPinnedPosts(channelId string) store.StoreChannel {
   557  	ret := _m.Called(channelId)
   558  
   559  	var r0 store.StoreChannel
   560  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   561  		r0 = rf(channelId)
   562  	} else {
   563  		if ret.Get(0) != nil {
   564  			r0 = ret.Get(0).(store.StoreChannel)
   565  		}
   566  	}
   567  
   568  	return r0
   569  }
   570  
   571  // GetPublicChannelsByIdsForTeam provides a mock function with given fields: teamId, channelIds
   572  func (_m *ChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) store.StoreChannel {
   573  	ret := _m.Called(teamId, channelIds)
   574  
   575  	var r0 store.StoreChannel
   576  	if rf, ok := ret.Get(0).(func(string, []string) store.StoreChannel); ok {
   577  		r0 = rf(teamId, channelIds)
   578  	} else {
   579  		if ret.Get(0) != nil {
   580  			r0 = ret.Get(0).(store.StoreChannel)
   581  		}
   582  	}
   583  
   584  	return r0
   585  }
   586  
   587  // GetPublicChannelsForTeam provides a mock function with given fields: teamId, offset, limit
   588  func (_m *ChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) store.StoreChannel {
   589  	ret := _m.Called(teamId, offset, limit)
   590  
   591  	var r0 store.StoreChannel
   592  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   593  		r0 = rf(teamId, offset, limit)
   594  	} else {
   595  		if ret.Get(0) != nil {
   596  			r0 = ret.Get(0).(store.StoreChannel)
   597  		}
   598  	}
   599  
   600  	return r0
   601  }
   602  
   603  // GetTeamChannels provides a mock function with given fields: teamId
   604  func (_m *ChannelStore) GetTeamChannels(teamId string) store.StoreChannel {
   605  	ret := _m.Called(teamId)
   606  
   607  	var r0 store.StoreChannel
   608  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   609  		r0 = rf(teamId)
   610  	} else {
   611  		if ret.Get(0) != nil {
   612  			r0 = ret.Get(0).(store.StoreChannel)
   613  		}
   614  	}
   615  
   616  	return r0
   617  }
   618  
   619  // IncrementMentionCount provides a mock function with given fields: channelId, userId
   620  func (_m *ChannelStore) IncrementMentionCount(channelId string, userId string) store.StoreChannel {
   621  	ret := _m.Called(channelId, userId)
   622  
   623  	var r0 store.StoreChannel
   624  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   625  		r0 = rf(channelId, userId)
   626  	} else {
   627  		if ret.Get(0) != nil {
   628  			r0 = ret.Get(0).(store.StoreChannel)
   629  		}
   630  	}
   631  
   632  	return r0
   633  }
   634  
   635  // InvalidateAllChannelMembersForUser provides a mock function with given fields: userId
   636  func (_m *ChannelStore) InvalidateAllChannelMembersForUser(userId string) {
   637  	_m.Called(userId)
   638  }
   639  
   640  // InvalidateCacheForChannelMembersNotifyProps provides a mock function with given fields: channelId
   641  func (_m *ChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string) {
   642  	_m.Called(channelId)
   643  }
   644  
   645  // InvalidateChannel provides a mock function with given fields: id
   646  func (_m *ChannelStore) InvalidateChannel(id string) {
   647  	_m.Called(id)
   648  }
   649  
   650  // InvalidateChannelByName provides a mock function with given fields: teamId, name
   651  func (_m *ChannelStore) InvalidateChannelByName(teamId string, name string) {
   652  	_m.Called(teamId, name)
   653  }
   654  
   655  // InvalidateMemberCount provides a mock function with given fields: channelId
   656  func (_m *ChannelStore) InvalidateMemberCount(channelId string) {
   657  	_m.Called(channelId)
   658  }
   659  
   660  // IsExperimentalPublicChannelsMaterializationEnabled provides a mock function with given fields:
   661  func (_m *ChannelStore) IsExperimentalPublicChannelsMaterializationEnabled() bool {
   662  	ret := _m.Called()
   663  
   664  	var r0 bool
   665  	if rf, ok := ret.Get(0).(func() bool); ok {
   666  		r0 = rf()
   667  	} else {
   668  		r0 = ret.Get(0).(bool)
   669  	}
   670  
   671  	return r0
   672  }
   673  
   674  // IsUserInChannelUseCache provides a mock function with given fields: userId, channelId
   675  func (_m *ChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool {
   676  	ret := _m.Called(userId, channelId)
   677  
   678  	var r0 bool
   679  	if rf, ok := ret.Get(0).(func(string, string) bool); ok {
   680  		r0 = rf(userId, channelId)
   681  	} else {
   682  		r0 = ret.Get(0).(bool)
   683  	}
   684  
   685  	return r0
   686  }
   687  
   688  // MigrateChannelMembers provides a mock function with given fields: fromChannelId, fromUserId
   689  func (_m *ChannelStore) MigrateChannelMembers(fromChannelId string, fromUserId string) store.StoreChannel {
   690  	ret := _m.Called(fromChannelId, fromUserId)
   691  
   692  	var r0 store.StoreChannel
   693  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   694  		r0 = rf(fromChannelId, fromUserId)
   695  	} else {
   696  		if ret.Get(0) != nil {
   697  			r0 = ret.Get(0).(store.StoreChannel)
   698  		}
   699  	}
   700  
   701  	return r0
   702  }
   703  
   704  // MigratePublicChannels provides a mock function with given fields:
   705  func (_m *ChannelStore) MigratePublicChannels() error {
   706  	ret := _m.Called()
   707  
   708  	var r0 error
   709  	if rf, ok := ret.Get(0).(func() error); ok {
   710  		r0 = rf()
   711  	} else {
   712  		r0 = ret.Error(0)
   713  	}
   714  
   715  	return r0
   716  }
   717  
   718  // PermanentDelete provides a mock function with given fields: channelId
   719  func (_m *ChannelStore) PermanentDelete(channelId string) store.StoreChannel {
   720  	ret := _m.Called(channelId)
   721  
   722  	var r0 store.StoreChannel
   723  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   724  		r0 = rf(channelId)
   725  	} else {
   726  		if ret.Get(0) != nil {
   727  			r0 = ret.Get(0).(store.StoreChannel)
   728  		}
   729  	}
   730  
   731  	return r0
   732  }
   733  
   734  // PermanentDeleteByTeam provides a mock function with given fields: teamId
   735  func (_m *ChannelStore) PermanentDeleteByTeam(teamId string) store.StoreChannel {
   736  	ret := _m.Called(teamId)
   737  
   738  	var r0 store.StoreChannel
   739  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   740  		r0 = rf(teamId)
   741  	} else {
   742  		if ret.Get(0) != nil {
   743  			r0 = ret.Get(0).(store.StoreChannel)
   744  		}
   745  	}
   746  
   747  	return r0
   748  }
   749  
   750  // PermanentDeleteMembersByChannel provides a mock function with given fields: channelId
   751  func (_m *ChannelStore) PermanentDeleteMembersByChannel(channelId string) store.StoreChannel {
   752  	ret := _m.Called(channelId)
   753  
   754  	var r0 store.StoreChannel
   755  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   756  		r0 = rf(channelId)
   757  	} else {
   758  		if ret.Get(0) != nil {
   759  			r0 = ret.Get(0).(store.StoreChannel)
   760  		}
   761  	}
   762  
   763  	return r0
   764  }
   765  
   766  // PermanentDeleteMembersByUser provides a mock function with given fields: userId
   767  func (_m *ChannelStore) PermanentDeleteMembersByUser(userId string) store.StoreChannel {
   768  	ret := _m.Called(userId)
   769  
   770  	var r0 store.StoreChannel
   771  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   772  		r0 = rf(userId)
   773  	} else {
   774  		if ret.Get(0) != nil {
   775  			r0 = ret.Get(0).(store.StoreChannel)
   776  		}
   777  	}
   778  
   779  	return r0
   780  }
   781  
   782  // RemoveMember provides a mock function with given fields: channelId, userId
   783  func (_m *ChannelStore) RemoveMember(channelId string, userId string) store.StoreChannel {
   784  	ret := _m.Called(channelId, userId)
   785  
   786  	var r0 store.StoreChannel
   787  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   788  		r0 = rf(channelId, userId)
   789  	} else {
   790  		if ret.Get(0) != nil {
   791  			r0 = ret.Get(0).(store.StoreChannel)
   792  		}
   793  	}
   794  
   795  	return r0
   796  }
   797  
   798  // ResetAllChannelSchemes provides a mock function with given fields:
   799  func (_m *ChannelStore) ResetAllChannelSchemes() store.StoreChannel {
   800  	ret := _m.Called()
   801  
   802  	var r0 store.StoreChannel
   803  	if rf, ok := ret.Get(0).(func() store.StoreChannel); ok {
   804  		r0 = rf()
   805  	} else {
   806  		if ret.Get(0) != nil {
   807  			r0 = ret.Get(0).(store.StoreChannel)
   808  		}
   809  	}
   810  
   811  	return r0
   812  }
   813  
   814  // ResetLastPostAt provides a mock function with given fields:
   815  func (_m *ChannelStore) ResetLastPostAt() store.StoreChannel {
   816  	ret := _m.Called()
   817  
   818  	var r0 store.StoreChannel
   819  	if rf, ok := ret.Get(0).(func() store.StoreChannel); ok {
   820  		r0 = rf()
   821  	} else {
   822  		if ret.Get(0) != nil {
   823  			r0 = ret.Get(0).(store.StoreChannel)
   824  		}
   825  	}
   826  
   827  	return r0
   828  }
   829  
   830  // Restore provides a mock function with given fields: channelId, time
   831  func (_m *ChannelStore) Restore(channelId string, time int64) store.StoreChannel {
   832  	ret := _m.Called(channelId, time)
   833  
   834  	var r0 store.StoreChannel
   835  	if rf, ok := ret.Get(0).(func(string, int64) store.StoreChannel); ok {
   836  		r0 = rf(channelId, time)
   837  	} else {
   838  		if ret.Get(0) != nil {
   839  			r0 = ret.Get(0).(store.StoreChannel)
   840  		}
   841  	}
   842  
   843  	return r0
   844  }
   845  
   846  // Save provides a mock function with given fields: channel, maxChannelsPerTeam
   847  func (_m *ChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) store.StoreChannel {
   848  	ret := _m.Called(channel, maxChannelsPerTeam)
   849  
   850  	var r0 store.StoreChannel
   851  	if rf, ok := ret.Get(0).(func(*model.Channel, int64) store.StoreChannel); ok {
   852  		r0 = rf(channel, maxChannelsPerTeam)
   853  	} else {
   854  		if ret.Get(0) != nil {
   855  			r0 = ret.Get(0).(store.StoreChannel)
   856  		}
   857  	}
   858  
   859  	return r0
   860  }
   861  
   862  // SaveDirectChannel provides a mock function with given fields: channel, member1, member2
   863  func (_m *ChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) store.StoreChannel {
   864  	ret := _m.Called(channel, member1, member2)
   865  
   866  	var r0 store.StoreChannel
   867  	if rf, ok := ret.Get(0).(func(*model.Channel, *model.ChannelMember, *model.ChannelMember) store.StoreChannel); ok {
   868  		r0 = rf(channel, member1, member2)
   869  	} else {
   870  		if ret.Get(0) != nil {
   871  			r0 = ret.Get(0).(store.StoreChannel)
   872  		}
   873  	}
   874  
   875  	return r0
   876  }
   877  
   878  // SaveMember provides a mock function with given fields: member
   879  func (_m *ChannelStore) SaveMember(member *model.ChannelMember) store.StoreChannel {
   880  	ret := _m.Called(member)
   881  
   882  	var r0 store.StoreChannel
   883  	if rf, ok := ret.Get(0).(func(*model.ChannelMember) store.StoreChannel); ok {
   884  		r0 = rf(member)
   885  	} else {
   886  		if ret.Get(0) != nil {
   887  			r0 = ret.Get(0).(store.StoreChannel)
   888  		}
   889  	}
   890  
   891  	return r0
   892  }
   893  
   894  // SearchInTeam provides a mock function with given fields: teamId, term, includeDeleted
   895  func (_m *ChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) store.StoreChannel {
   896  	ret := _m.Called(teamId, term, includeDeleted)
   897  
   898  	var r0 store.StoreChannel
   899  	if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok {
   900  		r0 = rf(teamId, term, includeDeleted)
   901  	} else {
   902  		if ret.Get(0) != nil {
   903  			r0 = ret.Get(0).(store.StoreChannel)
   904  		}
   905  	}
   906  
   907  	return r0
   908  }
   909  
   910  // SearchMore provides a mock function with given fields: userId, teamId, term
   911  func (_m *ChannelStore) SearchMore(userId string, teamId string, term string) store.StoreChannel {
   912  	ret := _m.Called(userId, teamId, term)
   913  
   914  	var r0 store.StoreChannel
   915  	if rf, ok := ret.Get(0).(func(string, string, string) store.StoreChannel); ok {
   916  		r0 = rf(userId, teamId, term)
   917  	} else {
   918  		if ret.Get(0) != nil {
   919  			r0 = ret.Get(0).(store.StoreChannel)
   920  		}
   921  	}
   922  
   923  	return r0
   924  }
   925  
   926  // SetDeleteAt provides a mock function with given fields: channelId, deleteAt, updateAt
   927  func (_m *ChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) store.StoreChannel {
   928  	ret := _m.Called(channelId, deleteAt, updateAt)
   929  
   930  	var r0 store.StoreChannel
   931  	if rf, ok := ret.Get(0).(func(string, int64, int64) store.StoreChannel); ok {
   932  		r0 = rf(channelId, deleteAt, updateAt)
   933  	} else {
   934  		if ret.Get(0) != nil {
   935  			r0 = ret.Get(0).(store.StoreChannel)
   936  		}
   937  	}
   938  
   939  	return r0
   940  }
   941  
   942  // Update provides a mock function with given fields: channel
   943  func (_m *ChannelStore) Update(channel *model.Channel) store.StoreChannel {
   944  	ret := _m.Called(channel)
   945  
   946  	var r0 store.StoreChannel
   947  	if rf, ok := ret.Get(0).(func(*model.Channel) store.StoreChannel); ok {
   948  		r0 = rf(channel)
   949  	} else {
   950  		if ret.Get(0) != nil {
   951  			r0 = ret.Get(0).(store.StoreChannel)
   952  		}
   953  	}
   954  
   955  	return r0
   956  }
   957  
   958  // UpdateLastViewedAt provides a mock function with given fields: channelIds, userId
   959  func (_m *ChannelStore) UpdateLastViewedAt(channelIds []string, userId string) store.StoreChannel {
   960  	ret := _m.Called(channelIds, userId)
   961  
   962  	var r0 store.StoreChannel
   963  	if rf, ok := ret.Get(0).(func([]string, string) store.StoreChannel); ok {
   964  		r0 = rf(channelIds, userId)
   965  	} else {
   966  		if ret.Get(0) != nil {
   967  			r0 = ret.Get(0).(store.StoreChannel)
   968  		}
   969  	}
   970  
   971  	return r0
   972  }
   973  
   974  // UpdateMember provides a mock function with given fields: member
   975  func (_m *ChannelStore) UpdateMember(member *model.ChannelMember) store.StoreChannel {
   976  	ret := _m.Called(member)
   977  
   978  	var r0 store.StoreChannel
   979  	if rf, ok := ret.Get(0).(func(*model.ChannelMember) store.StoreChannel); ok {
   980  		r0 = rf(member)
   981  	} else {
   982  		if ret.Get(0) != nil {
   983  			r0 = ret.Get(0).(store.StoreChannel)
   984  		}
   985  	}
   986  
   987  	return r0
   988  }