github.com/jfrerich/mattermost-server@v5.8.0-rc2+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  // GetByName provides a mock function with given fields: team_id, name, allowFromCache
   230  func (_m *ChannelStore) GetByName(team_id string, name string, allowFromCache bool) store.StoreChannel {
   231  	ret := _m.Called(team_id, name, allowFromCache)
   232  
   233  	var r0 store.StoreChannel
   234  	if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok {
   235  		r0 = rf(team_id, name, allowFromCache)
   236  	} else {
   237  		if ret.Get(0) != nil {
   238  			r0 = ret.Get(0).(store.StoreChannel)
   239  		}
   240  	}
   241  
   242  	return r0
   243  }
   244  
   245  // GetByNameIncludeDeleted provides a mock function with given fields: team_id, name, allowFromCache
   246  func (_m *ChannelStore) GetByNameIncludeDeleted(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  // GetByNames provides a mock function with given fields: team_id, names, allowFromCache
   262  func (_m *ChannelStore) GetByNames(team_id string, names []string, allowFromCache bool) store.StoreChannel {
   263  	ret := _m.Called(team_id, names, 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, names, 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  // GetChannelCounts provides a mock function with given fields: teamId, userId
   278  func (_m *ChannelStore) GetChannelCounts(teamId string, userId string) store.StoreChannel {
   279  	ret := _m.Called(teamId, userId)
   280  
   281  	var r0 store.StoreChannel
   282  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   283  		r0 = rf(teamId, userId)
   284  	} else {
   285  		if ret.Get(0) != nil {
   286  			r0 = ret.Get(0).(store.StoreChannel)
   287  		}
   288  	}
   289  
   290  	return r0
   291  }
   292  
   293  // GetChannelMembersForExport provides a mock function with given fields: userId, teamId
   294  func (_m *ChannelStore) GetChannelMembersForExport(userId string, teamId string) store.StoreChannel {
   295  	ret := _m.Called(userId, teamId)
   296  
   297  	var r0 store.StoreChannel
   298  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   299  		r0 = rf(userId, teamId)
   300  	} else {
   301  		if ret.Get(0) != nil {
   302  			r0 = ret.Get(0).(store.StoreChannel)
   303  		}
   304  	}
   305  
   306  	return r0
   307  }
   308  
   309  // GetChannelMembersTimezones provides a mock function with given fields: channelId
   310  func (_m *ChannelStore) GetChannelMembersTimezones(channelId string) store.StoreChannel {
   311  	ret := _m.Called(channelId)
   312  
   313  	var r0 store.StoreChannel
   314  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   315  		r0 = rf(channelId)
   316  	} else {
   317  		if ret.Get(0) != nil {
   318  			r0 = ret.Get(0).(store.StoreChannel)
   319  		}
   320  	}
   321  
   322  	return r0
   323  }
   324  
   325  // GetChannelUnread provides a mock function with given fields: channelId, userId
   326  func (_m *ChannelStore) GetChannelUnread(channelId string, userId string) store.StoreChannel {
   327  	ret := _m.Called(channelId, userId)
   328  
   329  	var r0 store.StoreChannel
   330  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   331  		r0 = rf(channelId, userId)
   332  	} else {
   333  		if ret.Get(0) != nil {
   334  			r0 = ret.Get(0).(store.StoreChannel)
   335  		}
   336  	}
   337  
   338  	return r0
   339  }
   340  
   341  // GetChannels provides a mock function with given fields: teamId, userId, includeDeleted
   342  func (_m *ChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) store.StoreChannel {
   343  	ret := _m.Called(teamId, userId, includeDeleted)
   344  
   345  	var r0 store.StoreChannel
   346  	if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok {
   347  		r0 = rf(teamId, userId, includeDeleted)
   348  	} else {
   349  		if ret.Get(0) != nil {
   350  			r0 = ret.Get(0).(store.StoreChannel)
   351  		}
   352  	}
   353  
   354  	return r0
   355  }
   356  
   357  // GetChannelsByScheme provides a mock function with given fields: schemeId, offset, limit
   358  func (_m *ChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) store.StoreChannel {
   359  	ret := _m.Called(schemeId, offset, limit)
   360  
   361  	var r0 store.StoreChannel
   362  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   363  		r0 = rf(schemeId, offset, limit)
   364  	} else {
   365  		if ret.Get(0) != nil {
   366  			r0 = ret.Get(0).(store.StoreChannel)
   367  		}
   368  	}
   369  
   370  	return r0
   371  }
   372  
   373  // GetDeleted provides a mock function with given fields: team_id, offset, limit
   374  func (_m *ChannelStore) GetDeleted(team_id string, offset int, limit int) store.StoreChannel {
   375  	ret := _m.Called(team_id, offset, limit)
   376  
   377  	var r0 store.StoreChannel
   378  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   379  		r0 = rf(team_id, offset, 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  // GetDeletedByName provides a mock function with given fields: team_id, name
   390  func (_m *ChannelStore) GetDeletedByName(team_id string, name string) store.StoreChannel {
   391  	ret := _m.Called(team_id, name)
   392  
   393  	var r0 store.StoreChannel
   394  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   395  		r0 = rf(team_id, name)
   396  	} else {
   397  		if ret.Get(0) != nil {
   398  			r0 = ret.Get(0).(store.StoreChannel)
   399  		}
   400  	}
   401  
   402  	return r0
   403  }
   404  
   405  // GetForPost provides a mock function with given fields: postId
   406  func (_m *ChannelStore) GetForPost(postId string) store.StoreChannel {
   407  	ret := _m.Called(postId)
   408  
   409  	var r0 store.StoreChannel
   410  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   411  		r0 = rf(postId)
   412  	} else {
   413  		if ret.Get(0) != nil {
   414  			r0 = ret.Get(0).(store.StoreChannel)
   415  		}
   416  	}
   417  
   418  	return r0
   419  }
   420  
   421  // GetFromMaster provides a mock function with given fields: id
   422  func (_m *ChannelStore) GetFromMaster(id string) store.StoreChannel {
   423  	ret := _m.Called(id)
   424  
   425  	var r0 store.StoreChannel
   426  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   427  		r0 = rf(id)
   428  	} else {
   429  		if ret.Get(0) != nil {
   430  			r0 = ret.Get(0).(store.StoreChannel)
   431  		}
   432  	}
   433  
   434  	return r0
   435  }
   436  
   437  // GetMember provides a mock function with given fields: channelId, userId
   438  func (_m *ChannelStore) GetMember(channelId string, userId string) store.StoreChannel {
   439  	ret := _m.Called(channelId, userId)
   440  
   441  	var r0 store.StoreChannel
   442  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   443  		r0 = rf(channelId, userId)
   444  	} else {
   445  		if ret.Get(0) != nil {
   446  			r0 = ret.Get(0).(store.StoreChannel)
   447  		}
   448  	}
   449  
   450  	return r0
   451  }
   452  
   453  // GetMemberCount provides a mock function with given fields: channelId, allowFromCache
   454  func (_m *ChannelStore) GetMemberCount(channelId string, allowFromCache bool) store.StoreChannel {
   455  	ret := _m.Called(channelId, allowFromCache)
   456  
   457  	var r0 store.StoreChannel
   458  	if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok {
   459  		r0 = rf(channelId, allowFromCache)
   460  	} else {
   461  		if ret.Get(0) != nil {
   462  			r0 = ret.Get(0).(store.StoreChannel)
   463  		}
   464  	}
   465  
   466  	return r0
   467  }
   468  
   469  // GetMemberCountFromCache provides a mock function with given fields: channelId
   470  func (_m *ChannelStore) GetMemberCountFromCache(channelId string) int64 {
   471  	ret := _m.Called(channelId)
   472  
   473  	var r0 int64
   474  	if rf, ok := ret.Get(0).(func(string) int64); ok {
   475  		r0 = rf(channelId)
   476  	} else {
   477  		r0 = ret.Get(0).(int64)
   478  	}
   479  
   480  	return r0
   481  }
   482  
   483  // GetMemberForPost provides a mock function with given fields: postId, userId
   484  func (_m *ChannelStore) GetMemberForPost(postId string, userId string) store.StoreChannel {
   485  	ret := _m.Called(postId, userId)
   486  
   487  	var r0 store.StoreChannel
   488  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   489  		r0 = rf(postId, userId)
   490  	} else {
   491  		if ret.Get(0) != nil {
   492  			r0 = ret.Get(0).(store.StoreChannel)
   493  		}
   494  	}
   495  
   496  	return r0
   497  }
   498  
   499  // GetMembers provides a mock function with given fields: channelId, offset, limit
   500  func (_m *ChannelStore) GetMembers(channelId string, offset int, limit int) store.StoreChannel {
   501  	ret := _m.Called(channelId, offset, limit)
   502  
   503  	var r0 store.StoreChannel
   504  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   505  		r0 = rf(channelId, offset, limit)
   506  	} else {
   507  		if ret.Get(0) != nil {
   508  			r0 = ret.Get(0).(store.StoreChannel)
   509  		}
   510  	}
   511  
   512  	return r0
   513  }
   514  
   515  // GetMembersByIds provides a mock function with given fields: channelId, userIds
   516  func (_m *ChannelStore) GetMembersByIds(channelId string, userIds []string) store.StoreChannel {
   517  	ret := _m.Called(channelId, userIds)
   518  
   519  	var r0 store.StoreChannel
   520  	if rf, ok := ret.Get(0).(func(string, []string) store.StoreChannel); ok {
   521  		r0 = rf(channelId, userIds)
   522  	} else {
   523  		if ret.Get(0) != nil {
   524  			r0 = ret.Get(0).(store.StoreChannel)
   525  		}
   526  	}
   527  
   528  	return r0
   529  }
   530  
   531  // GetMembersForUser provides a mock function with given fields: teamId, userId
   532  func (_m *ChannelStore) GetMembersForUser(teamId string, userId string) store.StoreChannel {
   533  	ret := _m.Called(teamId, userId)
   534  
   535  	var r0 store.StoreChannel
   536  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   537  		r0 = rf(teamId, 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  // GetMoreChannels provides a mock function with given fields: teamId, userId, offset, limit
   548  func (_m *ChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) store.StoreChannel {
   549  	ret := _m.Called(teamId, userId, offset, limit)
   550  
   551  	var r0 store.StoreChannel
   552  	if rf, ok := ret.Get(0).(func(string, string, int, int) store.StoreChannel); ok {
   553  		r0 = rf(teamId, userId, 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  // GetPinnedPosts provides a mock function with given fields: channelId
   564  func (_m *ChannelStore) GetPinnedPosts(channelId string) store.StoreChannel {
   565  	ret := _m.Called(channelId)
   566  
   567  	var r0 store.StoreChannel
   568  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   569  		r0 = rf(channelId)
   570  	} else {
   571  		if ret.Get(0) != nil {
   572  			r0 = ret.Get(0).(store.StoreChannel)
   573  		}
   574  	}
   575  
   576  	return r0
   577  }
   578  
   579  // GetPublicChannelsByIdsForTeam provides a mock function with given fields: teamId, channelIds
   580  func (_m *ChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) store.StoreChannel {
   581  	ret := _m.Called(teamId, channelIds)
   582  
   583  	var r0 store.StoreChannel
   584  	if rf, ok := ret.Get(0).(func(string, []string) store.StoreChannel); ok {
   585  		r0 = rf(teamId, channelIds)
   586  	} else {
   587  		if ret.Get(0) != nil {
   588  			r0 = ret.Get(0).(store.StoreChannel)
   589  		}
   590  	}
   591  
   592  	return r0
   593  }
   594  
   595  // GetPublicChannelsForTeam provides a mock function with given fields: teamId, offset, limit
   596  func (_m *ChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) store.StoreChannel {
   597  	ret := _m.Called(teamId, offset, limit)
   598  
   599  	var r0 store.StoreChannel
   600  	if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok {
   601  		r0 = rf(teamId, offset, limit)
   602  	} else {
   603  		if ret.Get(0) != nil {
   604  			r0 = ret.Get(0).(store.StoreChannel)
   605  		}
   606  	}
   607  
   608  	return r0
   609  }
   610  
   611  // GetTeamChannels provides a mock function with given fields: teamId
   612  func (_m *ChannelStore) GetTeamChannels(teamId string) store.StoreChannel {
   613  	ret := _m.Called(teamId)
   614  
   615  	var r0 store.StoreChannel
   616  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   617  		r0 = rf(teamId)
   618  	} else {
   619  		if ret.Get(0) != nil {
   620  			r0 = ret.Get(0).(store.StoreChannel)
   621  		}
   622  	}
   623  
   624  	return r0
   625  }
   626  
   627  // IncrementMentionCount provides a mock function with given fields: channelId, userId
   628  func (_m *ChannelStore) IncrementMentionCount(channelId string, userId string) store.StoreChannel {
   629  	ret := _m.Called(channelId, userId)
   630  
   631  	var r0 store.StoreChannel
   632  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   633  		r0 = rf(channelId, userId)
   634  	} else {
   635  		if ret.Get(0) != nil {
   636  			r0 = ret.Get(0).(store.StoreChannel)
   637  		}
   638  	}
   639  
   640  	return r0
   641  }
   642  
   643  // InvalidateAllChannelMembersForUser provides a mock function with given fields: userId
   644  func (_m *ChannelStore) InvalidateAllChannelMembersForUser(userId string) {
   645  	_m.Called(userId)
   646  }
   647  
   648  // InvalidateCacheForChannelMembersNotifyProps provides a mock function with given fields: channelId
   649  func (_m *ChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string) {
   650  	_m.Called(channelId)
   651  }
   652  
   653  // InvalidateChannel provides a mock function with given fields: id
   654  func (_m *ChannelStore) InvalidateChannel(id string) {
   655  	_m.Called(id)
   656  }
   657  
   658  // InvalidateChannelByName provides a mock function with given fields: teamId, name
   659  func (_m *ChannelStore) InvalidateChannelByName(teamId string, name string) {
   660  	_m.Called(teamId, name)
   661  }
   662  
   663  // InvalidateMemberCount provides a mock function with given fields: channelId
   664  func (_m *ChannelStore) InvalidateMemberCount(channelId string) {
   665  	_m.Called(channelId)
   666  }
   667  
   668  // IsUserInChannelUseCache provides a mock function with given fields: userId, channelId
   669  func (_m *ChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool {
   670  	ret := _m.Called(userId, channelId)
   671  
   672  	var r0 bool
   673  	if rf, ok := ret.Get(0).(func(string, string) bool); ok {
   674  		r0 = rf(userId, channelId)
   675  	} else {
   676  		r0 = ret.Get(0).(bool)
   677  	}
   678  
   679  	return r0
   680  }
   681  
   682  // MigrateChannelMembers provides a mock function with given fields: fromChannelId, fromUserId
   683  func (_m *ChannelStore) MigrateChannelMembers(fromChannelId string, fromUserId string) store.StoreChannel {
   684  	ret := _m.Called(fromChannelId, fromUserId)
   685  
   686  	var r0 store.StoreChannel
   687  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   688  		r0 = rf(fromChannelId, fromUserId)
   689  	} else {
   690  		if ret.Get(0) != nil {
   691  			r0 = ret.Get(0).(store.StoreChannel)
   692  		}
   693  	}
   694  
   695  	return r0
   696  }
   697  
   698  // MigratePublicChannels provides a mock function with given fields:
   699  func (_m *ChannelStore) MigratePublicChannels() error {
   700  	ret := _m.Called()
   701  
   702  	var r0 error
   703  	if rf, ok := ret.Get(0).(func() error); ok {
   704  		r0 = rf()
   705  	} else {
   706  		r0 = ret.Error(0)
   707  	}
   708  
   709  	return r0
   710  }
   711  
   712  // PermanentDelete provides a mock function with given fields: channelId
   713  func (_m *ChannelStore) PermanentDelete(channelId string) store.StoreChannel {
   714  	ret := _m.Called(channelId)
   715  
   716  	var r0 store.StoreChannel
   717  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   718  		r0 = rf(channelId)
   719  	} else {
   720  		if ret.Get(0) != nil {
   721  			r0 = ret.Get(0).(store.StoreChannel)
   722  		}
   723  	}
   724  
   725  	return r0
   726  }
   727  
   728  // PermanentDeleteByTeam provides a mock function with given fields: teamId
   729  func (_m *ChannelStore) PermanentDeleteByTeam(teamId string) store.StoreChannel {
   730  	ret := _m.Called(teamId)
   731  
   732  	var r0 store.StoreChannel
   733  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   734  		r0 = rf(teamId)
   735  	} else {
   736  		if ret.Get(0) != nil {
   737  			r0 = ret.Get(0).(store.StoreChannel)
   738  		}
   739  	}
   740  
   741  	return r0
   742  }
   743  
   744  // PermanentDeleteMembersByChannel provides a mock function with given fields: channelId
   745  func (_m *ChannelStore) PermanentDeleteMembersByChannel(channelId string) store.StoreChannel {
   746  	ret := _m.Called(channelId)
   747  
   748  	var r0 store.StoreChannel
   749  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   750  		r0 = rf(channelId)
   751  	} else {
   752  		if ret.Get(0) != nil {
   753  			r0 = ret.Get(0).(store.StoreChannel)
   754  		}
   755  	}
   756  
   757  	return r0
   758  }
   759  
   760  // PermanentDeleteMembersByUser provides a mock function with given fields: userId
   761  func (_m *ChannelStore) PermanentDeleteMembersByUser(userId string) store.StoreChannel {
   762  	ret := _m.Called(userId)
   763  
   764  	var r0 store.StoreChannel
   765  	if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
   766  		r0 = rf(userId)
   767  	} else {
   768  		if ret.Get(0) != nil {
   769  			r0 = ret.Get(0).(store.StoreChannel)
   770  		}
   771  	}
   772  
   773  	return r0
   774  }
   775  
   776  // RemoveAllDeactivatedMembers provides a mock function with given fields: channelId
   777  func (_m *ChannelStore) RemoveAllDeactivatedMembers(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  // RemoveMember provides a mock function with given fields: channelId, userId
   793  func (_m *ChannelStore) RemoveMember(channelId string, userId string) store.StoreChannel {
   794  	ret := _m.Called(channelId, userId)
   795  
   796  	var r0 store.StoreChannel
   797  	if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
   798  		r0 = rf(channelId, userId)
   799  	} else {
   800  		if ret.Get(0) != nil {
   801  			r0 = ret.Get(0).(store.StoreChannel)
   802  		}
   803  	}
   804  
   805  	return r0
   806  }
   807  
   808  // ResetAllChannelSchemes provides a mock function with given fields:
   809  func (_m *ChannelStore) ResetAllChannelSchemes() store.StoreChannel {
   810  	ret := _m.Called()
   811  
   812  	var r0 store.StoreChannel
   813  	if rf, ok := ret.Get(0).(func() store.StoreChannel); ok {
   814  		r0 = rf()
   815  	} else {
   816  		if ret.Get(0) != nil {
   817  			r0 = ret.Get(0).(store.StoreChannel)
   818  		}
   819  	}
   820  
   821  	return r0
   822  }
   823  
   824  // ResetLastPostAt provides a mock function with given fields:
   825  func (_m *ChannelStore) ResetLastPostAt() store.StoreChannel {
   826  	ret := _m.Called()
   827  
   828  	var r0 store.StoreChannel
   829  	if rf, ok := ret.Get(0).(func() store.StoreChannel); ok {
   830  		r0 = rf()
   831  	} else {
   832  		if ret.Get(0) != nil {
   833  			r0 = ret.Get(0).(store.StoreChannel)
   834  		}
   835  	}
   836  
   837  	return r0
   838  }
   839  
   840  // Restore provides a mock function with given fields: channelId, time
   841  func (_m *ChannelStore) Restore(channelId string, time int64) store.StoreChannel {
   842  	ret := _m.Called(channelId, time)
   843  
   844  	var r0 store.StoreChannel
   845  	if rf, ok := ret.Get(0).(func(string, int64) store.StoreChannel); ok {
   846  		r0 = rf(channelId, time)
   847  	} else {
   848  		if ret.Get(0) != nil {
   849  			r0 = ret.Get(0).(store.StoreChannel)
   850  		}
   851  	}
   852  
   853  	return r0
   854  }
   855  
   856  // Save provides a mock function with given fields: channel, maxChannelsPerTeam
   857  func (_m *ChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) store.StoreChannel {
   858  	ret := _m.Called(channel, maxChannelsPerTeam)
   859  
   860  	var r0 store.StoreChannel
   861  	if rf, ok := ret.Get(0).(func(*model.Channel, int64) store.StoreChannel); ok {
   862  		r0 = rf(channel, maxChannelsPerTeam)
   863  	} else {
   864  		if ret.Get(0) != nil {
   865  			r0 = ret.Get(0).(store.StoreChannel)
   866  		}
   867  	}
   868  
   869  	return r0
   870  }
   871  
   872  // SaveDirectChannel provides a mock function with given fields: channel, member1, member2
   873  func (_m *ChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) store.StoreChannel {
   874  	ret := _m.Called(channel, member1, member2)
   875  
   876  	var r0 store.StoreChannel
   877  	if rf, ok := ret.Get(0).(func(*model.Channel, *model.ChannelMember, *model.ChannelMember) store.StoreChannel); ok {
   878  		r0 = rf(channel, member1, member2)
   879  	} else {
   880  		if ret.Get(0) != nil {
   881  			r0 = ret.Get(0).(store.StoreChannel)
   882  		}
   883  	}
   884  
   885  	return r0
   886  }
   887  
   888  // SaveMember provides a mock function with given fields: member
   889  func (_m *ChannelStore) SaveMember(member *model.ChannelMember) store.StoreChannel {
   890  	ret := _m.Called(member)
   891  
   892  	var r0 store.StoreChannel
   893  	if rf, ok := ret.Get(0).(func(*model.ChannelMember) store.StoreChannel); ok {
   894  		r0 = rf(member)
   895  	} else {
   896  		if ret.Get(0) != nil {
   897  			r0 = ret.Get(0).(store.StoreChannel)
   898  		}
   899  	}
   900  
   901  	return r0
   902  }
   903  
   904  // SearchAllChannels provides a mock function with given fields: term, includeDeleted
   905  func (_m *ChannelStore) SearchAllChannels(term string, includeDeleted bool) store.StoreChannel {
   906  	ret := _m.Called(term, includeDeleted)
   907  
   908  	var r0 store.StoreChannel
   909  	if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok {
   910  		r0 = rf(term, includeDeleted)
   911  	} else {
   912  		if ret.Get(0) != nil {
   913  			r0 = ret.Get(0).(store.StoreChannel)
   914  		}
   915  	}
   916  
   917  	return r0
   918  }
   919  
   920  // SearchInTeam provides a mock function with given fields: teamId, term, includeDeleted
   921  func (_m *ChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) store.StoreChannel {
   922  	ret := _m.Called(teamId, term, includeDeleted)
   923  
   924  	var r0 store.StoreChannel
   925  	if rf, ok := ret.Get(0).(func(string, string, bool) store.StoreChannel); ok {
   926  		r0 = rf(teamId, term, includeDeleted)
   927  	} else {
   928  		if ret.Get(0) != nil {
   929  			r0 = ret.Get(0).(store.StoreChannel)
   930  		}
   931  	}
   932  
   933  	return r0
   934  }
   935  
   936  // SearchMore provides a mock function with given fields: userId, teamId, term
   937  func (_m *ChannelStore) SearchMore(userId string, teamId string, term string) store.StoreChannel {
   938  	ret := _m.Called(userId, teamId, term)
   939  
   940  	var r0 store.StoreChannel
   941  	if rf, ok := ret.Get(0).(func(string, string, string) store.StoreChannel); ok {
   942  		r0 = rf(userId, teamId, term)
   943  	} else {
   944  		if ret.Get(0) != nil {
   945  			r0 = ret.Get(0).(store.StoreChannel)
   946  		}
   947  	}
   948  
   949  	return r0
   950  }
   951  
   952  // SetDeleteAt provides a mock function with given fields: channelId, deleteAt, updateAt
   953  func (_m *ChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) store.StoreChannel {
   954  	ret := _m.Called(channelId, deleteAt, updateAt)
   955  
   956  	var r0 store.StoreChannel
   957  	if rf, ok := ret.Get(0).(func(string, int64, int64) store.StoreChannel); ok {
   958  		r0 = rf(channelId, deleteAt, updateAt)
   959  	} else {
   960  		if ret.Get(0) != nil {
   961  			r0 = ret.Get(0).(store.StoreChannel)
   962  		}
   963  	}
   964  
   965  	return r0
   966  }
   967  
   968  // Update provides a mock function with given fields: channel
   969  func (_m *ChannelStore) Update(channel *model.Channel) store.StoreChannel {
   970  	ret := _m.Called(channel)
   971  
   972  	var r0 store.StoreChannel
   973  	if rf, ok := ret.Get(0).(func(*model.Channel) store.StoreChannel); ok {
   974  		r0 = rf(channel)
   975  	} else {
   976  		if ret.Get(0) != nil {
   977  			r0 = ret.Get(0).(store.StoreChannel)
   978  		}
   979  	}
   980  
   981  	return r0
   982  }
   983  
   984  // UpdateLastViewedAt provides a mock function with given fields: channelIds, userId
   985  func (_m *ChannelStore) UpdateLastViewedAt(channelIds []string, userId string) store.StoreChannel {
   986  	ret := _m.Called(channelIds, userId)
   987  
   988  	var r0 store.StoreChannel
   989  	if rf, ok := ret.Get(0).(func([]string, string) store.StoreChannel); ok {
   990  		r0 = rf(channelIds, userId)
   991  	} else {
   992  		if ret.Get(0) != nil {
   993  			r0 = ret.Get(0).(store.StoreChannel)
   994  		}
   995  	}
   996  
   997  	return r0
   998  }
   999  
  1000  // UpdateMember provides a mock function with given fields: member
  1001  func (_m *ChannelStore) UpdateMember(member *model.ChannelMember) store.StoreChannel {
  1002  	ret := _m.Called(member)
  1003  
  1004  	var r0 store.StoreChannel
  1005  	if rf, ok := ret.Get(0).(func(*model.ChannelMember) store.StoreChannel); ok {
  1006  		r0 = rf(member)
  1007  	} else {
  1008  		if ret.Get(0) != nil {
  1009  			r0 = ret.Get(0).(store.StoreChannel)
  1010  		}
  1011  	}
  1012  
  1013  	return r0
  1014  }