summaryrefslogtreecommitdiffstats
path: root/store/storetest/mocks/ChannelStore.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2018-01-31 08:26:40 -0600
committerJoram Wilander <jwawilander@gmail.com>2018-01-31 09:26:40 -0500
commite0ee73ef9963ab398bcc6011795ad23e8e003147 (patch)
tree37c773074588792a3badd2a68dfbbdbfa459164d /store/storetest/mocks/ChannelStore.go
parent0c8968fb8df4ce302c928118cd81e75f5bef2861 (diff)
downloadchat-e0ee73ef9963ab398bcc6011795ad23e8e003147.tar.gz
chat-e0ee73ef9963ab398bcc6011795ad23e8e003147.tar.bz2
chat-e0ee73ef9963ab398bcc6011795ad23e8e003147.zip
ABC-79: Optimize channel autocomplete query (#8163)
* optimize channel autocomplete query * move to new autocomplete endpoint
Diffstat (limited to 'store/storetest/mocks/ChannelStore.go')
-rw-r--r--store/storetest/mocks/ChannelStore.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/store/storetest/mocks/ChannelStore.go b/store/storetest/mocks/ChannelStore.go
index c878d602b..5379c2fb4 100644
--- a/store/storetest/mocks/ChannelStore.go
+++ b/store/storetest/mocks/ChannelStore.go
@@ -45,6 +45,22 @@ func (_m *ChannelStore) AnalyticsTypeCount(teamId string, channelType string) st
return r0
}
+// AutocompleteInTeam provides a mock function with given fields: teamId, term
+func (_m *ChannelStore) AutocompleteInTeam(teamId string, term string) store.StoreChannel {
+ ret := _m.Called(teamId, term)
+
+ var r0 store.StoreChannel
+ if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
+ r0 = rf(teamId, term)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(store.StoreChannel)
+ }
+ }
+
+ return r0
+}
+
// CreateDirectChannel provides a mock function with given fields: userId, otherUserId
func (_m *ChannelStore) CreateDirectChannel(userId string, otherUserId string) store.StoreChannel {
ret := _m.Called(userId, otherUserId)