github.com/wgh-/mattermost-server@v4.8.0-rc2+incompatible/store/storetest/mocks/WebhookStore.go (about) 1 // Code generated by mockery v1.0.0 2 3 // Regenerate this file using `make store-mocks`. 4 5 package mocks 6 7 import mock "github.com/stretchr/testify/mock" 8 import model "github.com/mattermost/mattermost-server/model" 9 import store "github.com/mattermost/mattermost-server/store" 10 11 // WebhookStore is an autogenerated mock type for the WebhookStore type 12 type WebhookStore struct { 13 mock.Mock 14 } 15 16 // AnalyticsIncomingCount provides a mock function with given fields: teamId 17 func (_m *WebhookStore) AnalyticsIncomingCount(teamId string) store.StoreChannel { 18 ret := _m.Called(teamId) 19 20 var r0 store.StoreChannel 21 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 22 r0 = rf(teamId) 23 } else { 24 if ret.Get(0) != nil { 25 r0 = ret.Get(0).(store.StoreChannel) 26 } 27 } 28 29 return r0 30 } 31 32 // AnalyticsOutgoingCount provides a mock function with given fields: teamId 33 func (_m *WebhookStore) AnalyticsOutgoingCount(teamId string) store.StoreChannel { 34 ret := _m.Called(teamId) 35 36 var r0 store.StoreChannel 37 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 38 r0 = rf(teamId) 39 } else { 40 if ret.Get(0) != nil { 41 r0 = ret.Get(0).(store.StoreChannel) 42 } 43 } 44 45 return r0 46 } 47 48 // DeleteIncoming provides a mock function with given fields: webhookId, time 49 func (_m *WebhookStore) DeleteIncoming(webhookId string, time int64) store.StoreChannel { 50 ret := _m.Called(webhookId, time) 51 52 var r0 store.StoreChannel 53 if rf, ok := ret.Get(0).(func(string, int64) store.StoreChannel); ok { 54 r0 = rf(webhookId, time) 55 } else { 56 if ret.Get(0) != nil { 57 r0 = ret.Get(0).(store.StoreChannel) 58 } 59 } 60 61 return r0 62 } 63 64 // DeleteOutgoing provides a mock function with given fields: webhookId, time 65 func (_m *WebhookStore) DeleteOutgoing(webhookId string, time int64) store.StoreChannel { 66 ret := _m.Called(webhookId, time) 67 68 var r0 store.StoreChannel 69 if rf, ok := ret.Get(0).(func(string, int64) store.StoreChannel); ok { 70 r0 = rf(webhookId, time) 71 } else { 72 if ret.Get(0) != nil { 73 r0 = ret.Get(0).(store.StoreChannel) 74 } 75 } 76 77 return r0 78 } 79 80 // GetIncoming provides a mock function with given fields: id, allowFromCache 81 func (_m *WebhookStore) GetIncoming(id string, allowFromCache bool) store.StoreChannel { 82 ret := _m.Called(id, allowFromCache) 83 84 var r0 store.StoreChannel 85 if rf, ok := ret.Get(0).(func(string, bool) store.StoreChannel); ok { 86 r0 = rf(id, allowFromCache) 87 } else { 88 if ret.Get(0) != nil { 89 r0 = ret.Get(0).(store.StoreChannel) 90 } 91 } 92 93 return r0 94 } 95 96 // GetIncomingByChannel provides a mock function with given fields: channelId 97 func (_m *WebhookStore) GetIncomingByChannel(channelId string) store.StoreChannel { 98 ret := _m.Called(channelId) 99 100 var r0 store.StoreChannel 101 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 102 r0 = rf(channelId) 103 } else { 104 if ret.Get(0) != nil { 105 r0 = ret.Get(0).(store.StoreChannel) 106 } 107 } 108 109 return r0 110 } 111 112 // GetIncomingByTeam provides a mock function with given fields: teamId, offset, limit 113 func (_m *WebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) store.StoreChannel { 114 ret := _m.Called(teamId, offset, limit) 115 116 var r0 store.StoreChannel 117 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 118 r0 = rf(teamId, offset, limit) 119 } else { 120 if ret.Get(0) != nil { 121 r0 = ret.Get(0).(store.StoreChannel) 122 } 123 } 124 125 return r0 126 } 127 128 // GetIncomingList provides a mock function with given fields: offset, limit 129 func (_m *WebhookStore) GetIncomingList(offset int, limit int) store.StoreChannel { 130 ret := _m.Called(offset, limit) 131 132 var r0 store.StoreChannel 133 if rf, ok := ret.Get(0).(func(int, int) store.StoreChannel); ok { 134 r0 = rf(offset, limit) 135 } else { 136 if ret.Get(0) != nil { 137 r0 = ret.Get(0).(store.StoreChannel) 138 } 139 } 140 141 return r0 142 } 143 144 // GetOutgoing provides a mock function with given fields: id 145 func (_m *WebhookStore) GetOutgoing(id string) store.StoreChannel { 146 ret := _m.Called(id) 147 148 var r0 store.StoreChannel 149 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 150 r0 = rf(id) 151 } else { 152 if ret.Get(0) != nil { 153 r0 = ret.Get(0).(store.StoreChannel) 154 } 155 } 156 157 return r0 158 } 159 160 // GetOutgoingByChannel provides a mock function with given fields: channelId, offset, limit 161 func (_m *WebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) store.StoreChannel { 162 ret := _m.Called(channelId, offset, limit) 163 164 var r0 store.StoreChannel 165 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 166 r0 = rf(channelId, offset, limit) 167 } else { 168 if ret.Get(0) != nil { 169 r0 = ret.Get(0).(store.StoreChannel) 170 } 171 } 172 173 return r0 174 } 175 176 // GetOutgoingByTeam provides a mock function with given fields: teamId, offset, limit 177 func (_m *WebhookStore) GetOutgoingByTeam(teamId string, offset int, limit int) store.StoreChannel { 178 ret := _m.Called(teamId, offset, limit) 179 180 var r0 store.StoreChannel 181 if rf, ok := ret.Get(0).(func(string, int, int) store.StoreChannel); ok { 182 r0 = rf(teamId, offset, limit) 183 } else { 184 if ret.Get(0) != nil { 185 r0 = ret.Get(0).(store.StoreChannel) 186 } 187 } 188 189 return r0 190 } 191 192 // GetOutgoingList provides a mock function with given fields: offset, limit 193 func (_m *WebhookStore) GetOutgoingList(offset int, limit int) store.StoreChannel { 194 ret := _m.Called(offset, limit) 195 196 var r0 store.StoreChannel 197 if rf, ok := ret.Get(0).(func(int, int) store.StoreChannel); ok { 198 r0 = rf(offset, limit) 199 } else { 200 if ret.Get(0) != nil { 201 r0 = ret.Get(0).(store.StoreChannel) 202 } 203 } 204 205 return r0 206 } 207 208 // InvalidateWebhookCache provides a mock function with given fields: webhook 209 func (_m *WebhookStore) InvalidateWebhookCache(webhook string) { 210 _m.Called(webhook) 211 } 212 213 // PermanentDeleteIncomingByChannel provides a mock function with given fields: channelId 214 func (_m *WebhookStore) PermanentDeleteIncomingByChannel(channelId string) store.StoreChannel { 215 ret := _m.Called(channelId) 216 217 var r0 store.StoreChannel 218 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 219 r0 = rf(channelId) 220 } else { 221 if ret.Get(0) != nil { 222 r0 = ret.Get(0).(store.StoreChannel) 223 } 224 } 225 226 return r0 227 } 228 229 // PermanentDeleteIncomingByUser provides a mock function with given fields: userId 230 func (_m *WebhookStore) PermanentDeleteIncomingByUser(userId string) store.StoreChannel { 231 ret := _m.Called(userId) 232 233 var r0 store.StoreChannel 234 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 235 r0 = rf(userId) 236 } else { 237 if ret.Get(0) != nil { 238 r0 = ret.Get(0).(store.StoreChannel) 239 } 240 } 241 242 return r0 243 } 244 245 // PermanentDeleteOutgoingByChannel provides a mock function with given fields: channelId 246 func (_m *WebhookStore) PermanentDeleteOutgoingByChannel(channelId string) store.StoreChannel { 247 ret := _m.Called(channelId) 248 249 var r0 store.StoreChannel 250 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 251 r0 = rf(channelId) 252 } else { 253 if ret.Get(0) != nil { 254 r0 = ret.Get(0).(store.StoreChannel) 255 } 256 } 257 258 return r0 259 } 260 261 // PermanentDeleteOutgoingByUser provides a mock function with given fields: userId 262 func (_m *WebhookStore) PermanentDeleteOutgoingByUser(userId string) store.StoreChannel { 263 ret := _m.Called(userId) 264 265 var r0 store.StoreChannel 266 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 267 r0 = rf(userId) 268 } else { 269 if ret.Get(0) != nil { 270 r0 = ret.Get(0).(store.StoreChannel) 271 } 272 } 273 274 return r0 275 } 276 277 // SaveIncoming provides a mock function with given fields: webhook 278 func (_m *WebhookStore) SaveIncoming(webhook *model.IncomingWebhook) store.StoreChannel { 279 ret := _m.Called(webhook) 280 281 var r0 store.StoreChannel 282 if rf, ok := ret.Get(0).(func(*model.IncomingWebhook) store.StoreChannel); ok { 283 r0 = rf(webhook) 284 } else { 285 if ret.Get(0) != nil { 286 r0 = ret.Get(0).(store.StoreChannel) 287 } 288 } 289 290 return r0 291 } 292 293 // SaveOutgoing provides a mock function with given fields: webhook 294 func (_m *WebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) store.StoreChannel { 295 ret := _m.Called(webhook) 296 297 var r0 store.StoreChannel 298 if rf, ok := ret.Get(0).(func(*model.OutgoingWebhook) store.StoreChannel); ok { 299 r0 = rf(webhook) 300 } else { 301 if ret.Get(0) != nil { 302 r0 = ret.Get(0).(store.StoreChannel) 303 } 304 } 305 306 return r0 307 } 308 309 // UpdateIncoming provides a mock function with given fields: webhook 310 func (_m *WebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) store.StoreChannel { 311 ret := _m.Called(webhook) 312 313 var r0 store.StoreChannel 314 if rf, ok := ret.Get(0).(func(*model.IncomingWebhook) store.StoreChannel); ok { 315 r0 = rf(webhook) 316 } else { 317 if ret.Get(0) != nil { 318 r0 = ret.Get(0).(store.StoreChannel) 319 } 320 } 321 322 return r0 323 } 324 325 // UpdateOutgoing provides a mock function with given fields: hook 326 func (_m *WebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) store.StoreChannel { 327 ret := _m.Called(hook) 328 329 var r0 store.StoreChannel 330 if rf, ok := ret.Get(0).(func(*model.OutgoingWebhook) store.StoreChannel); ok { 331 r0 = rf(hook) 332 } else { 333 if ret.Get(0) != nil { 334 r0 = ret.Get(0).(store.StoreChannel) 335 } 336 } 337 338 return r0 339 }