github.com/mad-app/mattermost-server@v5.11.1+incompatible/store/storetest/mocks/GroupStore.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 // Regenerate this file using `make store-mocks`. 4 5 package mocks 6 7 import mock "github.com/stretchr/testify/mock" 8 import model "github.com/mattermost/mattermost-server/model" 9 import store "github.com/mattermost/mattermost-server/store" 10 11 // GroupStore is an autogenerated mock type for the GroupStore type 12 type GroupStore struct { 13 mock.Mock 14 } 15 16 // Create provides a mock function with given fields: group 17 func (_m *GroupStore) Create(group *model.Group) store.StoreChannel { 18 ret := _m.Called(group) 19 20 var r0 store.StoreChannel 21 if rf, ok := ret.Get(0).(func(*model.Group) store.StoreChannel); ok { 22 r0 = rf(group) 23 } else { 24 if ret.Get(0) != nil { 25 r0 = ret.Get(0).(store.StoreChannel) 26 } 27 } 28 29 return r0 30 } 31 32 // CreateGroupSyncable provides a mock function with given fields: groupSyncable 33 func (_m *GroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) store.StoreChannel { 34 ret := _m.Called(groupSyncable) 35 36 var r0 store.StoreChannel 37 if rf, ok := ret.Get(0).(func(*model.GroupSyncable) store.StoreChannel); ok { 38 r0 = rf(groupSyncable) 39 } else { 40 if ret.Get(0) != nil { 41 r0 = ret.Get(0).(store.StoreChannel) 42 } 43 } 44 45 return r0 46 } 47 48 // CreateOrRestoreMember provides a mock function with given fields: groupID, userID 49 func (_m *GroupStore) CreateOrRestoreMember(groupID string, userID string) store.StoreChannel { 50 ret := _m.Called(groupID, userID) 51 52 var r0 store.StoreChannel 53 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 54 r0 = rf(groupID, userID) 55 } else { 56 if ret.Get(0) != nil { 57 r0 = ret.Get(0).(store.StoreChannel) 58 } 59 } 60 61 return r0 62 } 63 64 // Delete provides a mock function with given fields: groupID 65 func (_m *GroupStore) Delete(groupID string) store.StoreChannel { 66 ret := _m.Called(groupID) 67 68 var r0 store.StoreChannel 69 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 70 r0 = rf(groupID) 71 } else { 72 if ret.Get(0) != nil { 73 r0 = ret.Get(0).(store.StoreChannel) 74 } 75 } 76 77 return r0 78 } 79 80 // DeleteGroupSyncable provides a mock function with given fields: groupID, syncableID, syncableType 81 func (_m *GroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) store.StoreChannel { 82 ret := _m.Called(groupID, syncableID, syncableType) 83 84 var r0 store.StoreChannel 85 if rf, ok := ret.Get(0).(func(string, string, model.GroupSyncableType) store.StoreChannel); ok { 86 r0 = rf(groupID, syncableID, syncableType) 87 } else { 88 if ret.Get(0) != nil { 89 r0 = ret.Get(0).(store.StoreChannel) 90 } 91 } 92 93 return r0 94 } 95 96 // DeleteMember provides a mock function with given fields: groupID, userID 97 func (_m *GroupStore) DeleteMember(groupID string, userID string) store.StoreChannel { 98 ret := _m.Called(groupID, userID) 99 100 var r0 store.StoreChannel 101 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 102 r0 = rf(groupID, userID) 103 } else { 104 if ret.Get(0) != nil { 105 r0 = ret.Get(0).(store.StoreChannel) 106 } 107 } 108 109 return r0 110 } 111 112 // Get provides a mock function with given fields: groupID 113 func (_m *GroupStore) Get(groupID string) store.StoreChannel { 114 ret := _m.Called(groupID) 115 116 var r0 store.StoreChannel 117 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 118 r0 = rf(groupID) 119 } else { 120 if ret.Get(0) != nil { 121 r0 = ret.Get(0).(store.StoreChannel) 122 } 123 } 124 125 return r0 126 } 127 128 // GetAllBySource provides a mock function with given fields: groupSource 129 func (_m *GroupStore) GetAllBySource(groupSource model.GroupSource) store.StoreChannel { 130 ret := _m.Called(groupSource) 131 132 var r0 store.StoreChannel 133 if rf, ok := ret.Get(0).(func(model.GroupSource) store.StoreChannel); ok { 134 r0 = rf(groupSource) 135 } else { 136 if ret.Get(0) != nil { 137 r0 = ret.Get(0).(store.StoreChannel) 138 } 139 } 140 141 return r0 142 } 143 144 // GetAllGroupSyncablesByGroupId provides a mock function with given fields: groupID, syncableType 145 func (_m *GroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) store.StoreChannel { 146 ret := _m.Called(groupID, syncableType) 147 148 var r0 store.StoreChannel 149 if rf, ok := ret.Get(0).(func(string, model.GroupSyncableType) store.StoreChannel); ok { 150 r0 = rf(groupID, syncableType) 151 } else { 152 if ret.Get(0) != nil { 153 r0 = ret.Get(0).(store.StoreChannel) 154 } 155 } 156 157 return r0 158 } 159 160 // GetByRemoteID provides a mock function with given fields: remoteID, groupSource 161 func (_m *GroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) store.StoreChannel { 162 ret := _m.Called(remoteID, groupSource) 163 164 var r0 store.StoreChannel 165 if rf, ok := ret.Get(0).(func(string, model.GroupSource) store.StoreChannel); ok { 166 r0 = rf(remoteID, groupSource) 167 } else { 168 if ret.Get(0) != nil { 169 r0 = ret.Get(0).(store.StoreChannel) 170 } 171 } 172 173 return r0 174 } 175 176 // GetGroupSyncable provides a mock function with given fields: groupID, syncableID, syncableType 177 func (_m *GroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) store.StoreChannel { 178 ret := _m.Called(groupID, syncableID, syncableType) 179 180 var r0 store.StoreChannel 181 if rf, ok := ret.Get(0).(func(string, string, model.GroupSyncableType) store.StoreChannel); ok { 182 r0 = rf(groupID, syncableID, syncableType) 183 } else { 184 if ret.Get(0) != nil { 185 r0 = ret.Get(0).(store.StoreChannel) 186 } 187 } 188 189 return r0 190 } 191 192 // GetMemberCount provides a mock function with given fields: groupID 193 func (_m *GroupStore) GetMemberCount(groupID string) store.StoreChannel { 194 ret := _m.Called(groupID) 195 196 var r0 store.StoreChannel 197 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 198 r0 = rf(groupID) 199 } else { 200 if ret.Get(0) != nil { 201 r0 = ret.Get(0).(store.StoreChannel) 202 } 203 } 204 205 return r0 206 } 207 208 // GetMemberUsers provides a mock function with given fields: groupID 209 func (_m *GroupStore) GetMemberUsers(groupID string) store.StoreChannel { 210 ret := _m.Called(groupID) 211 212 var r0 store.StoreChannel 213 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 214 r0 = rf(groupID) 215 } else { 216 if ret.Get(0) != nil { 217 r0 = ret.Get(0).(store.StoreChannel) 218 } 219 } 220 221 return r0 222 } 223 224 // GetMemberUsersPage provides a mock function with given fields: groupID, offset, limit 225 func (_m *GroupStore) GetMemberUsersPage(groupID string, offset int, limit int) store.StoreChannel { 226 ret := _m.Called(groupID, offset, limit) 227 228 var r0 store.StoreChannel 229 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 230 r0 = rf(groupID, offset, limit) 231 } else { 232 if ret.Get(0) != nil { 233 r0 = ret.Get(0).(store.StoreChannel) 234 } 235 } 236 237 return r0 238 } 239 240 // PendingAutoAddChannelMembers provides a mock function with given fields: minGroupMembersCreateAt 241 func (_m *GroupStore) PendingAutoAddChannelMembers(minGroupMembersCreateAt int64) store.StoreChannel { 242 ret := _m.Called(minGroupMembersCreateAt) 243 244 var r0 store.StoreChannel 245 if rf, ok := ret.Get(0).(func(int64) store.StoreChannel); ok { 246 r0 = rf(minGroupMembersCreateAt) 247 } else { 248 if ret.Get(0) != nil { 249 r0 = ret.Get(0).(store.StoreChannel) 250 } 251 } 252 253 return r0 254 } 255 256 // PendingAutoAddTeamMembers provides a mock function with given fields: minGroupMembersCreateAt 257 func (_m *GroupStore) PendingAutoAddTeamMembers(minGroupMembersCreateAt int64) store.StoreChannel { 258 ret := _m.Called(minGroupMembersCreateAt) 259 260 var r0 store.StoreChannel 261 if rf, ok := ret.Get(0).(func(int64) store.StoreChannel); ok { 262 r0 = rf(minGroupMembersCreateAt) 263 } else { 264 if ret.Get(0) != nil { 265 r0 = ret.Get(0).(store.StoreChannel) 266 } 267 } 268 269 return r0 270 } 271 272 // Update provides a mock function with given fields: group 273 func (_m *GroupStore) Update(group *model.Group) store.StoreChannel { 274 ret := _m.Called(group) 275 276 var r0 store.StoreChannel 277 if rf, ok := ret.Get(0).(func(*model.Group) store.StoreChannel); ok { 278 r0 = rf(group) 279 } else { 280 if ret.Get(0) != nil { 281 r0 = ret.Get(0).(store.StoreChannel) 282 } 283 } 284 285 return r0 286 } 287 288 // UpdateGroupSyncable provides a mock function with given fields: groupSyncable 289 func (_m *GroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) store.StoreChannel { 290 ret := _m.Called(groupSyncable) 291 292 var r0 store.StoreChannel 293 if rf, ok := ret.Get(0).(func(*model.GroupSyncable) store.StoreChannel); ok { 294 r0 = rf(groupSyncable) 295 } else { 296 if ret.Get(0) != nil { 297 r0 = ret.Get(0).(store.StoreChannel) 298 } 299 } 300 301 return r0 302 }