github.com/demisto/mattermost-server@v4.9.0-rc3+incompatible/store/storetest/mocks/ChannelStore.go (about)

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