fixed most init errors in channels/store/storetest dir | 24 files edited (#26522)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com> Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5dba6e082d
Коммит
71bf7777f5
@@ -14,9 +14,9 @@ type AuditStore struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// Get provides a mock function with given fields: user_id, offset, limit
|
||||
func (_m *AuditStore) Get(user_id string, offset int, limit int) (model.Audits, error) {
|
||||
ret := _m.Called(user_id, offset, limit)
|
||||
// Get provides a mock function with given fields: userID, offset, limit
|
||||
func (_m *AuditStore) Get(userID string, offset int, limit int) (model.Audits, error) {
|
||||
ret := _m.Called(userID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
@@ -25,10 +25,10 @@ func (_m *AuditStore) Get(user_id string, offset int, limit int) (model.Audits,
|
||||
var r0 model.Audits
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) (model.Audits, error)); ok {
|
||||
return rf(user_id, offset, limit)
|
||||
return rf(userID, offset, limit)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) model.Audits); ok {
|
||||
r0 = rf(user_id, offset, limit)
|
||||
r0 = rf(userID, offset, limit)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(model.Audits)
|
||||
@@ -36,7 +36,7 @@ func (_m *AuditStore) Get(user_id string, offset int, limit int) (model.Audits,
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, int, int) error); ok {
|
||||
r1 = rf(user_id, offset, limit)
|
||||
r1 = rf(userID, offset, limit)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ type ChannelBookmarkStore struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// Delete provides a mock function with given fields: bookmarkId, deleteFile
|
||||
func (_m *ChannelBookmarkStore) Delete(bookmarkId string, deleteFile bool) error {
|
||||
ret := _m.Called(bookmarkId, deleteFile)
|
||||
// Delete provides a mock function with given fields: bookmarkID, deleteFile
|
||||
func (_m *ChannelBookmarkStore) Delete(bookmarkID string, deleteFile bool) error {
|
||||
ret := _m.Called(bookmarkID, deleteFile)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
@@ -24,7 +24,7 @@ func (_m *ChannelBookmarkStore) Delete(bookmarkId string, deleteFile bool) error
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) error); ok {
|
||||
r0 = rf(bookmarkId, deleteFile)
|
||||
r0 = rf(bookmarkID, deleteFile)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
@@ -32,9 +32,9 @@ func (_m *ChannelBookmarkStore) Delete(bookmarkId string, deleteFile bool) error
|
||||
return r0
|
||||
}
|
||||
|
||||
// ErrorIfBookmarkFileInfoAlreadyAttached provides a mock function with given fields: fileId
|
||||
func (_m *ChannelBookmarkStore) ErrorIfBookmarkFileInfoAlreadyAttached(fileId string) error {
|
||||
ret := _m.Called(fileId)
|
||||
// ErrorIfBookmarkFileInfoAlreadyAttached provides a mock function with given fields: fileID
|
||||
func (_m *ChannelBookmarkStore) ErrorIfBookmarkFileInfoAlreadyAttached(fileID string) error {
|
||||
ret := _m.Called(fileID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ErrorIfBookmarkFileInfoAlreadyAttached")
|
||||
@@ -42,7 +42,7 @@ func (_m *ChannelBookmarkStore) ErrorIfBookmarkFileInfoAlreadyAttached(fileId st
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(fileId)
|
||||
r0 = rf(fileID)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
@@ -80,9 +80,9 @@ func (_m *ChannelBookmarkStore) Get(Id string, includeDeleted bool) (*model.Chan
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetBookmarksForChannelSince provides a mock function with given fields: channelId, since
|
||||
func (_m *ChannelBookmarkStore) GetBookmarksForChannelSince(channelId string, since int64) ([]*model.ChannelBookmarkWithFileInfo, error) {
|
||||
ret := _m.Called(channelId, since)
|
||||
// GetBookmarksForChannelSince provides a mock function with given fields: channelID, since
|
||||
func (_m *ChannelBookmarkStore) GetBookmarksForChannelSince(channelID string, since int64) ([]*model.ChannelBookmarkWithFileInfo, error) {
|
||||
ret := _m.Called(channelID, since)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetBookmarksForChannelSince")
|
||||
@@ -91,10 +91,10 @@ func (_m *ChannelBookmarkStore) GetBookmarksForChannelSince(channelId string, si
|
||||
var r0 []*model.ChannelBookmarkWithFileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) ([]*model.ChannelBookmarkWithFileInfo, error)); ok {
|
||||
return rf(channelId, since)
|
||||
return rf(channelID, since)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, int64) []*model.ChannelBookmarkWithFileInfo); ok {
|
||||
r0 = rf(channelId, since)
|
||||
r0 = rf(channelID, since)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.ChannelBookmarkWithFileInfo)
|
||||
@@ -102,7 +102,7 @@ func (_m *ChannelBookmarkStore) GetBookmarksForChannelSince(channelId string, si
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, int64) error); ok {
|
||||
r1 = rf(channelId, since)
|
||||
r1 = rf(channelID, since)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -158,9 +158,9 @@ func (_m *ChannelBookmarkStore) Update(bookmark *model.ChannelBookmark) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// UpdateSortOrder provides a mock function with given fields: bookmarkId, channelId, newIndex
|
||||
func (_m *ChannelBookmarkStore) UpdateSortOrder(bookmarkId string, channelId string, newIndex int64) ([]*model.ChannelBookmarkWithFileInfo, error) {
|
||||
ret := _m.Called(bookmarkId, channelId, newIndex)
|
||||
// UpdateSortOrder provides a mock function with given fields: bookmarkID, channelID, newIndex
|
||||
func (_m *ChannelBookmarkStore) UpdateSortOrder(bookmarkID string, channelID string, newIndex int64) ([]*model.ChannelBookmarkWithFileInfo, error) {
|
||||
ret := _m.Called(bookmarkID, channelID, newIndex)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateSortOrder")
|
||||
@@ -169,10 +169,10 @@ func (_m *ChannelBookmarkStore) UpdateSortOrder(bookmarkId string, channelId str
|
||||
var r0 []*model.ChannelBookmarkWithFileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, int64) ([]*model.ChannelBookmarkWithFileInfo, error)); ok {
|
||||
return rf(bookmarkId, channelId, newIndex)
|
||||
return rf(bookmarkID, channelID, newIndex)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string, int64) []*model.ChannelBookmarkWithFileInfo); ok {
|
||||
r0 = rf(bookmarkId, channelId, newIndex)
|
||||
r0 = rf(bookmarkID, channelID, newIndex)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.ChannelBookmarkWithFileInfo)
|
||||
@@ -180,7 +180,7 @@ func (_m *ChannelBookmarkStore) UpdateSortOrder(bookmarkId string, channelId str
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string, int64) error); ok {
|
||||
r1 = rf(bookmarkId, channelId, newIndex)
|
||||
r1 = rf(bookmarkID, channelID, newIndex)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
@@ -712,9 +712,9 @@ func (_m *ChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterID st
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetByName provides a mock function with given fields: team_id, name, allowFromCache
|
||||
func (_m *ChannelStore) GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, error) {
|
||||
ret := _m.Called(team_id, name, allowFromCache)
|
||||
// GetByName provides a mock function with given fields: teamID, name, allowFromCache
|
||||
func (_m *ChannelStore) GetByName(teamID string, name string, allowFromCache bool) (*model.Channel, error) {
|
||||
ret := _m.Called(teamID, name, allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByName")
|
||||
@@ -723,10 +723,10 @@ func (_m *ChannelStore) GetByName(team_id string, name string, allowFromCache bo
|
||||
var r0 *model.Channel
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, bool) (*model.Channel, error)); ok {
|
||||
return rf(team_id, name, allowFromCache)
|
||||
return rf(teamID, name, allowFromCache)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string, bool) *model.Channel); ok {
|
||||
r0 = rf(team_id, name, allowFromCache)
|
||||
r0 = rf(teamID, name, allowFromCache)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.Channel)
|
||||
@@ -734,7 +734,7 @@ func (_m *ChannelStore) GetByName(team_id string, name string, allowFromCache bo
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string, bool) error); ok {
|
||||
r1 = rf(team_id, name, allowFromCache)
|
||||
r1 = rf(teamID, name, allowFromCache)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -742,9 +742,9 @@ func (_m *ChannelStore) GetByName(team_id string, name string, allowFromCache bo
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetByNameIncludeDeleted provides a mock function with given fields: team_id, name, allowFromCache
|
||||
func (_m *ChannelStore) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, error) {
|
||||
ret := _m.Called(team_id, name, allowFromCache)
|
||||
// GetByNameIncludeDeleted provides a mock function with given fields: teamID, name, allowFromCache
|
||||
func (_m *ChannelStore) GetByNameIncludeDeleted(teamID string, name string, allowFromCache bool) (*model.Channel, error) {
|
||||
ret := _m.Called(teamID, name, allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByNameIncludeDeleted")
|
||||
@@ -753,10 +753,10 @@ func (_m *ChannelStore) GetByNameIncludeDeleted(team_id string, name string, all
|
||||
var r0 *model.Channel
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, bool) (*model.Channel, error)); ok {
|
||||
return rf(team_id, name, allowFromCache)
|
||||
return rf(teamID, name, allowFromCache)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string, bool) *model.Channel); ok {
|
||||
r0 = rf(team_id, name, allowFromCache)
|
||||
r0 = rf(teamID, name, allowFromCache)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.Channel)
|
||||
@@ -764,7 +764,7 @@ func (_m *ChannelStore) GetByNameIncludeDeleted(team_id string, name string, all
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string, bool) error); ok {
|
||||
r1 = rf(team_id, name, allowFromCache)
|
||||
r1 = rf(teamID, name, allowFromCache)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -772,9 +772,9 @@ func (_m *ChannelStore) GetByNameIncludeDeleted(team_id string, name string, all
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetByNames provides a mock function with given fields: team_id, names, allowFromCache
|
||||
func (_m *ChannelStore) GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, error) {
|
||||
ret := _m.Called(team_id, names, allowFromCache)
|
||||
// GetByNames provides a mock function with given fields: teamID, names, allowFromCache
|
||||
func (_m *ChannelStore) GetByNames(teamID string, names []string, allowFromCache bool) ([]*model.Channel, error) {
|
||||
ret := _m.Called(teamID, names, allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByNames")
|
||||
@@ -783,10 +783,10 @@ func (_m *ChannelStore) GetByNames(team_id string, names []string, allowFromCach
|
||||
var r0 []*model.Channel
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string, bool) ([]*model.Channel, error)); ok {
|
||||
return rf(team_id, names, allowFromCache)
|
||||
return rf(teamID, names, allowFromCache)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, []string, bool) []*model.Channel); ok {
|
||||
r0 = rf(team_id, names, allowFromCache)
|
||||
r0 = rf(teamID, names, allowFromCache)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.Channel)
|
||||
@@ -794,7 +794,7 @@ func (_m *ChannelStore) GetByNames(team_id string, names []string, allowFromCach
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, []string, bool) error); ok {
|
||||
r1 = rf(team_id, names, allowFromCache)
|
||||
r1 = rf(teamID, names, allowFromCache)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -802,9 +802,9 @@ func (_m *ChannelStore) GetByNames(team_id string, names []string, allowFromCach
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetByNamesIncludeDeleted provides a mock function with given fields: team_id, names, allowFromCache
|
||||
func (_m *ChannelStore) GetByNamesIncludeDeleted(team_id string, names []string, allowFromCache bool) ([]*model.Channel, error) {
|
||||
ret := _m.Called(team_id, names, allowFromCache)
|
||||
// GetByNamesIncludeDeleted provides a mock function with given fields: teamID, names, allowFromCache
|
||||
func (_m *ChannelStore) GetByNamesIncludeDeleted(teamID string, names []string, allowFromCache bool) ([]*model.Channel, error) {
|
||||
ret := _m.Called(teamID, names, allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByNamesIncludeDeleted")
|
||||
@@ -813,10 +813,10 @@ func (_m *ChannelStore) GetByNamesIncludeDeleted(team_id string, names []string,
|
||||
var r0 []*model.Channel
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string, bool) ([]*model.Channel, error)); ok {
|
||||
return rf(team_id, names, allowFromCache)
|
||||
return rf(teamID, names, allowFromCache)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, []string, bool) []*model.Channel); ok {
|
||||
r0 = rf(team_id, names, allowFromCache)
|
||||
r0 = rf(teamID, names, allowFromCache)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.Channel)
|
||||
@@ -824,7 +824,7 @@ func (_m *ChannelStore) GetByNamesIncludeDeleted(team_id string, names []string,
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, []string, bool) error); ok {
|
||||
r1 = rf(team_id, names, allowFromCache)
|
||||
r1 = rf(teamID, names, allowFromCache)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -1210,9 +1210,9 @@ func (_m *ChannelStore) GetChannelsWithUnreadsAndWithMentions(ctx context.Contex
|
||||
return r0, r1, r2, r3
|
||||
}
|
||||
|
||||
// GetDeleted provides a mock function with given fields: team_id, offset, limit, userID
|
||||
func (_m *ChannelStore) GetDeleted(team_id string, offset int, limit int, userID string) (model.ChannelList, error) {
|
||||
ret := _m.Called(team_id, offset, limit, userID)
|
||||
// GetDeleted provides a mock function with given fields: teamID, offset, limit, userID
|
||||
func (_m *ChannelStore) GetDeleted(teamID string, offset int, limit int, userID string) (model.ChannelList, error) {
|
||||
ret := _m.Called(teamID, offset, limit, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetDeleted")
|
||||
@@ -1221,10 +1221,10 @@ func (_m *ChannelStore) GetDeleted(team_id string, offset int, limit int, userID
|
||||
var r0 model.ChannelList
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int, string) (model.ChannelList, error)); ok {
|
||||
return rf(team_id, offset, limit, userID)
|
||||
return rf(teamID, offset, limit, userID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, int, int, string) model.ChannelList); ok {
|
||||
r0 = rf(team_id, offset, limit, userID)
|
||||
r0 = rf(teamID, offset, limit, userID)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(model.ChannelList)
|
||||
@@ -1232,7 +1232,7 @@ func (_m *ChannelStore) GetDeleted(team_id string, offset int, limit int, userID
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, int, int, string) error); ok {
|
||||
r1 = rf(team_id, offset, limit, userID)
|
||||
r1 = rf(teamID, offset, limit, userID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -1240,9 +1240,9 @@ func (_m *ChannelStore) GetDeleted(team_id string, offset int, limit int, userID
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetDeletedByName provides a mock function with given fields: team_id, name
|
||||
func (_m *ChannelStore) GetDeletedByName(team_id string, name string) (*model.Channel, error) {
|
||||
ret := _m.Called(team_id, name)
|
||||
// GetDeletedByName provides a mock function with given fields: teamID, name
|
||||
func (_m *ChannelStore) GetDeletedByName(teamID string, name string) (*model.Channel, error) {
|
||||
ret := _m.Called(teamID, name)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetDeletedByName")
|
||||
@@ -1251,10 +1251,10 @@ func (_m *ChannelStore) GetDeletedByName(team_id string, name string) (*model.Ch
|
||||
var r0 *model.Channel
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.Channel, error)); ok {
|
||||
return rf(team_id, name)
|
||||
return rf(teamID, name)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string) *model.Channel); ok {
|
||||
r0 = rf(team_id, name)
|
||||
r0 = rf(teamID, name)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.Channel)
|
||||
@@ -1262,7 +1262,7 @@ func (_m *ChannelStore) GetDeletedByName(team_id string, name string) (*model.Ch
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string) error); ok {
|
||||
r1 = rf(team_id, name)
|
||||
r1 = rf(teamID, name)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -2802,9 +2802,9 @@ func (_m *ChannelStore) SetDeleteAt(channelID string, deleteAt int64, updateAt i
|
||||
return r0
|
||||
}
|
||||
|
||||
// SetShared provides a mock function with given fields: channelId, shared
|
||||
func (_m *ChannelStore) SetShared(channelId string, shared bool) error {
|
||||
ret := _m.Called(channelId, shared)
|
||||
// SetShared provides a mock function with given fields: channelID, shared
|
||||
func (_m *ChannelStore) SetShared(channelID string, shared bool) error {
|
||||
ret := _m.Called(channelID, shared)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SetShared")
|
||||
@@ -2812,7 +2812,7 @@ func (_m *ChannelStore) SetShared(channelId string, shared bool) error {
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) error); ok {
|
||||
r0 = rf(channelId, shared)
|
||||
r0 = rf(channelID, shared)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
|
||||
@@ -29,9 +29,9 @@ func (_m *DesktopTokensStore) Delete(token string) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// DeleteByUserId provides a mock function with given fields: userId
|
||||
func (_m *DesktopTokensStore) DeleteByUserId(userId string) error {
|
||||
ret := _m.Called(userId)
|
||||
// DeleteByUserId provides a mock function with given fields: userID
|
||||
func (_m *DesktopTokensStore) DeleteByUserId(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteByUserId")
|
||||
@@ -39,7 +39,7 @@ func (_m *DesktopTokensStore) DeleteByUserId(userId string) error {
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userId)
|
||||
r0 = rf(userID)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
@@ -95,9 +95,9 @@ func (_m *DesktopTokensStore) GetUserId(token string, minCreatedAt int64) (*stri
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// Insert provides a mock function with given fields: token, createAt, userId
|
||||
func (_m *DesktopTokensStore) Insert(token string, createAt int64, userId string) error {
|
||||
ret := _m.Called(token, createAt, userId)
|
||||
// Insert provides a mock function with given fields: token, createAt, userID
|
||||
func (_m *DesktopTokensStore) Insert(token string, createAt int64, userID string) error {
|
||||
ret := _m.Called(token, createAt, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Insert")
|
||||
@@ -105,7 +105,7 @@ func (_m *DesktopTokensStore) Insert(token string, createAt int64, userId string
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64, string) error); ok {
|
||||
r0 = rf(token, createAt, userId)
|
||||
r0 = rf(token, createAt, userID)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
|
||||
@@ -50,9 +50,9 @@ func (_m *DraftStore) DeleteDraftsAssociatedWithPost(channelID string, rootID st
|
||||
return r0
|
||||
}
|
||||
|
||||
// DeleteEmptyDraftsByCreateAtAndUserId provides a mock function with given fields: createAt, userId
|
||||
func (_m *DraftStore) DeleteEmptyDraftsByCreateAtAndUserId(createAt int64, userId string) error {
|
||||
ret := _m.Called(createAt, userId)
|
||||
// DeleteEmptyDraftsByCreateAtAndUserId provides a mock function with given fields: createAt, userID
|
||||
func (_m *DraftStore) DeleteEmptyDraftsByCreateAtAndUserId(createAt int64, userID string) error {
|
||||
ret := _m.Called(createAt, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteEmptyDraftsByCreateAtAndUserId")
|
||||
@@ -60,7 +60,7 @@ func (_m *DraftStore) DeleteEmptyDraftsByCreateAtAndUserId(createAt int64, userI
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(int64, string) error); ok {
|
||||
r0 = rf(createAt, userId)
|
||||
r0 = rf(createAt, userID)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
@@ -68,9 +68,9 @@ func (_m *DraftStore) DeleteEmptyDraftsByCreateAtAndUserId(createAt int64, userI
|
||||
return r0
|
||||
}
|
||||
|
||||
// DeleteOrphanDraftsByCreateAtAndUserId provides a mock function with given fields: createAt, userId
|
||||
func (_m *DraftStore) DeleteOrphanDraftsByCreateAtAndUserId(createAt int64, userId string) error {
|
||||
ret := _m.Called(createAt, userId)
|
||||
// DeleteOrphanDraftsByCreateAtAndUserId provides a mock function with given fields: createAt, userID
|
||||
func (_m *DraftStore) DeleteOrphanDraftsByCreateAtAndUserId(createAt int64, userID string) error {
|
||||
ret := _m.Called(createAt, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteOrphanDraftsByCreateAtAndUserId")
|
||||
@@ -78,7 +78,7 @@ func (_m *DraftStore) DeleteOrphanDraftsByCreateAtAndUserId(createAt int64, user
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(int64, string) error); ok {
|
||||
r0 = rf(createAt, userId)
|
||||
r0 = rf(createAt, userID)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
@@ -146,9 +146,9 @@ func (_m *DraftStore) GetDraftsForUser(userID string, teamID string) ([]*model.D
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetLastCreateAtAndUserIdValuesForEmptyDraftsMigration provides a mock function with given fields: createAt, userId
|
||||
func (_m *DraftStore) GetLastCreateAtAndUserIdValuesForEmptyDraftsMigration(createAt int64, userId string) (int64, string, error) {
|
||||
ret := _m.Called(createAt, userId)
|
||||
// GetLastCreateAtAndUserIdValuesForEmptyDraftsMigration provides a mock function with given fields: createAt, userID
|
||||
func (_m *DraftStore) GetLastCreateAtAndUserIdValuesForEmptyDraftsMigration(createAt int64, userID string) (int64, string, error) {
|
||||
ret := _m.Called(createAt, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetLastCreateAtAndUserIdValuesForEmptyDraftsMigration")
|
||||
@@ -158,22 +158,22 @@ func (_m *DraftStore) GetLastCreateAtAndUserIdValuesForEmptyDraftsMigration(crea
|
||||
var r1 string
|
||||
var r2 error
|
||||
if rf, ok := ret.Get(0).(func(int64, string) (int64, string, error)); ok {
|
||||
return rf(createAt, userId)
|
||||
return rf(createAt, userID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(int64, string) int64); ok {
|
||||
r0 = rf(createAt, userId)
|
||||
r0 = rf(createAt, userID)
|
||||
} else {
|
||||
r0 = ret.Get(0).(int64)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(int64, string) string); ok {
|
||||
r1 = rf(createAt, userId)
|
||||
r1 = rf(createAt, userID)
|
||||
} else {
|
||||
r1 = ret.Get(1).(string)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(2).(func(int64, string) error); ok {
|
||||
r2 = rf(createAt, userId)
|
||||
r2 = rf(createAt, userID)
|
||||
} else {
|
||||
r2 = ret.Error(2)
|
||||
}
|
||||
|
||||
@@ -62,9 +62,9 @@ func (_m *NotifyAdminStore) Get(trial bool) ([]*model.NotifyAdminData, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetDataByUserIdAndFeature provides a mock function with given fields: userId, feature
|
||||
func (_m *NotifyAdminStore) GetDataByUserIdAndFeature(userId string, feature model.MattermostFeature) ([]*model.NotifyAdminData, error) {
|
||||
ret := _m.Called(userId, feature)
|
||||
// GetDataByUserIdAndFeature provides a mock function with given fields: userID, feature
|
||||
func (_m *NotifyAdminStore) GetDataByUserIdAndFeature(userID string, feature model.MattermostFeature) ([]*model.NotifyAdminData, error) {
|
||||
ret := _m.Called(userID, feature)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetDataByUserIdAndFeature")
|
||||
@@ -73,10 +73,10 @@ func (_m *NotifyAdminStore) GetDataByUserIdAndFeature(userId string, feature mod
|
||||
var r0 []*model.NotifyAdminData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, model.MattermostFeature) ([]*model.NotifyAdminData, error)); ok {
|
||||
return rf(userId, feature)
|
||||
return rf(userID, feature)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, model.MattermostFeature) []*model.NotifyAdminData); ok {
|
||||
r0 = rf(userId, feature)
|
||||
r0 = rf(userID, feature)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.NotifyAdminData)
|
||||
@@ -84,7 +84,7 @@ func (_m *NotifyAdminStore) GetDataByUserIdAndFeature(userId string, feature mod
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, model.MattermostFeature) error); ok {
|
||||
r1 = rf(userId, feature)
|
||||
r1 = rf(userID, feature)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -122,9 +122,9 @@ func (_m *NotifyAdminStore) Save(data *model.NotifyAdminData) (*model.NotifyAdmi
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// Update provides a mock function with given fields: userId, requiredPlan, requiredFeature, now
|
||||
func (_m *NotifyAdminStore) Update(userId string, requiredPlan string, requiredFeature model.MattermostFeature, now int64) error {
|
||||
ret := _m.Called(userId, requiredPlan, requiredFeature, now)
|
||||
// Update provides a mock function with given fields: userID, requiredPlan, requiredFeature, now
|
||||
func (_m *NotifyAdminStore) Update(userID string, requiredPlan string, requiredFeature model.MattermostFeature, now int64) error {
|
||||
ret := _m.Called(userID, requiredPlan, requiredFeature, now)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
@@ -132,7 +132,7 @@ func (_m *NotifyAdminStore) Update(userId string, requiredPlan string, requiredF
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.MattermostFeature, int64) error); ok {
|
||||
r0 = rf(userId, requiredPlan, requiredFeature, now)
|
||||
r0 = rf(userID, requiredPlan, requiredFeature, now)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
|
||||
@@ -92,9 +92,9 @@ func (_m *OAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessDa
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetAccessDataByUserForApp provides a mock function with given fields: userID, clientId
|
||||
func (_m *OAuthStore) GetAccessDataByUserForApp(userID string, clientId string) ([]*model.AccessData, error) {
|
||||
ret := _m.Called(userID, clientId)
|
||||
// GetAccessDataByUserForApp provides a mock function with given fields: userID, clientID
|
||||
func (_m *OAuthStore) GetAccessDataByUserForApp(userID string, clientID string) ([]*model.AccessData, error) {
|
||||
ret := _m.Called(userID, clientID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAccessDataByUserForApp")
|
||||
@@ -103,10 +103,10 @@ func (_m *OAuthStore) GetAccessDataByUserForApp(userID string, clientId string)
|
||||
var r0 []*model.AccessData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) ([]*model.AccessData, error)); ok {
|
||||
return rf(userID, clientId)
|
||||
return rf(userID, clientID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string) []*model.AccessData); ok {
|
||||
r0 = rf(userID, clientId)
|
||||
r0 = rf(userID, clientID)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.AccessData)
|
||||
@@ -114,7 +114,7 @@ func (_m *OAuthStore) GetAccessDataByUserForApp(userID string, clientId string)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string) error); ok {
|
||||
r1 = rf(userID, clientId)
|
||||
r1 = rf(userID, clientID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -272,9 +272,9 @@ func (_m *OAuthStore) GetAuthorizedApps(userID string, offset int, limit int) ([
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetPreviousAccessData provides a mock function with given fields: userID, clientId
|
||||
func (_m *OAuthStore) GetPreviousAccessData(userID string, clientId string) (*model.AccessData, error) {
|
||||
ret := _m.Called(userID, clientId)
|
||||
// GetPreviousAccessData provides a mock function with given fields: userID, clientID
|
||||
func (_m *OAuthStore) GetPreviousAccessData(userID string, clientID string) (*model.AccessData, error) {
|
||||
ret := _m.Called(userID, clientID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPreviousAccessData")
|
||||
@@ -283,10 +283,10 @@ func (_m *OAuthStore) GetPreviousAccessData(userID string, clientId string) (*mo
|
||||
var r0 *model.AccessData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.AccessData, error)); ok {
|
||||
return rf(userID, clientId)
|
||||
return rf(userID, clientID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string) *model.AccessData); ok {
|
||||
r0 = rf(userID, clientId)
|
||||
r0 = rf(userID, clientID)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.AccessData)
|
||||
@@ -294,7 +294,7 @@ func (_m *OAuthStore) GetPreviousAccessData(userID string, clientId string) (*mo
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string) error); ok {
|
||||
r1 = rf(userID, clientId)
|
||||
r1 = rf(userID, clientID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -374,9 +374,9 @@ func (_m *OAuthStore) RemoveAuthData(code string) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// RemoveAuthDataByClientId provides a mock function with given fields: clientId, userId
|
||||
func (_m *OAuthStore) RemoveAuthDataByClientId(clientId string, userId string) error {
|
||||
ret := _m.Called(clientId, userId)
|
||||
// RemoveAuthDataByClientId provides a mock function with given fields: clientID, userID
|
||||
func (_m *OAuthStore) RemoveAuthDataByClientId(clientID string, userID string) error {
|
||||
ret := _m.Called(clientID, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveAuthDataByClientId")
|
||||
@@ -384,7 +384,7 @@ func (_m *OAuthStore) RemoveAuthDataByClientId(clientId string, userId string) e
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(clientId, userId)
|
||||
r0 = rf(clientID, userID)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
@@ -392,9 +392,9 @@ func (_m *OAuthStore) RemoveAuthDataByClientId(clientId string, userId string) e
|
||||
return r0
|
||||
}
|
||||
|
||||
// RemoveAuthDataByUserId provides a mock function with given fields: userId
|
||||
func (_m *OAuthStore) RemoveAuthDataByUserId(userId string) error {
|
||||
ret := _m.Called(userId)
|
||||
// RemoveAuthDataByUserId provides a mock function with given fields: userID
|
||||
func (_m *OAuthStore) RemoveAuthDataByUserId(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveAuthDataByUserId")
|
||||
@@ -402,7 +402,7 @@ func (_m *OAuthStore) RemoveAuthDataByUserId(userId string) error {
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userId)
|
||||
r0 = rf(userID)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ type PostPriorityStore struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// GetForPost provides a mock function with given fields: postId
|
||||
func (_m *PostPriorityStore) GetForPost(postId string) (*model.PostPriority, error) {
|
||||
ret := _m.Called(postId)
|
||||
// GetForPost provides a mock function with given fields: postID
|
||||
func (_m *PostPriorityStore) GetForPost(postID string) (*model.PostPriority, error) {
|
||||
ret := _m.Called(postID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetForPost")
|
||||
@@ -25,10 +25,10 @@ func (_m *PostPriorityStore) GetForPost(postId string) (*model.PostPriority, err
|
||||
var r0 *model.PostPriority
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.PostPriority, error)); ok {
|
||||
return rf(postId)
|
||||
return rf(postID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string) *model.PostPriority); ok {
|
||||
r0 = rf(postId)
|
||||
r0 = rf(postID)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.PostPriority)
|
||||
@@ -36,7 +36,7 @@ func (_m *PostPriorityStore) GetForPost(postId string) (*model.PostPriority, err
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string) error); ok {
|
||||
r1 = rf(postId)
|
||||
r1 = rf(postID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
@@ -191,9 +191,9 @@ func (_m *PostStore) GetDirectPostParentsForExportAfter(limit int, afterID strin
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetEditHistoryForPost provides a mock function with given fields: postId
|
||||
func (_m *PostStore) GetEditHistoryForPost(postId string) ([]*model.Post, error) {
|
||||
ret := _m.Called(postId)
|
||||
// GetEditHistoryForPost provides a mock function with given fields: postID
|
||||
func (_m *PostStore) GetEditHistoryForPost(postID string) ([]*model.Post, error) {
|
||||
ret := _m.Called(postID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetEditHistoryForPost")
|
||||
@@ -202,10 +202,10 @@ func (_m *PostStore) GetEditHistoryForPost(postId string) ([]*model.Post, error)
|
||||
var r0 []*model.Post
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.Post, error)); ok {
|
||||
return rf(postId)
|
||||
return rf(postID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string) []*model.Post); ok {
|
||||
r0 = rf(postId)
|
||||
r0 = rf(postID)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.Post)
|
||||
@@ -213,7 +213,7 @@ func (_m *PostStore) GetEditHistoryForPost(postId string) ([]*model.Post, error)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string) error); ok {
|
||||
r1 = rf(postId)
|
||||
r1 = rf(postID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -946,9 +946,9 @@ func (_m *PostStore) GetSingle(rctx request.CTX, id string, inclDeleted bool) (*
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// HasAutoResponsePostByUserSince provides a mock function with given fields: options, userId
|
||||
func (_m *PostStore) HasAutoResponsePostByUserSince(options model.GetPostsSinceOptions, userId string) (bool, error) {
|
||||
ret := _m.Called(options, userId)
|
||||
// HasAutoResponsePostByUserSince provides a mock function with given fields: options, userID
|
||||
func (_m *PostStore) HasAutoResponsePostByUserSince(options model.GetPostsSinceOptions, userID string) (bool, error) {
|
||||
ret := _m.Called(options, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for HasAutoResponsePostByUserSince")
|
||||
@@ -957,16 +957,16 @@ func (_m *PostStore) HasAutoResponsePostByUserSince(options model.GetPostsSinceO
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.GetPostsSinceOptions, string) (bool, error)); ok {
|
||||
return rf(options, userId)
|
||||
return rf(options, userID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(model.GetPostsSinceOptions, string) bool); ok {
|
||||
r0 = rf(options, userId)
|
||||
r0 = rf(options, userID)
|
||||
} else {
|
||||
r0 = ret.Get(0).(bool)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(model.GetPostsSinceOptions, string) error); ok {
|
||||
r1 = rf(options, userId)
|
||||
r1 = rf(options, userID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
@@ -120,9 +120,9 @@ func (_m *ReactionStore) DeleteOrphanedRowsByIds(r *model.RetentionIdsForDeletio
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// ExistsOnPost provides a mock function with given fields: postId, emojiName
|
||||
func (_m *ReactionStore) ExistsOnPost(postId string, emojiName string) (bool, error) {
|
||||
ret := _m.Called(postId, emojiName)
|
||||
// ExistsOnPost provides a mock function with given fields: postID, emojiName
|
||||
func (_m *ReactionStore) ExistsOnPost(postID string, emojiName string) (bool, error) {
|
||||
ret := _m.Called(postID, emojiName)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ExistsOnPost")
|
||||
@@ -131,16 +131,16 @@ func (_m *ReactionStore) ExistsOnPost(postId string, emojiName string) (bool, er
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (bool, error)); ok {
|
||||
return rf(postId, emojiName)
|
||||
return rf(postID, emojiName)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string) bool); ok {
|
||||
r0 = rf(postId, emojiName)
|
||||
r0 = rf(postID, emojiName)
|
||||
} else {
|
||||
r0 = ret.Get(0).(bool)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string) error); ok {
|
||||
r1 = rf(postId, emojiName)
|
||||
r1 = rf(postID, emojiName)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -178,9 +178,9 @@ func (_m *ReactionStore) GetForPost(postID string, allowFromCache bool) ([]*mode
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetForPostSince provides a mock function with given fields: postId, since, excludeRemoteId, inclDeleted
|
||||
func (_m *ReactionStore) GetForPostSince(postId string, since int64, excludeRemoteId string, inclDeleted bool) ([]*model.Reaction, error) {
|
||||
ret := _m.Called(postId, since, excludeRemoteId, inclDeleted)
|
||||
// GetForPostSince provides a mock function with given fields: postID, since, excludeRemoteID, inclDeleted
|
||||
func (_m *ReactionStore) GetForPostSince(postID string, since int64, excludeRemoteID string, inclDeleted bool) ([]*model.Reaction, error) {
|
||||
ret := _m.Called(postID, since, excludeRemoteID, inclDeleted)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetForPostSince")
|
||||
@@ -189,10 +189,10 @@ func (_m *ReactionStore) GetForPostSince(postId string, since int64, excludeRemo
|
||||
var r0 []*model.Reaction
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64, string, bool) ([]*model.Reaction, error)); ok {
|
||||
return rf(postId, since, excludeRemoteId, inclDeleted)
|
||||
return rf(postID, since, excludeRemoteID, inclDeleted)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, int64, string, bool) []*model.Reaction); ok {
|
||||
r0 = rf(postId, since, excludeRemoteId, inclDeleted)
|
||||
r0 = rf(postID, since, excludeRemoteID, inclDeleted)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.Reaction)
|
||||
@@ -200,7 +200,7 @@ func (_m *ReactionStore) GetForPostSince(postId string, since int64, excludeRemo
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, int64, string, bool) error); ok {
|
||||
r1 = rf(postId, since, excludeRemoteId, inclDeleted)
|
||||
r1 = rf(postID, since, excludeRemoteID, inclDeleted)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -238,9 +238,9 @@ func (_m *ReactionStore) GetSingle(userID string, postID string, remoteID string
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetUniqueCountForPost provides a mock function with given fields: postId
|
||||
func (_m *ReactionStore) GetUniqueCountForPost(postId string) (int, error) {
|
||||
ret := _m.Called(postId)
|
||||
// GetUniqueCountForPost provides a mock function with given fields: postID
|
||||
func (_m *ReactionStore) GetUniqueCountForPost(postID string) (int, error) {
|
||||
ret := _m.Called(postID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUniqueCountForPost")
|
||||
@@ -249,16 +249,16 @@ func (_m *ReactionStore) GetUniqueCountForPost(postId string) (int, error) {
|
||||
var r0 int
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int, error)); ok {
|
||||
return rf(postId)
|
||||
return rf(postID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string) int); ok {
|
||||
r0 = rf(postId)
|
||||
r0 = rf(postID)
|
||||
} else {
|
||||
r0 = ret.Get(0).(int)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string) error); ok {
|
||||
r1 = rf(postId)
|
||||
r1 = rf(postID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ type RemoteClusterStore struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// Delete provides a mock function with given fields: remoteClusterId
|
||||
func (_m *RemoteClusterStore) Delete(remoteClusterId string) (bool, error) {
|
||||
ret := _m.Called(remoteClusterId)
|
||||
// Delete provides a mock function with given fields: remoteClusterID
|
||||
func (_m *RemoteClusterStore) Delete(remoteClusterID string) (bool, error) {
|
||||
ret := _m.Called(remoteClusterID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
@@ -25,16 +25,16 @@ func (_m *RemoteClusterStore) Delete(remoteClusterId string) (bool, error) {
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (bool, error)); ok {
|
||||
return rf(remoteClusterId)
|
||||
return rf(remoteClusterID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string) bool); ok {
|
||||
r0 = rf(remoteClusterId)
|
||||
r0 = rf(remoteClusterID)
|
||||
} else {
|
||||
r0 = ret.Get(0).(bool)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string) error); ok {
|
||||
r1 = rf(remoteClusterId)
|
||||
r1 = rf(remoteClusterID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -42,9 +42,9 @@ func (_m *RemoteClusterStore) Delete(remoteClusterId string) (bool, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// Get provides a mock function with given fields: remoteClusterId, includeDeleted
|
||||
func (_m *RemoteClusterStore) Get(remoteClusterId string, includeDeleted bool) (*model.RemoteCluster, error) {
|
||||
ret := _m.Called(remoteClusterId, includeDeleted)
|
||||
// Get provides a mock function with given fields: remoteClusterID, includeDeleted
|
||||
func (_m *RemoteClusterStore) Get(remoteClusterID string, includeDeleted bool) (*model.RemoteCluster, error) {
|
||||
ret := _m.Called(remoteClusterID, includeDeleted)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
@@ -53,10 +53,10 @@ func (_m *RemoteClusterStore) Get(remoteClusterId string, includeDeleted bool) (
|
||||
var r0 *model.RemoteCluster
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) (*model.RemoteCluster, error)); ok {
|
||||
return rf(remoteClusterId, includeDeleted)
|
||||
return rf(remoteClusterID, includeDeleted)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, bool) *model.RemoteCluster); ok {
|
||||
r0 = rf(remoteClusterId, includeDeleted)
|
||||
r0 = rf(remoteClusterID, includeDeleted)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.RemoteCluster)
|
||||
@@ -64,7 +64,7 @@ func (_m *RemoteClusterStore) Get(remoteClusterId string, includeDeleted bool) (
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, bool) error); ok {
|
||||
r1 = rf(remoteClusterId, includeDeleted)
|
||||
r1 = rf(remoteClusterID, includeDeleted)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -162,9 +162,9 @@ func (_m *RemoteClusterStore) Save(rc *model.RemoteCluster) (*model.RemoteCluste
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// SetLastPingAt provides a mock function with given fields: remoteClusterId
|
||||
func (_m *RemoteClusterStore) SetLastPingAt(remoteClusterId string) error {
|
||||
ret := _m.Called(remoteClusterId)
|
||||
// SetLastPingAt provides a mock function with given fields: remoteClusterID
|
||||
func (_m *RemoteClusterStore) SetLastPingAt(remoteClusterID string) error {
|
||||
ret := _m.Called(remoteClusterID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SetLastPingAt")
|
||||
@@ -172,7 +172,7 @@ func (_m *RemoteClusterStore) SetLastPingAt(remoteClusterId string) error {
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(remoteClusterId)
|
||||
r0 = rf(remoteClusterID)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
@@ -210,9 +210,9 @@ func (_m *RemoteClusterStore) Update(rc *model.RemoteCluster) (*model.RemoteClus
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// UpdateTopics provides a mock function with given fields: remoteClusterId, topics
|
||||
func (_m *RemoteClusterStore) UpdateTopics(remoteClusterId string, topics string) (*model.RemoteCluster, error) {
|
||||
ret := _m.Called(remoteClusterId, topics)
|
||||
// UpdateTopics provides a mock function with given fields: remoteClusterID, topics
|
||||
func (_m *RemoteClusterStore) UpdateTopics(remoteClusterID string, topics string) (*model.RemoteCluster, error) {
|
||||
ret := _m.Called(remoteClusterID, topics)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateTopics")
|
||||
@@ -221,10 +221,10 @@ func (_m *RemoteClusterStore) UpdateTopics(remoteClusterId string, topics string
|
||||
var r0 *model.RemoteCluster
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.RemoteCluster, error)); ok {
|
||||
return rf(remoteClusterId, topics)
|
||||
return rf(remoteClusterID, topics)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string) *model.RemoteCluster); ok {
|
||||
r0 = rf(remoteClusterId, topics)
|
||||
r0 = rf(remoteClusterID, topics)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.RemoteCluster)
|
||||
@@ -232,7 +232,7 @@ func (_m *RemoteClusterStore) UpdateTopics(remoteClusterId string, topics string
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string) error); ok {
|
||||
r1 = rf(remoteClusterId, topics)
|
||||
r1 = rf(remoteClusterID, topics)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ type RetentionPolicyStore struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// AddChannels provides a mock function with given fields: policyId, channelIds
|
||||
func (_m *RetentionPolicyStore) AddChannels(policyId string, channelIds []string) error {
|
||||
ret := _m.Called(policyId, channelIds)
|
||||
// AddChannels provides a mock function with given fields: policyID, channelIds
|
||||
func (_m *RetentionPolicyStore) AddChannels(policyID string, channelIds []string) error {
|
||||
ret := _m.Called(policyID, channelIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AddChannels")
|
||||
@@ -24,7 +24,7 @@ func (_m *RetentionPolicyStore) AddChannels(policyId string, channelIds []string
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) error); ok {
|
||||
r0 = rf(policyId, channelIds)
|
||||
r0 = rf(policyID, channelIds)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
@@ -32,9 +32,9 @@ func (_m *RetentionPolicyStore) AddChannels(policyId string, channelIds []string
|
||||
return r0
|
||||
}
|
||||
|
||||
// AddTeams provides a mock function with given fields: policyId, teamIds
|
||||
func (_m *RetentionPolicyStore) AddTeams(policyId string, teamIds []string) error {
|
||||
ret := _m.Called(policyId, teamIds)
|
||||
// AddTeams provides a mock function with given fields: policyID, teamIds
|
||||
func (_m *RetentionPolicyStore) AddTeams(policyID string, teamIds []string) error {
|
||||
ret := _m.Called(policyID, teamIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AddTeams")
|
||||
@@ -42,7 +42,7 @@ func (_m *RetentionPolicyStore) AddTeams(policyId string, teamIds []string) erro
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) error); ok {
|
||||
r0 = rf(policyId, teamIds)
|
||||
r0 = rf(policyID, teamIds)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
@@ -214,9 +214,9 @@ func (_m *RetentionPolicyStore) GetChannelPoliciesForUser(userID string, offset
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetChannels provides a mock function with given fields: policyId, offset, limit
|
||||
func (_m *RetentionPolicyStore) GetChannels(policyId string, offset int, limit int) (model.ChannelListWithTeamData, error) {
|
||||
ret := _m.Called(policyId, offset, limit)
|
||||
// GetChannels provides a mock function with given fields: policyID, offset, limit
|
||||
func (_m *RetentionPolicyStore) GetChannels(policyID string, offset int, limit int) (model.ChannelListWithTeamData, error) {
|
||||
ret := _m.Called(policyID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetChannels")
|
||||
@@ -225,10 +225,10 @@ func (_m *RetentionPolicyStore) GetChannels(policyId string, offset int, limit i
|
||||
var r0 model.ChannelListWithTeamData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) (model.ChannelListWithTeamData, error)); ok {
|
||||
return rf(policyId, offset, limit)
|
||||
return rf(policyID, offset, limit)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) model.ChannelListWithTeamData); ok {
|
||||
r0 = rf(policyId, offset, limit)
|
||||
r0 = rf(policyID, offset, limit)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(model.ChannelListWithTeamData)
|
||||
@@ -236,7 +236,7 @@ func (_m *RetentionPolicyStore) GetChannels(policyId string, offset int, limit i
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, int, int) error); ok {
|
||||
r1 = rf(policyId, offset, limit)
|
||||
r1 = rf(policyID, offset, limit)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -244,9 +244,9 @@ func (_m *RetentionPolicyStore) GetChannels(policyId string, offset int, limit i
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetChannelsCount provides a mock function with given fields: policyId
|
||||
func (_m *RetentionPolicyStore) GetChannelsCount(policyId string) (int64, error) {
|
||||
ret := _m.Called(policyId)
|
||||
// GetChannelsCount provides a mock function with given fields: policyID
|
||||
func (_m *RetentionPolicyStore) GetChannelsCount(policyID string) (int64, error) {
|
||||
ret := _m.Called(policyID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetChannelsCount")
|
||||
@@ -255,16 +255,16 @@ func (_m *RetentionPolicyStore) GetChannelsCount(policyId string) (int64, error)
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int64, error)); ok {
|
||||
return rf(policyId)
|
||||
return rf(policyID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string) int64); ok {
|
||||
r0 = rf(policyId)
|
||||
r0 = rf(policyID)
|
||||
} else {
|
||||
r0 = ret.Get(0).(int64)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string) error); ok {
|
||||
r1 = rf(policyId)
|
||||
r1 = rf(policyID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -388,9 +388,9 @@ func (_m *RetentionPolicyStore) GetTeamPoliciesForUser(userID string, offset int
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetTeams provides a mock function with given fields: policyId, offset, limit
|
||||
func (_m *RetentionPolicyStore) GetTeams(policyId string, offset int, limit int) ([]*model.Team, error) {
|
||||
ret := _m.Called(policyId, offset, limit)
|
||||
// GetTeams provides a mock function with given fields: policyID, offset, limit
|
||||
func (_m *RetentionPolicyStore) GetTeams(policyID string, offset int, limit int) ([]*model.Team, error) {
|
||||
ret := _m.Called(policyID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTeams")
|
||||
@@ -399,10 +399,10 @@ func (_m *RetentionPolicyStore) GetTeams(policyId string, offset int, limit int)
|
||||
var r0 []*model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.Team, error)); ok {
|
||||
return rf(policyId, offset, limit)
|
||||
return rf(policyID, offset, limit)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) []*model.Team); ok {
|
||||
r0 = rf(policyId, offset, limit)
|
||||
r0 = rf(policyID, offset, limit)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.Team)
|
||||
@@ -410,7 +410,7 @@ func (_m *RetentionPolicyStore) GetTeams(policyId string, offset int, limit int)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, int, int) error); ok {
|
||||
r1 = rf(policyId, offset, limit)
|
||||
r1 = rf(policyID, offset, limit)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -418,9 +418,9 @@ func (_m *RetentionPolicyStore) GetTeams(policyId string, offset int, limit int)
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetTeamsCount provides a mock function with given fields: policyId
|
||||
func (_m *RetentionPolicyStore) GetTeamsCount(policyId string) (int64, error) {
|
||||
ret := _m.Called(policyId)
|
||||
// GetTeamsCount provides a mock function with given fields: policyID
|
||||
func (_m *RetentionPolicyStore) GetTeamsCount(policyID string) (int64, error) {
|
||||
ret := _m.Called(policyID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTeamsCount")
|
||||
@@ -429,16 +429,16 @@ func (_m *RetentionPolicyStore) GetTeamsCount(policyId string) (int64, error) {
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int64, error)); ok {
|
||||
return rf(policyId)
|
||||
return rf(policyID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string) int64); ok {
|
||||
r0 = rf(policyId)
|
||||
r0 = rf(policyID)
|
||||
} else {
|
||||
r0 = ret.Get(0).(int64)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string) error); ok {
|
||||
r1 = rf(policyId)
|
||||
r1 = rf(policyID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -476,9 +476,9 @@ func (_m *RetentionPolicyStore) Patch(patch *model.RetentionPolicyWithTeamAndCha
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// RemoveChannels provides a mock function with given fields: policyId, channelIds
|
||||
func (_m *RetentionPolicyStore) RemoveChannels(policyId string, channelIds []string) error {
|
||||
ret := _m.Called(policyId, channelIds)
|
||||
// RemoveChannels provides a mock function with given fields: policyID, channelIds
|
||||
func (_m *RetentionPolicyStore) RemoveChannels(policyID string, channelIds []string) error {
|
||||
ret := _m.Called(policyID, channelIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveChannels")
|
||||
@@ -486,7 +486,7 @@ func (_m *RetentionPolicyStore) RemoveChannels(policyId string, channelIds []str
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) error); ok {
|
||||
r0 = rf(policyId, channelIds)
|
||||
r0 = rf(policyID, channelIds)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
@@ -494,9 +494,9 @@ func (_m *RetentionPolicyStore) RemoveChannels(policyId string, channelIds []str
|
||||
return r0
|
||||
}
|
||||
|
||||
// RemoveTeams provides a mock function with given fields: policyId, teamIds
|
||||
func (_m *RetentionPolicyStore) RemoveTeams(policyId string, teamIds []string) error {
|
||||
ret := _m.Called(policyId, teamIds)
|
||||
// RemoveTeams provides a mock function with given fields: policyID, teamIds
|
||||
func (_m *RetentionPolicyStore) RemoveTeams(policyID string, teamIds []string) error {
|
||||
ret := _m.Called(policyID, teamIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveTeams")
|
||||
@@ -504,7 +504,7 @@ func (_m *RetentionPolicyStore) RemoveTeams(policyId string, teamIds []string) e
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) error); ok {
|
||||
r0 = rf(policyId, teamIds)
|
||||
r0 = rf(policyID, teamIds)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ type SharedChannelStore struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// Delete provides a mock function with given fields: channelId
|
||||
func (_m *SharedChannelStore) Delete(channelId string) (bool, error) {
|
||||
ret := _m.Called(channelId)
|
||||
// Delete provides a mock function with given fields: channelID
|
||||
func (_m *SharedChannelStore) Delete(channelID string) (bool, error) {
|
||||
ret := _m.Called(channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
@@ -25,16 +25,16 @@ func (_m *SharedChannelStore) Delete(channelId string) (bool, error) {
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (bool, error)); ok {
|
||||
return rf(channelId)
|
||||
return rf(channelID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string) bool); ok {
|
||||
r0 = rf(channelId)
|
||||
r0 = rf(channelID)
|
||||
} else {
|
||||
r0 = ret.Get(0).(bool)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string) error); ok {
|
||||
r1 = rf(channelId)
|
||||
r1 = rf(channelID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -42,9 +42,9 @@ func (_m *SharedChannelStore) Delete(channelId string) (bool, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// DeleteRemote provides a mock function with given fields: remoteId
|
||||
func (_m *SharedChannelStore) DeleteRemote(remoteId string) (bool, error) {
|
||||
ret := _m.Called(remoteId)
|
||||
// DeleteRemote provides a mock function with given fields: remoteID
|
||||
func (_m *SharedChannelStore) DeleteRemote(remoteID string) (bool, error) {
|
||||
ret := _m.Called(remoteID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteRemote")
|
||||
@@ -53,16 +53,16 @@ func (_m *SharedChannelStore) DeleteRemote(remoteId string) (bool, error) {
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (bool, error)); ok {
|
||||
return rf(remoteId)
|
||||
return rf(remoteID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string) bool); ok {
|
||||
r0 = rf(remoteId)
|
||||
r0 = rf(remoteID)
|
||||
} else {
|
||||
r0 = ret.Get(0).(bool)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string) error); ok {
|
||||
r1 = rf(remoteId)
|
||||
r1 = rf(remoteID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -70,9 +70,9 @@ func (_m *SharedChannelStore) DeleteRemote(remoteId string) (bool, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// Get provides a mock function with given fields: channelId
|
||||
func (_m *SharedChannelStore) Get(channelId string) (*model.SharedChannel, error) {
|
||||
ret := _m.Called(channelId)
|
||||
// Get provides a mock function with given fields: channelID
|
||||
func (_m *SharedChannelStore) Get(channelID string) (*model.SharedChannel, error) {
|
||||
ret := _m.Called(channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
@@ -81,10 +81,10 @@ func (_m *SharedChannelStore) Get(channelId string) (*model.SharedChannel, error
|
||||
var r0 *model.SharedChannel
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.SharedChannel, error)); ok {
|
||||
return rf(channelId)
|
||||
return rf(channelID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string) *model.SharedChannel); ok {
|
||||
r0 = rf(channelId)
|
||||
r0 = rf(channelID)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.SharedChannel)
|
||||
@@ -92,7 +92,7 @@ func (_m *SharedChannelStore) Get(channelId string) (*model.SharedChannel, error
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string) error); ok {
|
||||
r1 = rf(channelId)
|
||||
r1 = rf(channelID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -158,9 +158,9 @@ func (_m *SharedChannelStore) GetAllCount(opts model.SharedChannelFilterOpts) (i
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetAttachment provides a mock function with given fields: fileId, remoteId
|
||||
func (_m *SharedChannelStore) GetAttachment(fileId string, remoteId string) (*model.SharedChannelAttachment, error) {
|
||||
ret := _m.Called(fileId, remoteId)
|
||||
// GetAttachment provides a mock function with given fields: fileID, remoteID
|
||||
func (_m *SharedChannelStore) GetAttachment(fileID string, remoteID string) (*model.SharedChannelAttachment, error) {
|
||||
ret := _m.Called(fileID, remoteID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAttachment")
|
||||
@@ -169,10 +169,10 @@ func (_m *SharedChannelStore) GetAttachment(fileId string, remoteId string) (*mo
|
||||
var r0 *model.SharedChannelAttachment
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.SharedChannelAttachment, error)); ok {
|
||||
return rf(fileId, remoteId)
|
||||
return rf(fileID, remoteID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string) *model.SharedChannelAttachment); ok {
|
||||
r0 = rf(fileId, remoteId)
|
||||
r0 = rf(fileID, remoteID)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.SharedChannelAttachment)
|
||||
@@ -180,7 +180,7 @@ func (_m *SharedChannelStore) GetAttachment(fileId string, remoteId string) (*mo
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string) error); ok {
|
||||
r1 = rf(fileId, remoteId)
|
||||
r1 = rf(fileID, remoteID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -218,9 +218,9 @@ func (_m *SharedChannelStore) GetRemote(id string) (*model.SharedChannelRemote,
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetRemoteByIds provides a mock function with given fields: channelId, remoteId
|
||||
func (_m *SharedChannelStore) GetRemoteByIds(channelId string, remoteId string) (*model.SharedChannelRemote, error) {
|
||||
ret := _m.Called(channelId, remoteId)
|
||||
// GetRemoteByIds provides a mock function with given fields: channelID, remoteID
|
||||
func (_m *SharedChannelStore) GetRemoteByIds(channelID string, remoteID string) (*model.SharedChannelRemote, error) {
|
||||
ret := _m.Called(channelID, remoteID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetRemoteByIds")
|
||||
@@ -229,10 +229,10 @@ func (_m *SharedChannelStore) GetRemoteByIds(channelId string, remoteId string)
|
||||
var r0 *model.SharedChannelRemote
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.SharedChannelRemote, error)); ok {
|
||||
return rf(channelId, remoteId)
|
||||
return rf(channelID, remoteID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string) *model.SharedChannelRemote); ok {
|
||||
r0 = rf(channelId, remoteId)
|
||||
r0 = rf(channelID, remoteID)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.SharedChannelRemote)
|
||||
@@ -240,7 +240,7 @@ func (_m *SharedChannelStore) GetRemoteByIds(channelId string, remoteId string)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string) error); ok {
|
||||
r1 = rf(channelId, remoteId)
|
||||
r1 = rf(channelID, remoteID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -248,9 +248,9 @@ func (_m *SharedChannelStore) GetRemoteByIds(channelId string, remoteId string)
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetRemoteForUser provides a mock function with given fields: remoteId, userId
|
||||
func (_m *SharedChannelStore) GetRemoteForUser(remoteId string, userId string) (*model.RemoteCluster, error) {
|
||||
ret := _m.Called(remoteId, userId)
|
||||
// GetRemoteForUser provides a mock function with given fields: remoteID, userID
|
||||
func (_m *SharedChannelStore) GetRemoteForUser(remoteID string, userID string) (*model.RemoteCluster, error) {
|
||||
ret := _m.Called(remoteID, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetRemoteForUser")
|
||||
@@ -259,10 +259,10 @@ func (_m *SharedChannelStore) GetRemoteForUser(remoteId string, userId string) (
|
||||
var r0 *model.RemoteCluster
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.RemoteCluster, error)); ok {
|
||||
return rf(remoteId, userId)
|
||||
return rf(remoteID, userID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string) *model.RemoteCluster); ok {
|
||||
r0 = rf(remoteId, userId)
|
||||
r0 = rf(remoteID, userID)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.RemoteCluster)
|
||||
@@ -270,7 +270,7 @@ func (_m *SharedChannelStore) GetRemoteForUser(remoteId string, userId string) (
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string) error); ok {
|
||||
r1 = rf(remoteId, userId)
|
||||
r1 = rf(remoteID, userID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -308,9 +308,9 @@ func (_m *SharedChannelStore) GetRemotes(offset int, limit int, opts model.Share
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetRemotesStatus provides a mock function with given fields: channelId
|
||||
func (_m *SharedChannelStore) GetRemotesStatus(channelId string) ([]*model.SharedChannelRemoteStatus, error) {
|
||||
ret := _m.Called(channelId)
|
||||
// GetRemotesStatus provides a mock function with given fields: channelID
|
||||
func (_m *SharedChannelStore) GetRemotesStatus(channelID string) ([]*model.SharedChannelRemoteStatus, error) {
|
||||
ret := _m.Called(channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetRemotesStatus")
|
||||
@@ -319,10 +319,10 @@ func (_m *SharedChannelStore) GetRemotesStatus(channelId string) ([]*model.Share
|
||||
var r0 []*model.SharedChannelRemoteStatus
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.SharedChannelRemoteStatus, error)); ok {
|
||||
return rf(channelId)
|
||||
return rf(channelID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string) []*model.SharedChannelRemoteStatus); ok {
|
||||
r0 = rf(channelId)
|
||||
r0 = rf(channelID)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.SharedChannelRemoteStatus)
|
||||
@@ -330,7 +330,7 @@ func (_m *SharedChannelStore) GetRemotesStatus(channelId string) ([]*model.Share
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string) error); ok {
|
||||
r1 = rf(channelId)
|
||||
r1 = rf(channelID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -456,9 +456,9 @@ func (_m *SharedChannelStore) HasChannel(channelID string) (bool, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// HasRemote provides a mock function with given fields: channelID, remoteId
|
||||
func (_m *SharedChannelStore) HasRemote(channelID string, remoteId string) (bool, error) {
|
||||
ret := _m.Called(channelID, remoteId)
|
||||
// HasRemote provides a mock function with given fields: channelID, remoteID
|
||||
func (_m *SharedChannelStore) HasRemote(channelID string, remoteID string) (bool, error) {
|
||||
ret := _m.Called(channelID, remoteID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for HasRemote")
|
||||
@@ -467,16 +467,16 @@ func (_m *SharedChannelStore) HasRemote(channelID string, remoteId string) (bool
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (bool, error)); ok {
|
||||
return rf(channelID, remoteId)
|
||||
return rf(channelID, remoteID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string) bool); ok {
|
||||
r0 = rf(channelID, remoteId)
|
||||
r0 = rf(channelID, remoteID)
|
||||
} else {
|
||||
r0 = ret.Get(0).(bool)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string) error); ok {
|
||||
r1 = rf(channelID, remoteId)
|
||||
r1 = rf(channelID, remoteID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
@@ -15,9 +15,9 @@ type ThreadStore struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// DeleteMembershipForUser provides a mock function with given fields: userId, postID
|
||||
func (_m *ThreadStore) DeleteMembershipForUser(userId string, postID string) error {
|
||||
ret := _m.Called(userId, postID)
|
||||
// DeleteMembershipForUser provides a mock function with given fields: userID, postID
|
||||
func (_m *ThreadStore) DeleteMembershipForUser(userID string, postID string) error {
|
||||
ret := _m.Called(userID, postID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteMembershipForUser")
|
||||
@@ -25,7 +25,7 @@ func (_m *ThreadStore) DeleteMembershipForUser(userId string, postID string) err
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(userId, postID)
|
||||
r0 = rf(userID, postID)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
@@ -109,9 +109,9 @@ func (_m *ThreadStore) Get(id string) (*model.Thread, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetMembershipForUser provides a mock function with given fields: userId, postID
|
||||
func (_m *ThreadStore) GetMembershipForUser(userId string, postID string) (*model.ThreadMembership, error) {
|
||||
ret := _m.Called(userId, postID)
|
||||
// GetMembershipForUser provides a mock function with given fields: userID, postID
|
||||
func (_m *ThreadStore) GetMembershipForUser(userID string, postID string) (*model.ThreadMembership, error) {
|
||||
ret := _m.Called(userID, postID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMembershipForUser")
|
||||
@@ -120,10 +120,10 @@ func (_m *ThreadStore) GetMembershipForUser(userId string, postID string) (*mode
|
||||
var r0 *model.ThreadMembership
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.ThreadMembership, error)); ok {
|
||||
return rf(userId, postID)
|
||||
return rf(userID, postID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string) *model.ThreadMembership); ok {
|
||||
r0 = rf(userId, postID)
|
||||
r0 = rf(userID, postID)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.ThreadMembership)
|
||||
@@ -131,7 +131,7 @@ func (_m *ThreadStore) GetMembershipForUser(userId string, postID string) (*mode
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string) error); ok {
|
||||
r1 = rf(userId, postID)
|
||||
r1 = rf(userID, postID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -139,9 +139,9 @@ func (_m *ThreadStore) GetMembershipForUser(userId string, postID string) (*mode
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetMembershipsForUser provides a mock function with given fields: userId, teamID
|
||||
func (_m *ThreadStore) GetMembershipsForUser(userId string, teamID string) ([]*model.ThreadMembership, error) {
|
||||
ret := _m.Called(userId, teamID)
|
||||
// GetMembershipsForUser provides a mock function with given fields: userID, teamID
|
||||
func (_m *ThreadStore) GetMembershipsForUser(userID string, teamID string) ([]*model.ThreadMembership, error) {
|
||||
ret := _m.Called(userID, teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMembershipsForUser")
|
||||
@@ -150,10 +150,10 @@ func (_m *ThreadStore) GetMembershipsForUser(userId string, teamID string) ([]*m
|
||||
var r0 []*model.ThreadMembership
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) ([]*model.ThreadMembership, error)); ok {
|
||||
return rf(userId, teamID)
|
||||
return rf(userID, teamID)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string) []*model.ThreadMembership); ok {
|
||||
r0 = rf(userId, teamID)
|
||||
r0 = rf(userID, teamID)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.ThreadMembership)
|
||||
@@ -161,7 +161,7 @@ func (_m *ThreadStore) GetMembershipsForUser(userId string, teamID string) ([]*m
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string) error); ok {
|
||||
r1 = rf(userId, teamID)
|
||||
r1 = rf(userID, teamID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -317,9 +317,9 @@ func (_m *ThreadStore) GetThreadUnreadReplyCount(threadMembership *model.ThreadM
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetThreadsForUser provides a mock function with given fields: userId, teamID, opts
|
||||
func (_m *ThreadStore) GetThreadsForUser(userId string, teamID string, opts model.GetUserThreadsOpts) ([]*model.ThreadResponse, error) {
|
||||
ret := _m.Called(userId, teamID, opts)
|
||||
// GetThreadsForUser provides a mock function with given fields: userID, teamID, opts
|
||||
func (_m *ThreadStore) GetThreadsForUser(userID string, teamID string, opts model.GetUserThreadsOpts) ([]*model.ThreadResponse, error) {
|
||||
ret := _m.Called(userID, teamID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetThreadsForUser")
|
||||
@@ -328,10 +328,10 @@ func (_m *ThreadStore) GetThreadsForUser(userId string, teamID string, opts mode
|
||||
var r0 []*model.ThreadResponse
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) ([]*model.ThreadResponse, error)); ok {
|
||||
return rf(userId, teamID, opts)
|
||||
return rf(userID, teamID, opts)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) []*model.ThreadResponse); ok {
|
||||
r0 = rf(userId, teamID, opts)
|
||||
r0 = rf(userID, teamID, opts)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.ThreadResponse)
|
||||
@@ -339,7 +339,7 @@ func (_m *ThreadStore) GetThreadsForUser(userId string, teamID string, opts mode
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string, model.GetUserThreadsOpts) error); ok {
|
||||
r1 = rf(userId, teamID, opts)
|
||||
r1 = rf(userID, teamID, opts)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -347,9 +347,9 @@ func (_m *ThreadStore) GetThreadsForUser(userId string, teamID string, opts mode
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetTotalThreads provides a mock function with given fields: userId, teamID, opts
|
||||
func (_m *ThreadStore) GetTotalThreads(userId string, teamID string, opts model.GetUserThreadsOpts) (int64, error) {
|
||||
ret := _m.Called(userId, teamID, opts)
|
||||
// GetTotalThreads provides a mock function with given fields: userID, teamID, opts
|
||||
func (_m *ThreadStore) GetTotalThreads(userID string, teamID string, opts model.GetUserThreadsOpts) (int64, error) {
|
||||
ret := _m.Called(userID, teamID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTotalThreads")
|
||||
@@ -358,16 +358,16 @@ func (_m *ThreadStore) GetTotalThreads(userId string, teamID string, opts model.
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) (int64, error)); ok {
|
||||
return rf(userId, teamID, opts)
|
||||
return rf(userID, teamID, opts)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) int64); ok {
|
||||
r0 = rf(userId, teamID, opts)
|
||||
r0 = rf(userID, teamID, opts)
|
||||
} else {
|
||||
r0 = ret.Get(0).(int64)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string, model.GetUserThreadsOpts) error); ok {
|
||||
r1 = rf(userId, teamID, opts)
|
||||
r1 = rf(userID, teamID, opts)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -375,9 +375,9 @@ func (_m *ThreadStore) GetTotalThreads(userId string, teamID string, opts model.
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetTotalUnreadMentions provides a mock function with given fields: userId, teamID, opts
|
||||
func (_m *ThreadStore) GetTotalUnreadMentions(userId string, teamID string, opts model.GetUserThreadsOpts) (int64, error) {
|
||||
ret := _m.Called(userId, teamID, opts)
|
||||
// GetTotalUnreadMentions provides a mock function with given fields: userID, teamID, opts
|
||||
func (_m *ThreadStore) GetTotalUnreadMentions(userID string, teamID string, opts model.GetUserThreadsOpts) (int64, error) {
|
||||
ret := _m.Called(userID, teamID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTotalUnreadMentions")
|
||||
@@ -386,16 +386,16 @@ func (_m *ThreadStore) GetTotalUnreadMentions(userId string, teamID string, opts
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) (int64, error)); ok {
|
||||
return rf(userId, teamID, opts)
|
||||
return rf(userID, teamID, opts)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) int64); ok {
|
||||
r0 = rf(userId, teamID, opts)
|
||||
r0 = rf(userID, teamID, opts)
|
||||
} else {
|
||||
r0 = ret.Get(0).(int64)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string, model.GetUserThreadsOpts) error); ok {
|
||||
r1 = rf(userId, teamID, opts)
|
||||
r1 = rf(userID, teamID, opts)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -403,9 +403,9 @@ func (_m *ThreadStore) GetTotalUnreadMentions(userId string, teamID string, opts
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetTotalUnreadThreads provides a mock function with given fields: userId, teamID, opts
|
||||
func (_m *ThreadStore) GetTotalUnreadThreads(userId string, teamID string, opts model.GetUserThreadsOpts) (int64, error) {
|
||||
ret := _m.Called(userId, teamID, opts)
|
||||
// GetTotalUnreadThreads provides a mock function with given fields: userID, teamID, opts
|
||||
func (_m *ThreadStore) GetTotalUnreadThreads(userID string, teamID string, opts model.GetUserThreadsOpts) (int64, error) {
|
||||
ret := _m.Called(userID, teamID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTotalUnreadThreads")
|
||||
@@ -414,16 +414,16 @@ func (_m *ThreadStore) GetTotalUnreadThreads(userId string, teamID string, opts
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) (int64, error)); ok {
|
||||
return rf(userId, teamID, opts)
|
||||
return rf(userID, teamID, opts)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) int64); ok {
|
||||
r0 = rf(userId, teamID, opts)
|
||||
r0 = rf(userID, teamID, opts)
|
||||
} else {
|
||||
r0 = ret.Get(0).(int64)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string, model.GetUserThreadsOpts) error); ok {
|
||||
r1 = rf(userId, teamID, opts)
|
||||
r1 = rf(userID, teamID, opts)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -431,9 +431,9 @@ func (_m *ThreadStore) GetTotalUnreadThreads(userId string, teamID string, opts
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetTotalUnreadUrgentMentions provides a mock function with given fields: userId, teamID, opts
|
||||
func (_m *ThreadStore) GetTotalUnreadUrgentMentions(userId string, teamID string, opts model.GetUserThreadsOpts) (int64, error) {
|
||||
ret := _m.Called(userId, teamID, opts)
|
||||
// GetTotalUnreadUrgentMentions provides a mock function with given fields: userID, teamID, opts
|
||||
func (_m *ThreadStore) GetTotalUnreadUrgentMentions(userID string, teamID string, opts model.GetUserThreadsOpts) (int64, error) {
|
||||
ret := _m.Called(userID, teamID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTotalUnreadUrgentMentions")
|
||||
@@ -442,16 +442,16 @@ func (_m *ThreadStore) GetTotalUnreadUrgentMentions(userId string, teamID string
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) (int64, error)); ok {
|
||||
return rf(userId, teamID, opts)
|
||||
return rf(userID, teamID, opts)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) int64); ok {
|
||||
r0 = rf(userId, teamID, opts)
|
||||
r0 = rf(userID, teamID, opts)
|
||||
} else {
|
||||
r0 = ret.Get(0).(int64)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string, model.GetUserThreadsOpts) error); ok {
|
||||
r1 = rf(userId, teamID, opts)
|
||||
r1 = rf(userID, teamID, opts)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
@@ -479,9 +479,9 @@ func (_m *UserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.Use
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetAllProfilesInChannel provides a mock function with given fields: rctx, channelID, allowFromCache
|
||||
func (_m *UserStore) GetAllProfilesInChannel(rctx context.Context, channelID string, allowFromCache bool) (map[string]*model.User, error) {
|
||||
ret := _m.Called(rctx, channelID, allowFromCache)
|
||||
// GetAllProfilesInChannel provides a mock function with given fields: ctx, channelID, allowFromCache
|
||||
func (_m *UserStore) GetAllProfilesInChannel(ctx context.Context, channelID string, allowFromCache bool) (map[string]*model.User, error) {
|
||||
ret := _m.Called(ctx, channelID, allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllProfilesInChannel")
|
||||
@@ -490,10 +490,10 @@ func (_m *UserStore) GetAllProfilesInChannel(rctx context.Context, channelID str
|
||||
var r0 map[string]*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(context.Context, string, bool) (map[string]*model.User, error)); ok {
|
||||
return rf(rctx, channelID, allowFromCache)
|
||||
return rf(ctx, channelID, allowFromCache)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(context.Context, string, bool) map[string]*model.User); ok {
|
||||
r0 = rf(rctx, channelID, allowFromCache)
|
||||
r0 = rf(ctx, channelID, allowFromCache)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(map[string]*model.User)
|
||||
@@ -501,7 +501,7 @@ func (_m *UserStore) GetAllProfilesInChannel(rctx context.Context, channelID str
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(context.Context, string, bool) error); ok {
|
||||
r1 = rf(rctx, channelID, allowFromCache)
|
||||
r1 = rf(ctx, channelID, allowFromCache)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
@@ -1131,9 +1131,9 @@ func (_m *UserStore) GetProfilesInChannelByStatus(options *model.UserGetOptions)
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetProfilesNotInChannel provides a mock function with given fields: teamID, channelId, groupConstrained, offset, limit, viewRestrictions
|
||||
func (_m *UserStore) GetProfilesNotInChannel(teamID string, channelId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error) {
|
||||
ret := _m.Called(teamID, channelId, groupConstrained, offset, limit, viewRestrictions)
|
||||
// GetProfilesNotInChannel provides a mock function with given fields: teamID, channelID, groupConstrained, offset, limit, viewRestrictions
|
||||
func (_m *UserStore) GetProfilesNotInChannel(teamID string, channelID string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error) {
|
||||
ret := _m.Called(teamID, channelID, groupConstrained, offset, limit, viewRestrictions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetProfilesNotInChannel")
|
||||
@@ -1142,10 +1142,10 @@ func (_m *UserStore) GetProfilesNotInChannel(teamID string, channelId string, gr
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, bool, int, int, *model.ViewUsersRestrictions) ([]*model.User, error)); ok {
|
||||
return rf(teamID, channelId, groupConstrained, offset, limit, viewRestrictions)
|
||||
return rf(teamID, channelID, groupConstrained, offset, limit, viewRestrictions)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string, string, bool, int, int, *model.ViewUsersRestrictions) []*model.User); ok {
|
||||
r0 = rf(teamID, channelId, groupConstrained, offset, limit, viewRestrictions)
|
||||
r0 = rf(teamID, channelID, groupConstrained, offset, limit, viewRestrictions)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.User)
|
||||
@@ -1153,7 +1153,7 @@ func (_m *UserStore) GetProfilesNotInChannel(teamID string, channelId string, gr
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string, string, bool, int, int, *model.ViewUsersRestrictions) error); ok {
|
||||
r1 = rf(teamID, channelId, groupConstrained, offset, limit, viewRestrictions)
|
||||
r1 = rf(teamID, channelID, groupConstrained, offset, limit, viewRestrictions)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ type UserTermsOfServiceStore struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// Delete provides a mock function with given fields: userID, termsOfServiceId
|
||||
func (_m *UserTermsOfServiceStore) Delete(userID string, termsOfServiceId string) error {
|
||||
ret := _m.Called(userID, termsOfServiceId)
|
||||
// Delete provides a mock function with given fields: userID, termsOfServiceID
|
||||
func (_m *UserTermsOfServiceStore) Delete(userID string, termsOfServiceID string) error {
|
||||
ret := _m.Called(userID, termsOfServiceID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
@@ -24,7 +24,7 @@ func (_m *UserTermsOfServiceStore) Delete(userID string, termsOfServiceId string
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(userID, termsOfServiceId)
|
||||
r0 = rf(userID, termsOfServiceID)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user