github.com/mad-app/mattermost-server@v5.11.1+incompatible/store/storetest/mocks/Store.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 store "github.com/mattermost/mattermost-server/store" 9 10 // Store is an autogenerated mock type for the Store type 11 type Store struct { 12 mock.Mock 13 } 14 15 // Audit provides a mock function with given fields: 16 func (_m *Store) Audit() store.AuditStore { 17 ret := _m.Called() 18 19 var r0 store.AuditStore 20 if rf, ok := ret.Get(0).(func() store.AuditStore); ok { 21 r0 = rf() 22 } else { 23 if ret.Get(0) != nil { 24 r0 = ret.Get(0).(store.AuditStore) 25 } 26 } 27 28 return r0 29 } 30 31 // Bot provides a mock function with given fields: 32 func (_m *Store) Bot() store.BotStore { 33 ret := _m.Called() 34 35 var r0 store.BotStore 36 if rf, ok := ret.Get(0).(func() store.BotStore); ok { 37 r0 = rf() 38 } else { 39 if ret.Get(0) != nil { 40 r0 = ret.Get(0).(store.BotStore) 41 } 42 } 43 44 return r0 45 } 46 47 // Channel provides a mock function with given fields: 48 func (_m *Store) Channel() store.ChannelStore { 49 ret := _m.Called() 50 51 var r0 store.ChannelStore 52 if rf, ok := ret.Get(0).(func() store.ChannelStore); ok { 53 r0 = rf() 54 } else { 55 if ret.Get(0) != nil { 56 r0 = ret.Get(0).(store.ChannelStore) 57 } 58 } 59 60 return r0 61 } 62 63 // ChannelMemberHistory provides a mock function with given fields: 64 func (_m *Store) ChannelMemberHistory() store.ChannelMemberHistoryStore { 65 ret := _m.Called() 66 67 var r0 store.ChannelMemberHistoryStore 68 if rf, ok := ret.Get(0).(func() store.ChannelMemberHistoryStore); ok { 69 r0 = rf() 70 } else { 71 if ret.Get(0) != nil { 72 r0 = ret.Get(0).(store.ChannelMemberHistoryStore) 73 } 74 } 75 76 return r0 77 } 78 79 // Close provides a mock function with given fields: 80 func (_m *Store) Close() { 81 _m.Called() 82 } 83 84 // ClusterDiscovery provides a mock function with given fields: 85 func (_m *Store) ClusterDiscovery() store.ClusterDiscoveryStore { 86 ret := _m.Called() 87 88 var r0 store.ClusterDiscoveryStore 89 if rf, ok := ret.Get(0).(func() store.ClusterDiscoveryStore); ok { 90 r0 = rf() 91 } else { 92 if ret.Get(0) != nil { 93 r0 = ret.Get(0).(store.ClusterDiscoveryStore) 94 } 95 } 96 97 return r0 98 } 99 100 // Command provides a mock function with given fields: 101 func (_m *Store) Command() store.CommandStore { 102 ret := _m.Called() 103 104 var r0 store.CommandStore 105 if rf, ok := ret.Get(0).(func() store.CommandStore); ok { 106 r0 = rf() 107 } else { 108 if ret.Get(0) != nil { 109 r0 = ret.Get(0).(store.CommandStore) 110 } 111 } 112 113 return r0 114 } 115 116 // CommandWebhook provides a mock function with given fields: 117 func (_m *Store) CommandWebhook() store.CommandWebhookStore { 118 ret := _m.Called() 119 120 var r0 store.CommandWebhookStore 121 if rf, ok := ret.Get(0).(func() store.CommandWebhookStore); ok { 122 r0 = rf() 123 } else { 124 if ret.Get(0) != nil { 125 r0 = ret.Get(0).(store.CommandWebhookStore) 126 } 127 } 128 129 return r0 130 } 131 132 // Compliance provides a mock function with given fields: 133 func (_m *Store) Compliance() store.ComplianceStore { 134 ret := _m.Called() 135 136 var r0 store.ComplianceStore 137 if rf, ok := ret.Get(0).(func() store.ComplianceStore); ok { 138 r0 = rf() 139 } else { 140 if ret.Get(0) != nil { 141 r0 = ret.Get(0).(store.ComplianceStore) 142 } 143 } 144 145 return r0 146 } 147 148 // DropAllTables provides a mock function with given fields: 149 func (_m *Store) DropAllTables() { 150 _m.Called() 151 } 152 153 // Emoji provides a mock function with given fields: 154 func (_m *Store) Emoji() store.EmojiStore { 155 ret := _m.Called() 156 157 var r0 store.EmojiStore 158 if rf, ok := ret.Get(0).(func() store.EmojiStore); ok { 159 r0 = rf() 160 } else { 161 if ret.Get(0) != nil { 162 r0 = ret.Get(0).(store.EmojiStore) 163 } 164 } 165 166 return r0 167 } 168 169 // FileInfo provides a mock function with given fields: 170 func (_m *Store) FileInfo() store.FileInfoStore { 171 ret := _m.Called() 172 173 var r0 store.FileInfoStore 174 if rf, ok := ret.Get(0).(func() store.FileInfoStore); ok { 175 r0 = rf() 176 } else { 177 if ret.Get(0) != nil { 178 r0 = ret.Get(0).(store.FileInfoStore) 179 } 180 } 181 182 return r0 183 } 184 185 // Group provides a mock function with given fields: 186 func (_m *Store) Group() store.GroupStore { 187 ret := _m.Called() 188 189 var r0 store.GroupStore 190 if rf, ok := ret.Get(0).(func() store.GroupStore); ok { 191 r0 = rf() 192 } else { 193 if ret.Get(0) != nil { 194 r0 = ret.Get(0).(store.GroupStore) 195 } 196 } 197 198 return r0 199 } 200 201 // Job provides a mock function with given fields: 202 func (_m *Store) Job() store.JobStore { 203 ret := _m.Called() 204 205 var r0 store.JobStore 206 if rf, ok := ret.Get(0).(func() store.JobStore); ok { 207 r0 = rf() 208 } else { 209 if ret.Get(0) != nil { 210 r0 = ret.Get(0).(store.JobStore) 211 } 212 } 213 214 return r0 215 } 216 217 // License provides a mock function with given fields: 218 func (_m *Store) License() store.LicenseStore { 219 ret := _m.Called() 220 221 var r0 store.LicenseStore 222 if rf, ok := ret.Get(0).(func() store.LicenseStore); ok { 223 r0 = rf() 224 } else { 225 if ret.Get(0) != nil { 226 r0 = ret.Get(0).(store.LicenseStore) 227 } 228 } 229 230 return r0 231 } 232 233 // LinkMetadata provides a mock function with given fields: 234 func (_m *Store) LinkMetadata() store.LinkMetadataStore { 235 ret := _m.Called() 236 237 var r0 store.LinkMetadataStore 238 if rf, ok := ret.Get(0).(func() store.LinkMetadataStore); ok { 239 r0 = rf() 240 } else { 241 if ret.Get(0) != nil { 242 r0 = ret.Get(0).(store.LinkMetadataStore) 243 } 244 } 245 246 return r0 247 } 248 249 // LockToMaster provides a mock function with given fields: 250 func (_m *Store) LockToMaster() { 251 _m.Called() 252 } 253 254 // MarkSystemRanUnitTests provides a mock function with given fields: 255 func (_m *Store) MarkSystemRanUnitTests() { 256 _m.Called() 257 } 258 259 // OAuth provides a mock function with given fields: 260 func (_m *Store) OAuth() store.OAuthStore { 261 ret := _m.Called() 262 263 var r0 store.OAuthStore 264 if rf, ok := ret.Get(0).(func() store.OAuthStore); ok { 265 r0 = rf() 266 } else { 267 if ret.Get(0) != nil { 268 r0 = ret.Get(0).(store.OAuthStore) 269 } 270 } 271 272 return r0 273 } 274 275 // Plugin provides a mock function with given fields: 276 func (_m *Store) Plugin() store.PluginStore { 277 ret := _m.Called() 278 279 var r0 store.PluginStore 280 if rf, ok := ret.Get(0).(func() store.PluginStore); ok { 281 r0 = rf() 282 } else { 283 if ret.Get(0) != nil { 284 r0 = ret.Get(0).(store.PluginStore) 285 } 286 } 287 288 return r0 289 } 290 291 // Post provides a mock function with given fields: 292 func (_m *Store) Post() store.PostStore { 293 ret := _m.Called() 294 295 var r0 store.PostStore 296 if rf, ok := ret.Get(0).(func() store.PostStore); ok { 297 r0 = rf() 298 } else { 299 if ret.Get(0) != nil { 300 r0 = ret.Get(0).(store.PostStore) 301 } 302 } 303 304 return r0 305 } 306 307 // Preference provides a mock function with given fields: 308 func (_m *Store) Preference() store.PreferenceStore { 309 ret := _m.Called() 310 311 var r0 store.PreferenceStore 312 if rf, ok := ret.Get(0).(func() store.PreferenceStore); ok { 313 r0 = rf() 314 } else { 315 if ret.Get(0) != nil { 316 r0 = ret.Get(0).(store.PreferenceStore) 317 } 318 } 319 320 return r0 321 } 322 323 // Reaction provides a mock function with given fields: 324 func (_m *Store) Reaction() store.ReactionStore { 325 ret := _m.Called() 326 327 var r0 store.ReactionStore 328 if rf, ok := ret.Get(0).(func() store.ReactionStore); ok { 329 r0 = rf() 330 } else { 331 if ret.Get(0) != nil { 332 r0 = ret.Get(0).(store.ReactionStore) 333 } 334 } 335 336 return r0 337 } 338 339 // Role provides a mock function with given fields: 340 func (_m *Store) Role() store.RoleStore { 341 ret := _m.Called() 342 343 var r0 store.RoleStore 344 if rf, ok := ret.Get(0).(func() store.RoleStore); ok { 345 r0 = rf() 346 } else { 347 if ret.Get(0) != nil { 348 r0 = ret.Get(0).(store.RoleStore) 349 } 350 } 351 352 return r0 353 } 354 355 // Scheme provides a mock function with given fields: 356 func (_m *Store) Scheme() store.SchemeStore { 357 ret := _m.Called() 358 359 var r0 store.SchemeStore 360 if rf, ok := ret.Get(0).(func() store.SchemeStore); ok { 361 r0 = rf() 362 } else { 363 if ret.Get(0) != nil { 364 r0 = ret.Get(0).(store.SchemeStore) 365 } 366 } 367 368 return r0 369 } 370 371 // Session provides a mock function with given fields: 372 func (_m *Store) Session() store.SessionStore { 373 ret := _m.Called() 374 375 var r0 store.SessionStore 376 if rf, ok := ret.Get(0).(func() store.SessionStore); ok { 377 r0 = rf() 378 } else { 379 if ret.Get(0) != nil { 380 r0 = ret.Get(0).(store.SessionStore) 381 } 382 } 383 384 return r0 385 } 386 387 // Status provides a mock function with given fields: 388 func (_m *Store) Status() store.StatusStore { 389 ret := _m.Called() 390 391 var r0 store.StatusStore 392 if rf, ok := ret.Get(0).(func() store.StatusStore); ok { 393 r0 = rf() 394 } else { 395 if ret.Get(0) != nil { 396 r0 = ret.Get(0).(store.StatusStore) 397 } 398 } 399 400 return r0 401 } 402 403 // System provides a mock function with given fields: 404 func (_m *Store) System() store.SystemStore { 405 ret := _m.Called() 406 407 var r0 store.SystemStore 408 if rf, ok := ret.Get(0).(func() store.SystemStore); ok { 409 r0 = rf() 410 } else { 411 if ret.Get(0) != nil { 412 r0 = ret.Get(0).(store.SystemStore) 413 } 414 } 415 416 return r0 417 } 418 419 // Team provides a mock function with given fields: 420 func (_m *Store) Team() store.TeamStore { 421 ret := _m.Called() 422 423 var r0 store.TeamStore 424 if rf, ok := ret.Get(0).(func() store.TeamStore); ok { 425 r0 = rf() 426 } else { 427 if ret.Get(0) != nil { 428 r0 = ret.Get(0).(store.TeamStore) 429 } 430 } 431 432 return r0 433 } 434 435 // TermsOfService provides a mock function with given fields: 436 func (_m *Store) TermsOfService() store.TermsOfServiceStore { 437 ret := _m.Called() 438 439 var r0 store.TermsOfServiceStore 440 if rf, ok := ret.Get(0).(func() store.TermsOfServiceStore); ok { 441 r0 = rf() 442 } else { 443 if ret.Get(0) != nil { 444 r0 = ret.Get(0).(store.TermsOfServiceStore) 445 } 446 } 447 448 return r0 449 } 450 451 // Token provides a mock function with given fields: 452 func (_m *Store) Token() store.TokenStore { 453 ret := _m.Called() 454 455 var r0 store.TokenStore 456 if rf, ok := ret.Get(0).(func() store.TokenStore); ok { 457 r0 = rf() 458 } else { 459 if ret.Get(0) != nil { 460 r0 = ret.Get(0).(store.TokenStore) 461 } 462 } 463 464 return r0 465 } 466 467 // TotalMasterDbConnections provides a mock function with given fields: 468 func (_m *Store) TotalMasterDbConnections() int { 469 ret := _m.Called() 470 471 var r0 int 472 if rf, ok := ret.Get(0).(func() int); ok { 473 r0 = rf() 474 } else { 475 r0 = ret.Get(0).(int) 476 } 477 478 return r0 479 } 480 481 // TotalReadDbConnections provides a mock function with given fields: 482 func (_m *Store) TotalReadDbConnections() int { 483 ret := _m.Called() 484 485 var r0 int 486 if rf, ok := ret.Get(0).(func() int); ok { 487 r0 = rf() 488 } else { 489 r0 = ret.Get(0).(int) 490 } 491 492 return r0 493 } 494 495 // TotalSearchDbConnections provides a mock function with given fields: 496 func (_m *Store) TotalSearchDbConnections() int { 497 ret := _m.Called() 498 499 var r0 int 500 if rf, ok := ret.Get(0).(func() int); ok { 501 r0 = rf() 502 } else { 503 r0 = ret.Get(0).(int) 504 } 505 506 return r0 507 } 508 509 // UnlockFromMaster provides a mock function with given fields: 510 func (_m *Store) UnlockFromMaster() { 511 _m.Called() 512 } 513 514 // User provides a mock function with given fields: 515 func (_m *Store) User() store.UserStore { 516 ret := _m.Called() 517 518 var r0 store.UserStore 519 if rf, ok := ret.Get(0).(func() store.UserStore); ok { 520 r0 = rf() 521 } else { 522 if ret.Get(0) != nil { 523 r0 = ret.Get(0).(store.UserStore) 524 } 525 } 526 527 return r0 528 } 529 530 // UserAccessToken provides a mock function with given fields: 531 func (_m *Store) UserAccessToken() store.UserAccessTokenStore { 532 ret := _m.Called() 533 534 var r0 store.UserAccessTokenStore 535 if rf, ok := ret.Get(0).(func() store.UserAccessTokenStore); ok { 536 r0 = rf() 537 } else { 538 if ret.Get(0) != nil { 539 r0 = ret.Get(0).(store.UserAccessTokenStore) 540 } 541 } 542 543 return r0 544 } 545 546 // UserTermsOfService provides a mock function with given fields: 547 func (_m *Store) UserTermsOfService() store.UserTermsOfServiceStore { 548 ret := _m.Called() 549 550 var r0 store.UserTermsOfServiceStore 551 if rf, ok := ret.Get(0).(func() store.UserTermsOfServiceStore); ok { 552 r0 = rf() 553 } else { 554 if ret.Get(0) != nil { 555 r0 = ret.Get(0).(store.UserTermsOfServiceStore) 556 } 557 } 558 559 return r0 560 } 561 562 // Webhook provides a mock function with given fields: 563 func (_m *Store) Webhook() store.WebhookStore { 564 ret := _m.Called() 565 566 var r0 store.WebhookStore 567 if rf, ok := ret.Get(0).(func() store.WebhookStore); ok { 568 r0 = rf() 569 } else { 570 if ret.Get(0) != nil { 571 r0 = ret.Get(0).(store.WebhookStore) 572 } 573 } 574 575 return r0 576 }