diff options
Diffstat (limited to 'store/storetest/mocks')
-rw-r--r-- | store/storetest/mocks/ChannelStore.go | 31 | ||||
-rw-r--r-- | store/storetest/mocks/UserStore.go | 20 |
2 files changed, 26 insertions, 25 deletions
diff --git a/store/storetest/mocks/ChannelStore.go b/store/storetest/mocks/ChannelStore.go index 9d42d0b65..7ad8f100d 100644 --- a/store/storetest/mocks/ChannelStore.go +++ b/store/storetest/mocks/ChannelStore.go @@ -314,6 +314,22 @@ func (_m *ChannelStore) GetChannelMembersForExport(userId string, teamId string) return r0 } +// GetChannelMembersTimezones provides a mock function with given fields: channelId +func (_m *ChannelStore) GetChannelMembersTimezones(channelId string) store.StoreChannel { + ret := _m.Called(channelId) + + var r0 store.StoreChannel + if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { + r0 = rf(channelId) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(store.StoreChannel) + } + } + + return r0 +} + // GetChannelUnread provides a mock function with given fields: channelId, userId func (_m *ChannelStore) GetChannelUnread(channelId string, userId string) store.StoreChannel { ret := _m.Called(channelId, userId) @@ -442,21 +458,6 @@ func (_m *ChannelStore) GetMember(channelId string, userId string) store.StoreCh return r0 } -func (_m *ChannelStore) GetChannelMembersTimezones(channelId string) store.StoreChannel { - ret := _m.Called(channelId) - - var r0 store.StoreChannel - if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { - r0 = rf(channelId) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(store.StoreChannel) - } - } - - return r0 -} - // GetMemberCount provides a mock function with given fields: channelId, allowFromCache func (_m *ChannelStore) GetMemberCount(channelId string, allowFromCache bool) store.StoreChannel { ret := _m.Called(channelId, allowFromCache) diff --git a/store/storetest/mocks/UserStore.go b/store/storetest/mocks/UserStore.go index 1e0ce8818..de836e95d 100644 --- a/store/storetest/mocks/UserStore.go +++ b/store/storetest/mocks/UserStore.go @@ -626,11 +626,11 @@ func (_m *UserStore) Save(user *model.User) store.StoreChannel { } // Search provides a mock function with given fields: teamId, term, options -func (_m *UserStore) Search(teamId string, term string, options map[string]bool) store.StoreChannel { +func (_m *UserStore) Search(teamId string, term string, options *model.UserSearchOptions) store.StoreChannel { ret := _m.Called(teamId, term, options) var r0 store.StoreChannel - if rf, ok := ret.Get(0).(func(string, string, map[string]bool) store.StoreChannel); ok { + if rf, ok := ret.Get(0).(func(string, string, *model.UserSearchOptions) store.StoreChannel); ok { r0 = rf(teamId, term, options) } else { if ret.Get(0) != nil { @@ -642,11 +642,11 @@ func (_m *UserStore) Search(teamId string, term string, options map[string]bool) } // SearchInChannel provides a mock function with given fields: channelId, term, options -func (_m *UserStore) SearchInChannel(channelId string, term string, options map[string]bool) store.StoreChannel { +func (_m *UserStore) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) store.StoreChannel { ret := _m.Called(channelId, term, options) var r0 store.StoreChannel - if rf, ok := ret.Get(0).(func(string, string, map[string]bool) store.StoreChannel); ok { + if rf, ok := ret.Get(0).(func(string, string, *model.UserSearchOptions) store.StoreChannel); ok { r0 = rf(channelId, term, options) } else { if ret.Get(0) != nil { @@ -658,11 +658,11 @@ func (_m *UserStore) SearchInChannel(channelId string, term string, options map[ } // SearchNotInChannel provides a mock function with given fields: teamId, channelId, term, options -func (_m *UserStore) SearchNotInChannel(teamId string, channelId string, term string, options map[string]bool) store.StoreChannel { +func (_m *UserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) store.StoreChannel { ret := _m.Called(teamId, channelId, term, options) var r0 store.StoreChannel - if rf, ok := ret.Get(0).(func(string, string, string, map[string]bool) store.StoreChannel); ok { + if rf, ok := ret.Get(0).(func(string, string, string, *model.UserSearchOptions) store.StoreChannel); ok { r0 = rf(teamId, channelId, term, options) } else { if ret.Get(0) != nil { @@ -674,11 +674,11 @@ func (_m *UserStore) SearchNotInChannel(teamId string, channelId string, term st } // SearchNotInTeam provides a mock function with given fields: notInTeamId, term, options -func (_m *UserStore) SearchNotInTeam(notInTeamId string, term string, options map[string]bool) store.StoreChannel { +func (_m *UserStore) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) store.StoreChannel { ret := _m.Called(notInTeamId, term, options) var r0 store.StoreChannel - if rf, ok := ret.Get(0).(func(string, string, map[string]bool) store.StoreChannel); ok { + if rf, ok := ret.Get(0).(func(string, string, *model.UserSearchOptions) store.StoreChannel); ok { r0 = rf(notInTeamId, term, options) } else { if ret.Get(0) != nil { @@ -690,11 +690,11 @@ func (_m *UserStore) SearchNotInTeam(notInTeamId string, term string, options ma } // SearchWithoutTeam provides a mock function with given fields: term, options -func (_m *UserStore) SearchWithoutTeam(term string, options map[string]bool) store.StoreChannel { +func (_m *UserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) store.StoreChannel { ret := _m.Called(term, options) var r0 store.StoreChannel - if rf, ok := ret.Get(0).(func(string, map[string]bool) store.StoreChannel); ok { + if rf, ok := ret.Get(0).(func(string, *model.UserSearchOptions) store.StoreChannel); ok { r0 = rf(term, options) } else { if ret.Get(0) != nil { |