Revert "MM-57759: Bump mockery to version 2.42.2 to support go 1.22^" (#26772)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c76a58b4b8
Коммит
cd3b5b46e1
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make email-mocks`.
|
||||
|
||||
@@ -29,10 +29,6 @@ type ServiceInterface struct {
|
||||
func (_m *ServiceInterface) AddNotificationEmailToBatch(user *model.User, post *model.Post, team *model.Team) *model.AppError {
|
||||
ret := _m.Called(user, post, team)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AddNotificationEmailToBatch")
|
||||
}
|
||||
|
||||
var r0 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(*model.User, *model.Post, *model.Team) *model.AppError); ok {
|
||||
r0 = rf(user, post, team)
|
||||
@@ -49,10 +45,6 @@ func (_m *ServiceInterface) AddNotificationEmailToBatch(user *model.User, post *
|
||||
func (_m *ServiceInterface) CreateVerifyEmailToken(userID string, newEmail string) (*model.Token, error) {
|
||||
ret := _m.Called(userID, newEmail)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CreateVerifyEmailToken")
|
||||
}
|
||||
|
||||
var r0 *model.Token
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.Token, error)); ok {
|
||||
@@ -79,10 +71,6 @@ func (_m *ServiceInterface) CreateVerifyEmailToken(userID string, newEmail strin
|
||||
func (_m *ServiceInterface) GenerateHyperlinkForChannels(postMessage string, teamName string, teamURL string) (string, error) {
|
||||
ret := _m.Called(postMessage, teamName, teamURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GenerateHyperlinkForChannels")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) (string, error)); ok {
|
||||
@@ -107,10 +95,6 @@ func (_m *ServiceInterface) GenerateHyperlinkForChannels(postMessage string, tea
|
||||
func (_m *ServiceInterface) GetMessageForNotification(post *model.Post, teamName string, siteUrl string, translateFunc i18n.TranslateFunc) string {
|
||||
ret := _m.Called(post, teamName, siteUrl, translateFunc)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMessageForNotification")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
if rf, ok := ret.Get(0).(func(*model.Post, string, string, i18n.TranslateFunc) string); ok {
|
||||
r0 = rf(post, teamName, siteUrl, translateFunc)
|
||||
@@ -125,10 +109,6 @@ func (_m *ServiceInterface) GetMessageForNotification(post *model.Post, teamName
|
||||
func (_m *ServiceInterface) GetPerDayEmailRateLimiter() *throttled.GCRARateLimiter {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPerDayEmailRateLimiter")
|
||||
}
|
||||
|
||||
var r0 *throttled.GCRARateLimiter
|
||||
if rf, ok := ret.Get(0).(func() *throttled.GCRARateLimiter); ok {
|
||||
r0 = rf()
|
||||
@@ -150,10 +130,6 @@ func (_m *ServiceInterface) InitEmailBatching() {
|
||||
func (_m *ServiceInterface) NewEmailTemplateData(locale string) templates.Data {
|
||||
ret := _m.Called(locale)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for NewEmailTemplateData")
|
||||
}
|
||||
|
||||
var r0 templates.Data
|
||||
if rf, ok := ret.Get(0).(func(string) templates.Data); ok {
|
||||
r0 = rf(locale)
|
||||
@@ -168,10 +144,6 @@ func (_m *ServiceInterface) NewEmailTemplateData(locale string) templates.Data {
|
||||
func (_m *ServiceInterface) SendChangeUsernameEmail(newUsername string, _a1 string, locale string, siteURL string) error {
|
||||
ret := _m.Called(newUsername, _a1, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendChangeUsernameEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string) error); ok {
|
||||
r0 = rf(newUsername, _a1, locale, siteURL)
|
||||
@@ -186,10 +158,6 @@ func (_m *ServiceInterface) SendChangeUsernameEmail(newUsername string, _a1 stri
|
||||
func (_m *ServiceInterface) SendCloudRenewalEmail30(_a0 string, locale string, siteURL string) error {
|
||||
ret := _m.Called(_a0, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendCloudRenewalEmail30")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
|
||||
r0 = rf(_a0, locale, siteURL)
|
||||
@@ -204,10 +172,6 @@ func (_m *ServiceInterface) SendCloudRenewalEmail30(_a0 string, locale string, s
|
||||
func (_m *ServiceInterface) SendCloudRenewalEmail60(_a0 string, locale string, siteURL string) error {
|
||||
ret := _m.Called(_a0, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendCloudRenewalEmail60")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
|
||||
r0 = rf(_a0, locale, siteURL)
|
||||
@@ -222,10 +186,6 @@ func (_m *ServiceInterface) SendCloudRenewalEmail60(_a0 string, locale string, s
|
||||
func (_m *ServiceInterface) SendCloudRenewalEmail7(_a0 string, locale string, siteURL string) error {
|
||||
ret := _m.Called(_a0, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendCloudRenewalEmail7")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
|
||||
r0 = rf(_a0, locale, siteURL)
|
||||
@@ -240,10 +200,6 @@ func (_m *ServiceInterface) SendCloudRenewalEmail7(_a0 string, locale string, si
|
||||
func (_m *ServiceInterface) SendCloudUpgradeConfirmationEmail(userEmail string, name string, trialEndDate string, locale string, siteURL string, workspaceName string, isYearly bool, embeddedFiles map[string]io.Reader) error {
|
||||
ret := _m.Called(userEmail, name, trialEndDate, locale, siteURL, workspaceName, isYearly, embeddedFiles)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendCloudUpgradeConfirmationEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string, string, string, bool, map[string]io.Reader) error); ok {
|
||||
r0 = rf(userEmail, name, trialEndDate, locale, siteURL, workspaceName, isYearly, embeddedFiles)
|
||||
@@ -258,10 +214,6 @@ func (_m *ServiceInterface) SendCloudUpgradeConfirmationEmail(userEmail string,
|
||||
func (_m *ServiceInterface) SendCloudWelcomeEmail(userEmail string, locale string, teamInviteID string, workSpaceName string, dns string, siteURL string) error {
|
||||
ret := _m.Called(userEmail, locale, teamInviteID, workSpaceName, dns, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendCloudWelcomeEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string, string, string) error); ok {
|
||||
r0 = rf(userEmail, locale, teamInviteID, workSpaceName, dns, siteURL)
|
||||
@@ -276,10 +228,6 @@ func (_m *ServiceInterface) SendCloudWelcomeEmail(userEmail string, locale strin
|
||||
func (_m *ServiceInterface) SendDeactivateAccountEmail(_a0 string, locale string, siteURL string) error {
|
||||
ret := _m.Called(_a0, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendDeactivateAccountEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
|
||||
r0 = rf(_a0, locale, siteURL)
|
||||
@@ -294,10 +242,6 @@ func (_m *ServiceInterface) SendDeactivateAccountEmail(_a0 string, locale string
|
||||
func (_m *ServiceInterface) SendDelinquencyEmail14(_a0 string, locale string, siteURL string, planName string) error {
|
||||
ret := _m.Called(_a0, locale, siteURL, planName)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendDelinquencyEmail14")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string) error); ok {
|
||||
r0 = rf(_a0, locale, siteURL, planName)
|
||||
@@ -312,10 +256,6 @@ func (_m *ServiceInterface) SendDelinquencyEmail14(_a0 string, locale string, si
|
||||
func (_m *ServiceInterface) SendDelinquencyEmail30(_a0 string, locale string, siteURL string, planName string) error {
|
||||
ret := _m.Called(_a0, locale, siteURL, planName)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendDelinquencyEmail30")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string) error); ok {
|
||||
r0 = rf(_a0, locale, siteURL, planName)
|
||||
@@ -330,10 +270,6 @@ func (_m *ServiceInterface) SendDelinquencyEmail30(_a0 string, locale string, si
|
||||
func (_m *ServiceInterface) SendDelinquencyEmail45(_a0 string, locale string, siteURL string, planName string, delinquencyDate string) error {
|
||||
ret := _m.Called(_a0, locale, siteURL, planName, delinquencyDate)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendDelinquencyEmail45")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string, string) error); ok {
|
||||
r0 = rf(_a0, locale, siteURL, planName, delinquencyDate)
|
||||
@@ -348,10 +284,6 @@ func (_m *ServiceInterface) SendDelinquencyEmail45(_a0 string, locale string, si
|
||||
func (_m *ServiceInterface) SendDelinquencyEmail60(_a0 string, locale string, siteURL string) error {
|
||||
ret := _m.Called(_a0, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendDelinquencyEmail60")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
|
||||
r0 = rf(_a0, locale, siteURL)
|
||||
@@ -366,10 +298,6 @@ func (_m *ServiceInterface) SendDelinquencyEmail60(_a0 string, locale string, si
|
||||
func (_m *ServiceInterface) SendDelinquencyEmail7(_a0 string, locale string, siteURL string, planName string) error {
|
||||
ret := _m.Called(_a0, locale, siteURL, planName)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendDelinquencyEmail7")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string) error); ok {
|
||||
r0 = rf(_a0, locale, siteURL, planName)
|
||||
@@ -384,10 +312,6 @@ func (_m *ServiceInterface) SendDelinquencyEmail7(_a0 string, locale string, sit
|
||||
func (_m *ServiceInterface) SendDelinquencyEmail75(_a0 string, locale string, siteURL string, planName string, delinquencyDate string) error {
|
||||
ret := _m.Called(_a0, locale, siteURL, planName, delinquencyDate)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendDelinquencyEmail75")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string, string) error); ok {
|
||||
r0 = rf(_a0, locale, siteURL, planName, delinquencyDate)
|
||||
@@ -402,10 +326,6 @@ func (_m *ServiceInterface) SendDelinquencyEmail75(_a0 string, locale string, si
|
||||
func (_m *ServiceInterface) SendDelinquencyEmail90(_a0 string, locale string, siteURL string) error {
|
||||
ret := _m.Called(_a0, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendDelinquencyEmail90")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
|
||||
r0 = rf(_a0, locale, siteURL)
|
||||
@@ -420,10 +340,6 @@ func (_m *ServiceInterface) SendDelinquencyEmail90(_a0 string, locale string, si
|
||||
func (_m *ServiceInterface) SendEmailChangeEmail(oldEmail string, newEmail string, locale string, siteURL string) error {
|
||||
ret := _m.Called(oldEmail, newEmail, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendEmailChangeEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string) error); ok {
|
||||
r0 = rf(oldEmail, newEmail, locale, siteURL)
|
||||
@@ -438,10 +354,6 @@ func (_m *ServiceInterface) SendEmailChangeEmail(oldEmail string, newEmail strin
|
||||
func (_m *ServiceInterface) SendEmailChangeVerifyEmail(newUserEmail string, locale string, siteURL string, token string) error {
|
||||
ret := _m.Called(newUserEmail, locale, siteURL, token)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendEmailChangeVerifyEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string) error); ok {
|
||||
r0 = rf(newUserEmail, locale, siteURL, token)
|
||||
@@ -456,10 +368,6 @@ func (_m *ServiceInterface) SendEmailChangeVerifyEmail(newUserEmail string, loca
|
||||
func (_m *ServiceInterface) SendGuestInviteEmails(team *model.Team, channels []*model.Channel, senderName string, senderUserId string, senderProfileImage []byte, invites []string, siteURL string, message string, errorWhenNotSent bool, isSystemAdmin bool, isFirstAdmin bool) error {
|
||||
ret := _m.Called(team, channels, senderName, senderUserId, senderProfileImage, invites, siteURL, message, errorWhenNotSent, isSystemAdmin, isFirstAdmin)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendGuestInviteEmails")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Team, []*model.Channel, string, string, []byte, []string, string, string, bool, bool, bool) error); ok {
|
||||
r0 = rf(team, channels, senderName, senderUserId, senderProfileImage, invites, siteURL, message, errorWhenNotSent, isSystemAdmin, isFirstAdmin)
|
||||
@@ -474,10 +382,6 @@ func (_m *ServiceInterface) SendGuestInviteEmails(team *model.Team, channels []*
|
||||
func (_m *ServiceInterface) SendIPFiltersChangedEmail(_a0 string, userWhoChangedFilter *model.User, siteURL string, portalURL string, locale string, isWorkspaceOwner bool) error {
|
||||
ret := _m.Called(_a0, userWhoChangedFilter, siteURL, portalURL, locale, isWorkspaceOwner)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendIPFiltersChangedEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, *model.User, string, string, string, bool) error); ok {
|
||||
r0 = rf(_a0, userWhoChangedFilter, siteURL, portalURL, locale, isWorkspaceOwner)
|
||||
@@ -492,10 +396,6 @@ func (_m *ServiceInterface) SendIPFiltersChangedEmail(_a0 string, userWhoChanged
|
||||
func (_m *ServiceInterface) SendInviteEmails(team *model.Team, senderName string, senderUserId string, invites []string, siteURL string, reminderData *model.TeamInviteReminderData, errorWhenNotSent bool, isSystemAdmin bool, isFirstAdmin bool) error {
|
||||
ret := _m.Called(team, senderName, senderUserId, invites, siteURL, reminderData, errorWhenNotSent, isSystemAdmin, isFirstAdmin)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendInviteEmails")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Team, string, string, []string, string, *model.TeamInviteReminderData, bool, bool, bool) error); ok {
|
||||
r0 = rf(team, senderName, senderUserId, invites, siteURL, reminderData, errorWhenNotSent, isSystemAdmin, isFirstAdmin)
|
||||
@@ -510,10 +410,6 @@ func (_m *ServiceInterface) SendInviteEmails(team *model.Team, senderName string
|
||||
func (_m *ServiceInterface) SendInviteEmailsToTeamAndChannels(team *model.Team, channels []*model.Channel, senderName string, senderUserId string, senderProfileImage []byte, invites []string, siteURL string, reminderData *model.TeamInviteReminderData, message string, errorWhenNotSent bool, isSystemAdmin bool, isFirstAdmin bool) ([]*model.EmailInviteWithError, error) {
|
||||
ret := _m.Called(team, channels, senderName, senderUserId, senderProfileImage, invites, siteURL, reminderData, message, errorWhenNotSent, isSystemAdmin, isFirstAdmin)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendInviteEmailsToTeamAndChannels")
|
||||
}
|
||||
|
||||
var r0 []*model.EmailInviteWithError
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Team, []*model.Channel, string, string, []byte, []string, string, *model.TeamInviteReminderData, string, bool, bool, bool) ([]*model.EmailInviteWithError, error)); ok {
|
||||
@@ -540,10 +436,6 @@ func (_m *ServiceInterface) SendInviteEmailsToTeamAndChannels(team *model.Team,
|
||||
func (_m *ServiceInterface) SendLicenseUpForRenewalEmail(_a0 string, name string, locale string, siteURL string, ctaTitle string, ctaLink string, ctaText string, daysToExpiration int) error {
|
||||
ret := _m.Called(_a0, name, locale, siteURL, ctaTitle, ctaLink, ctaText, daysToExpiration)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendLicenseUpForRenewalEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string, string, string, string, int) error); ok {
|
||||
r0 = rf(_a0, name, locale, siteURL, ctaTitle, ctaLink, ctaText, daysToExpiration)
|
||||
@@ -558,10 +450,6 @@ func (_m *ServiceInterface) SendLicenseUpForRenewalEmail(_a0 string, name string
|
||||
func (_m *ServiceInterface) SendMailWithEmbeddedFiles(to string, subject string, htmlBody string, embeddedFiles map[string]io.Reader, messageID string, inReplyTo string, references string, category string) error {
|
||||
ret := _m.Called(to, subject, htmlBody, embeddedFiles, messageID, inReplyTo, references, category)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendMailWithEmbeddedFiles")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, map[string]io.Reader, string, string, string, string) error); ok {
|
||||
r0 = rf(to, subject, htmlBody, embeddedFiles, messageID, inReplyTo, references, category)
|
||||
@@ -576,10 +464,6 @@ func (_m *ServiceInterface) SendMailWithEmbeddedFiles(to string, subject string,
|
||||
func (_m *ServiceInterface) SendMfaChangeEmail(_a0 string, activated bool, locale string, siteURL string) error {
|
||||
ret := _m.Called(_a0, activated, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendMfaChangeEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool, string, string) error); ok {
|
||||
r0 = rf(_a0, activated, locale, siteURL)
|
||||
@@ -594,10 +478,6 @@ func (_m *ServiceInterface) SendMfaChangeEmail(_a0 string, activated bool, local
|
||||
func (_m *ServiceInterface) SendNoCardPaymentFailedEmail(_a0 string, locale string, siteURL string) error {
|
||||
ret := _m.Called(_a0, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendNoCardPaymentFailedEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
|
||||
r0 = rf(_a0, locale, siteURL)
|
||||
@@ -612,10 +492,6 @@ func (_m *ServiceInterface) SendNoCardPaymentFailedEmail(_a0 string, locale stri
|
||||
func (_m *ServiceInterface) SendNotificationMail(to string, subject string, htmlBody string) error {
|
||||
ret := _m.Called(to, subject, htmlBody)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendNotificationMail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
|
||||
r0 = rf(to, subject, htmlBody)
|
||||
@@ -630,10 +506,6 @@ func (_m *ServiceInterface) SendNotificationMail(to string, subject string, html
|
||||
func (_m *ServiceInterface) SendPasswordChangeEmail(_a0 string, method string, locale string, siteURL string) error {
|
||||
ret := _m.Called(_a0, method, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendPasswordChangeEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string) error); ok {
|
||||
r0 = rf(_a0, method, locale, siteURL)
|
||||
@@ -648,10 +520,6 @@ func (_m *ServiceInterface) SendPasswordChangeEmail(_a0 string, method string, l
|
||||
func (_m *ServiceInterface) SendPasswordResetEmail(_a0 string, token *model.Token, locale string, siteURL string) (bool, error) {
|
||||
ret := _m.Called(_a0, token, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendPasswordResetEmail")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, *model.Token, string, string) (bool, error)); ok {
|
||||
@@ -676,10 +544,6 @@ func (_m *ServiceInterface) SendPasswordResetEmail(_a0 string, token *model.Toke
|
||||
func (_m *ServiceInterface) SendPaymentFailedEmail(_a0 string, locale string, failedPayment *model.FailedPayment, planName string, siteURL string) (bool, error) {
|
||||
ret := _m.Called(_a0, locale, failedPayment, planName, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendPaymentFailedEmail")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, *model.FailedPayment, string, string) (bool, error)); ok {
|
||||
@@ -704,10 +568,6 @@ func (_m *ServiceInterface) SendPaymentFailedEmail(_a0 string, locale string, fa
|
||||
func (_m *ServiceInterface) SendRemoveExpiredLicenseEmail(ctaText string, ctaLink string, _a2 string, locale string, siteURL string) error {
|
||||
ret := _m.Called(ctaText, ctaLink, _a2, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendRemoveExpiredLicenseEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string, string) error); ok {
|
||||
r0 = rf(ctaText, ctaLink, _a2, locale, siteURL)
|
||||
@@ -722,10 +582,6 @@ func (_m *ServiceInterface) SendRemoveExpiredLicenseEmail(ctaText string, ctaLin
|
||||
func (_m *ServiceInterface) SendSignInChangeEmail(_a0 string, method string, locale string, siteURL string) error {
|
||||
ret := _m.Called(_a0, method, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendSignInChangeEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string) error); ok {
|
||||
r0 = rf(_a0, method, locale, siteURL)
|
||||
@@ -740,10 +596,6 @@ func (_m *ServiceInterface) SendSignInChangeEmail(_a0 string, method string, loc
|
||||
func (_m *ServiceInterface) SendUserAccessTokenAddedEmail(_a0 string, locale string, siteURL string) error {
|
||||
ret := _m.Called(_a0, locale, siteURL)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendUserAccessTokenAddedEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
|
||||
r0 = rf(_a0, locale, siteURL)
|
||||
@@ -758,10 +610,6 @@ func (_m *ServiceInterface) SendUserAccessTokenAddedEmail(_a0 string, locale str
|
||||
func (_m *ServiceInterface) SendVerifyEmail(userEmail string, locale string, siteURL string, token string, redirect string) error {
|
||||
ret := _m.Called(userEmail, locale, siteURL, token, redirect)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendVerifyEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string, string) error); ok {
|
||||
r0 = rf(userEmail, locale, siteURL, token, redirect)
|
||||
@@ -776,10 +624,6 @@ func (_m *ServiceInterface) SendVerifyEmail(userEmail string, locale string, sit
|
||||
func (_m *ServiceInterface) SendWelcomeEmail(userID string, _a1 string, verified bool, disableWelcomeEmail bool, locale string, siteURL string, redirect string) error {
|
||||
ret := _m.Called(userID, _a1, verified, disableWelcomeEmail, locale, siteURL, redirect)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SendWelcomeEmail")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, bool, bool, string, string, string) error); ok {
|
||||
r0 = rf(userID, _a1, verified, disableWelcomeEmail, locale, siteURL, redirect)
|
||||
@@ -800,12 +644,13 @@ func (_m *ServiceInterface) Stop() {
|
||||
_m.Called()
|
||||
}
|
||||
|
||||
// NewServiceInterface creates a new instance of ServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewServiceInterface(t interface {
|
||||
type mockConstructorTestingTNewServiceInterface interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *ServiceInterface {
|
||||
}
|
||||
|
||||
// NewServiceInterface creates a new instance of ServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewServiceInterface(t mockConstructorTestingTNewServiceInterface) *ServiceInterface {
|
||||
mock := &ServiceInterface{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.32.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make platform-mocks`.
|
||||
|
||||
@@ -20,10 +20,6 @@ type SuiteIFace struct {
|
||||
func (_m *SuiteIFace) GetSession(token string) (*model.Session, *model.AppError) {
|
||||
ret := _m.Called(token)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetSession")
|
||||
}
|
||||
|
||||
var r0 *model.Session
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Session, *model.AppError)); ok {
|
||||
@@ -52,10 +48,6 @@ func (_m *SuiteIFace) GetSession(token string) (*model.Session, *model.AppError)
|
||||
func (_m *SuiteIFace) RolesGrantPermission(roleNames []string, permissionId string) bool {
|
||||
ret := _m.Called(roleNames, permissionId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RolesGrantPermission")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
if rf, ok := ret.Get(0).(func([]string, string) bool); ok {
|
||||
r0 = rf(roleNames, permissionId)
|
||||
@@ -70,10 +62,6 @@ func (_m *SuiteIFace) RolesGrantPermission(roleNames []string, permissionId stri
|
||||
func (_m *SuiteIFace) UserCanSeeOtherUser(c request.CTX, userID string, otherUserId string) (bool, *model.AppError) {
|
||||
ret := _m.Called(c, userID, otherUserId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UserCanSeeOtherUser")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, string) (bool, *model.AppError)); ok {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type AuditStore struct {
|
||||
func (_m *AuditStore) Get(user_id string, offset int, limit int) (model.Audits, error) {
|
||||
ret := _m.Called(user_id, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 model.Audits
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) (model.Audits, error)); ok {
|
||||
@@ -48,10 +44,6 @@ func (_m *AuditStore) Get(user_id string, offset int, limit int) (model.Audits,
|
||||
func (_m *AuditStore) PermanentDeleteByUser(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteByUser")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userID)
|
||||
@@ -66,10 +58,6 @@ func (_m *AuditStore) PermanentDeleteByUser(userID string) error {
|
||||
func (_m *AuditStore) Save(audit *model.Audit) error {
|
||||
ret := _m.Called(audit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Audit) error); ok {
|
||||
r0 = rf(audit)
|
||||
@@ -80,12 +68,13 @@ func (_m *AuditStore) Save(audit *model.Audit) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewAuditStore creates a new instance of AuditStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewAuditStore(t interface {
|
||||
type mockConstructorTestingTNewAuditStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *AuditStore {
|
||||
}
|
||||
|
||||
// NewAuditStore creates a new instance of AuditStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewAuditStore(t mockConstructorTestingTNewAuditStore) *AuditStore {
|
||||
mock := &AuditStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type BotStore struct {
|
||||
func (_m *BotStore) Get(userID string, includeDeleted bool) (*model.Bot, error) {
|
||||
ret := _m.Called(userID, includeDeleted)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.Bot
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) (*model.Bot, error)); ok {
|
||||
@@ -48,10 +44,6 @@ func (_m *BotStore) Get(userID string, includeDeleted bool) (*model.Bot, error)
|
||||
func (_m *BotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, error) {
|
||||
ret := _m.Called(options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAll")
|
||||
}
|
||||
|
||||
var r0 []*model.Bot
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.BotGetOptions) ([]*model.Bot, error)); ok {
|
||||
@@ -78,10 +70,6 @@ func (_m *BotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, error) {
|
||||
func (_m *BotStore) PermanentDelete(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDelete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userID)
|
||||
@@ -96,10 +84,6 @@ func (_m *BotStore) PermanentDelete(userID string) error {
|
||||
func (_m *BotStore) Save(bot *model.Bot) (*model.Bot, error) {
|
||||
ret := _m.Called(bot)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.Bot
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Bot) (*model.Bot, error)); ok {
|
||||
@@ -126,10 +110,6 @@ func (_m *BotStore) Save(bot *model.Bot) (*model.Bot, error) {
|
||||
func (_m *BotStore) Update(bot *model.Bot) (*model.Bot, error) {
|
||||
ret := _m.Called(bot)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
}
|
||||
|
||||
var r0 *model.Bot
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Bot) (*model.Bot, error)); ok {
|
||||
@@ -152,12 +132,13 @@ func (_m *BotStore) Update(bot *model.Bot) (*model.Bot, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewBotStore creates a new instance of BotStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewBotStore(t interface {
|
||||
type mockConstructorTestingTNewBotStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *BotStore {
|
||||
}
|
||||
|
||||
// NewBotStore creates a new instance of BotStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewBotStore(t mockConstructorTestingTNewBotStore) *BotStore {
|
||||
mock := &BotStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type ChannelBookmarkStore struct {
|
||||
func (_m *ChannelBookmarkStore) Delete(bookmarkId string, deleteFile bool) error {
|
||||
ret := _m.Called(bookmarkId, deleteFile)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) error); ok {
|
||||
r0 = rf(bookmarkId, deleteFile)
|
||||
@@ -36,10 +32,6 @@ func (_m *ChannelBookmarkStore) Delete(bookmarkId string, deleteFile bool) error
|
||||
func (_m *ChannelBookmarkStore) ErrorIfBookmarkFileInfoAlreadyAttached(fileId string) error {
|
||||
ret := _m.Called(fileId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ErrorIfBookmarkFileInfoAlreadyAttached")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(fileId)
|
||||
@@ -54,10 +46,6 @@ func (_m *ChannelBookmarkStore) ErrorIfBookmarkFileInfoAlreadyAttached(fileId st
|
||||
func (_m *ChannelBookmarkStore) Get(Id string, includeDeleted bool) (*model.ChannelBookmarkWithFileInfo, error) {
|
||||
ret := _m.Called(Id, includeDeleted)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.ChannelBookmarkWithFileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) (*model.ChannelBookmarkWithFileInfo, error)); ok {
|
||||
@@ -84,10 +72,6 @@ func (_m *ChannelBookmarkStore) Get(Id string, includeDeleted bool) (*model.Chan
|
||||
func (_m *ChannelBookmarkStore) GetBookmarksForChannelSince(channelId string, since int64) ([]*model.ChannelBookmarkWithFileInfo, error) {
|
||||
ret := _m.Called(channelId, since)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetBookmarksForChannelSince")
|
||||
}
|
||||
|
||||
var r0 []*model.ChannelBookmarkWithFileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) ([]*model.ChannelBookmarkWithFileInfo, error)); ok {
|
||||
@@ -114,10 +98,6 @@ func (_m *ChannelBookmarkStore) GetBookmarksForChannelSince(channelId string, si
|
||||
func (_m *ChannelBookmarkStore) Save(bookmark *model.ChannelBookmark, increaseSortOrder bool) (*model.ChannelBookmarkWithFileInfo, error) {
|
||||
ret := _m.Called(bookmark, increaseSortOrder)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.ChannelBookmarkWithFileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.ChannelBookmark, bool) (*model.ChannelBookmarkWithFileInfo, error)); ok {
|
||||
@@ -144,10 +124,6 @@ func (_m *ChannelBookmarkStore) Save(bookmark *model.ChannelBookmark, increaseSo
|
||||
func (_m *ChannelBookmarkStore) Update(bookmark *model.ChannelBookmark) error {
|
||||
ret := _m.Called(bookmark)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.ChannelBookmark) error); ok {
|
||||
r0 = rf(bookmark)
|
||||
@@ -162,10 +138,6 @@ func (_m *ChannelBookmarkStore) Update(bookmark *model.ChannelBookmark) error {
|
||||
func (_m *ChannelBookmarkStore) UpdateSortOrder(bookmarkId string, channelId string, newIndex int64) ([]*model.ChannelBookmarkWithFileInfo, error) {
|
||||
ret := _m.Called(bookmarkId, channelId, newIndex)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateSortOrder")
|
||||
}
|
||||
|
||||
var r0 []*model.ChannelBookmarkWithFileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, int64) ([]*model.ChannelBookmarkWithFileInfo, error)); ok {
|
||||
@@ -188,12 +160,13 @@ func (_m *ChannelBookmarkStore) UpdateSortOrder(bookmarkId string, channelId str
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewChannelBookmarkStore creates a new instance of ChannelBookmarkStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewChannelBookmarkStore(t interface {
|
||||
type mockConstructorTestingTNewChannelBookmarkStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *ChannelBookmarkStore {
|
||||
}
|
||||
|
||||
// NewChannelBookmarkStore creates a new instance of ChannelBookmarkStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewChannelBookmarkStore(t mockConstructorTestingTNewChannelBookmarkStore) *ChannelBookmarkStore {
|
||||
mock := &ChannelBookmarkStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type ChannelMemberHistoryStore struct {
|
||||
func (_m *ChannelMemberHistoryStore) DeleteOrphanedRows(limit int) (int64, error) {
|
||||
ret := _m.Called(limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteOrphanedRows")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int) (int64, error)); ok {
|
||||
@@ -46,10 +42,6 @@ func (_m *ChannelMemberHistoryStore) DeleteOrphanedRows(limit int) (int64, error
|
||||
func (_m *ChannelMemberHistoryStore) GetChannelsLeftSince(userID string, since int64) ([]string, error) {
|
||||
ret := _m.Called(userID, since)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetChannelsLeftSince")
|
||||
}
|
||||
|
||||
var r0 []string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) ([]string, error)); ok {
|
||||
@@ -76,10 +68,6 @@ func (_m *ChannelMemberHistoryStore) GetChannelsLeftSince(userID string, since i
|
||||
func (_m *ChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelID string) ([]*model.ChannelMemberHistoryResult, error) {
|
||||
ret := _m.Called(startTime, endTime, channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUsersInChannelDuring")
|
||||
}
|
||||
|
||||
var r0 []*model.ChannelMemberHistoryResult
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64, int64, string) ([]*model.ChannelMemberHistoryResult, error)); ok {
|
||||
@@ -106,10 +94,6 @@ func (_m *ChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, en
|
||||
func (_m *ChannelMemberHistoryStore) LogJoinEvent(userID string, channelID string, joinTime int64) error {
|
||||
ret := _m.Called(userID, channelID, joinTime)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for LogJoinEvent")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, int64) error); ok {
|
||||
r0 = rf(userID, channelID, joinTime)
|
||||
@@ -124,10 +108,6 @@ func (_m *ChannelMemberHistoryStore) LogJoinEvent(userID string, channelID strin
|
||||
func (_m *ChannelMemberHistoryStore) LogLeaveEvent(userID string, channelID string, leaveTime int64) error {
|
||||
ret := _m.Called(userID, channelID, leaveTime)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for LogLeaveEvent")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, int64) error); ok {
|
||||
r0 = rf(userID, channelID, leaveTime)
|
||||
@@ -142,10 +122,6 @@ func (_m *ChannelMemberHistoryStore) LogLeaveEvent(userID string, channelID stri
|
||||
func (_m *ChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error) {
|
||||
ret := _m.Called(endTime, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteBatch")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64, int64) (int64, error)); ok {
|
||||
@@ -170,10 +146,6 @@ func (_m *ChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit i
|
||||
func (_m *ChannelMemberHistoryStore) PermanentDeleteBatchForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, cursor model.RetentionPolicyCursor) (int64, model.RetentionPolicyCursor, error) {
|
||||
ret := _m.Called(now, globalPolicyEndTime, limit, cursor)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteBatchForRetentionPolicies")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 model.RetentionPolicyCursor
|
||||
var r2 error
|
||||
@@ -201,12 +173,13 @@ func (_m *ChannelMemberHistoryStore) PermanentDeleteBatchForRetentionPolicies(no
|
||||
return r0, r1, r2
|
||||
}
|
||||
|
||||
// NewChannelMemberHistoryStore creates a new instance of ChannelMemberHistoryStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewChannelMemberHistoryStore(t interface {
|
||||
type mockConstructorTestingTNewChannelMemberHistoryStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *ChannelMemberHistoryStore {
|
||||
}
|
||||
|
||||
// NewChannelMemberHistoryStore creates a new instance of ChannelMemberHistoryStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewChannelMemberHistoryStore(t mockConstructorTestingTNewChannelMemberHistoryStore) *ChannelMemberHistoryStore {
|
||||
mock := &ChannelMemberHistoryStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type ClusterDiscoveryStore struct {
|
||||
func (_m *ClusterDiscoveryStore) Cleanup() error {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Cleanup")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func() error); ok {
|
||||
r0 = rf()
|
||||
@@ -36,10 +32,6 @@ func (_m *ClusterDiscoveryStore) Cleanup() error {
|
||||
func (_m *ClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, error) {
|
||||
ret := _m.Called(discovery)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.ClusterDiscovery) (bool, error)); ok {
|
||||
@@ -64,10 +56,6 @@ func (_m *ClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool
|
||||
func (_m *ClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, error) {
|
||||
ret := _m.Called(discovery)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Exists")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.ClusterDiscovery) (bool, error)); ok {
|
||||
@@ -92,10 +80,6 @@ func (_m *ClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool
|
||||
func (_m *ClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, error) {
|
||||
ret := _m.Called(discoveryType, clusterName)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAll")
|
||||
}
|
||||
|
||||
var r0 []*model.ClusterDiscovery
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) ([]*model.ClusterDiscovery, error)); ok {
|
||||
@@ -122,10 +106,6 @@ func (_m *ClusterDiscoveryStore) GetAll(discoveryType string, clusterName string
|
||||
func (_m *ClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) error {
|
||||
ret := _m.Called(discovery)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.ClusterDiscovery) error); ok {
|
||||
r0 = rf(discovery)
|
||||
@@ -140,10 +120,6 @@ func (_m *ClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) error {
|
||||
func (_m *ClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) error {
|
||||
ret := _m.Called(discovery)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SetLastPingAt")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.ClusterDiscovery) error); ok {
|
||||
r0 = rf(discovery)
|
||||
@@ -154,12 +130,13 @@ func (_m *ClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewClusterDiscoveryStore creates a new instance of ClusterDiscoveryStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewClusterDiscoveryStore(t interface {
|
||||
type mockConstructorTestingTNewClusterDiscoveryStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *ClusterDiscoveryStore {
|
||||
}
|
||||
|
||||
// NewClusterDiscoveryStore creates a new instance of ClusterDiscoveryStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewClusterDiscoveryStore(t mockConstructorTestingTNewClusterDiscoveryStore) *ClusterDiscoveryStore {
|
||||
mock := &ClusterDiscoveryStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type CommandStore struct {
|
||||
func (_m *CommandStore) AnalyticsCommandCount(teamID string) (int64, error) {
|
||||
ret := _m.Called(teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsCommandCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int64, error)); ok {
|
||||
@@ -46,10 +42,6 @@ func (_m *CommandStore) AnalyticsCommandCount(teamID string) (int64, error) {
|
||||
func (_m *CommandStore) Delete(commandID string, timestamp int64) error {
|
||||
ret := _m.Called(commandID, timestamp)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) error); ok {
|
||||
r0 = rf(commandID, timestamp)
|
||||
@@ -64,10 +56,6 @@ func (_m *CommandStore) Delete(commandID string, timestamp int64) error {
|
||||
func (_m *CommandStore) Get(id string) (*model.Command, error) {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.Command
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Command, error)); ok {
|
||||
@@ -94,10 +82,6 @@ func (_m *CommandStore) Get(id string) (*model.Command, error) {
|
||||
func (_m *CommandStore) GetByTeam(teamID string) ([]*model.Command, error) {
|
||||
ret := _m.Called(teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByTeam")
|
||||
}
|
||||
|
||||
var r0 []*model.Command
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.Command, error)); ok {
|
||||
@@ -124,10 +108,6 @@ func (_m *CommandStore) GetByTeam(teamID string) ([]*model.Command, error) {
|
||||
func (_m *CommandStore) GetByTrigger(teamID string, trigger string) (*model.Command, error) {
|
||||
ret := _m.Called(teamID, trigger)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByTrigger")
|
||||
}
|
||||
|
||||
var r0 *model.Command
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.Command, error)); ok {
|
||||
@@ -154,10 +134,6 @@ func (_m *CommandStore) GetByTrigger(teamID string, trigger string) (*model.Comm
|
||||
func (_m *CommandStore) PermanentDeleteByTeam(teamID string) error {
|
||||
ret := _m.Called(teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteByTeam")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(teamID)
|
||||
@@ -172,10 +148,6 @@ func (_m *CommandStore) PermanentDeleteByTeam(teamID string) error {
|
||||
func (_m *CommandStore) PermanentDeleteByUser(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteByUser")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userID)
|
||||
@@ -190,10 +162,6 @@ func (_m *CommandStore) PermanentDeleteByUser(userID string) error {
|
||||
func (_m *CommandStore) Save(webhook *model.Command) (*model.Command, error) {
|
||||
ret := _m.Called(webhook)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.Command
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Command) (*model.Command, error)); ok {
|
||||
@@ -220,10 +188,6 @@ func (_m *CommandStore) Save(webhook *model.Command) (*model.Command, error) {
|
||||
func (_m *CommandStore) Update(hook *model.Command) (*model.Command, error) {
|
||||
ret := _m.Called(hook)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
}
|
||||
|
||||
var r0 *model.Command
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Command) (*model.Command, error)); ok {
|
||||
@@ -246,12 +210,13 @@ func (_m *CommandStore) Update(hook *model.Command) (*model.Command, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewCommandStore creates a new instance of CommandStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewCommandStore(t interface {
|
||||
type mockConstructorTestingTNewCommandStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *CommandStore {
|
||||
}
|
||||
|
||||
// NewCommandStore creates a new instance of CommandStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewCommandStore(t mockConstructorTestingTNewCommandStore) *CommandStore {
|
||||
mock := &CommandStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -23,10 +23,6 @@ func (_m *CommandWebhookStore) Cleanup() {
|
||||
func (_m *CommandWebhookStore) Get(id string) (*model.CommandWebhook, error) {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.CommandWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.CommandWebhook, error)); ok {
|
||||
@@ -53,10 +49,6 @@ func (_m *CommandWebhookStore) Get(id string) (*model.CommandWebhook, error) {
|
||||
func (_m *CommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, error) {
|
||||
ret := _m.Called(webhook)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.CommandWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.CommandWebhook) (*model.CommandWebhook, error)); ok {
|
||||
@@ -83,10 +75,6 @@ func (_m *CommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.Comma
|
||||
func (_m *CommandWebhookStore) TryUse(id string, limit int) error {
|
||||
ret := _m.Called(id, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for TryUse")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, int) error); ok {
|
||||
r0 = rf(id, limit)
|
||||
@@ -97,12 +85,13 @@ func (_m *CommandWebhookStore) TryUse(id string, limit int) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewCommandWebhookStore creates a new instance of CommandWebhookStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewCommandWebhookStore(t interface {
|
||||
type mockConstructorTestingTNewCommandWebhookStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *CommandWebhookStore {
|
||||
}
|
||||
|
||||
// NewCommandWebhookStore creates a new instance of CommandWebhookStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewCommandWebhookStore(t mockConstructorTestingTNewCommandWebhookStore) *CommandWebhookStore {
|
||||
mock := &CommandWebhookStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -19,10 +19,6 @@ type ComplianceStore struct {
|
||||
func (_m *ComplianceStore) ComplianceExport(compliance *model.Compliance, cursor model.ComplianceExportCursor, limit int) ([]*model.CompliancePost, model.ComplianceExportCursor, error) {
|
||||
ret := _m.Called(compliance, cursor, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ComplianceExport")
|
||||
}
|
||||
|
||||
var r0 []*model.CompliancePost
|
||||
var r1 model.ComplianceExportCursor
|
||||
var r2 error
|
||||
@@ -56,10 +52,6 @@ func (_m *ComplianceStore) ComplianceExport(compliance *model.Compliance, cursor
|
||||
func (_m *ComplianceStore) Get(id string) (*model.Compliance, error) {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.Compliance
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Compliance, error)); ok {
|
||||
@@ -86,10 +78,6 @@ func (_m *ComplianceStore) Get(id string) (*model.Compliance, error) {
|
||||
func (_m *ComplianceStore) GetAll(offset int, limit int) (model.Compliances, error) {
|
||||
ret := _m.Called(offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAll")
|
||||
}
|
||||
|
||||
var r0 model.Compliances
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, int) (model.Compliances, error)); ok {
|
||||
@@ -116,10 +104,6 @@ func (_m *ComplianceStore) GetAll(offset int, limit int) (model.Compliances, err
|
||||
func (_m *ComplianceStore) MessageExport(c request.CTX, cursor model.MessageExportCursor, limit int) ([]*model.MessageExport, model.MessageExportCursor, error) {
|
||||
ret := _m.Called(c, cursor, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for MessageExport")
|
||||
}
|
||||
|
||||
var r0 []*model.MessageExport
|
||||
var r1 model.MessageExportCursor
|
||||
var r2 error
|
||||
@@ -153,10 +137,6 @@ func (_m *ComplianceStore) MessageExport(c request.CTX, cursor model.MessageExpo
|
||||
func (_m *ComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, error) {
|
||||
ret := _m.Called(compliance)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.Compliance
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Compliance) (*model.Compliance, error)); ok {
|
||||
@@ -183,10 +163,6 @@ func (_m *ComplianceStore) Save(compliance *model.Compliance) (*model.Compliance
|
||||
func (_m *ComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, error) {
|
||||
ret := _m.Called(compliance)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
}
|
||||
|
||||
var r0 *model.Compliance
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Compliance) (*model.Compliance, error)); ok {
|
||||
@@ -209,12 +185,13 @@ func (_m *ComplianceStore) Update(compliance *model.Compliance) (*model.Complian
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewComplianceStore creates a new instance of ComplianceStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewComplianceStore(t interface {
|
||||
type mockConstructorTestingTNewComplianceStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *ComplianceStore {
|
||||
}
|
||||
|
||||
// NewComplianceStore creates a new instance of ComplianceStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewComplianceStore(t mockConstructorTestingTNewComplianceStore) *ComplianceStore {
|
||||
mock := &ComplianceStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -15,10 +15,6 @@ type DesktopTokensStore struct {
|
||||
func (_m *DesktopTokensStore) Delete(token string) error {
|
||||
ret := _m.Called(token)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(token)
|
||||
@@ -33,10 +29,6 @@ func (_m *DesktopTokensStore) Delete(token string) error {
|
||||
func (_m *DesktopTokensStore) DeleteByUserId(userId string) error {
|
||||
ret := _m.Called(userId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteByUserId")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userId)
|
||||
@@ -51,10 +43,6 @@ func (_m *DesktopTokensStore) DeleteByUserId(userId string) error {
|
||||
func (_m *DesktopTokensStore) DeleteOlderThan(minCreatedAt int64) error {
|
||||
ret := _m.Called(minCreatedAt)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteOlderThan")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(int64) error); ok {
|
||||
r0 = rf(minCreatedAt)
|
||||
@@ -69,10 +57,6 @@ func (_m *DesktopTokensStore) DeleteOlderThan(minCreatedAt int64) error {
|
||||
func (_m *DesktopTokensStore) GetUserId(token string, minCreatedAt int64) (*string, error) {
|
||||
ret := _m.Called(token, minCreatedAt)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUserId")
|
||||
}
|
||||
|
||||
var r0 *string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) (*string, error)); ok {
|
||||
@@ -99,10 +83,6 @@ func (_m *DesktopTokensStore) GetUserId(token string, minCreatedAt int64) (*stri
|
||||
func (_m *DesktopTokensStore) Insert(token string, createAt int64, userId string) error {
|
||||
ret := _m.Called(token, createAt, userId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Insert")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64, string) error); ok {
|
||||
r0 = rf(token, createAt, userId)
|
||||
@@ -113,12 +93,13 @@ func (_m *DesktopTokensStore) Insert(token string, createAt int64, userId string
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewDesktopTokensStore creates a new instance of DesktopTokensStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewDesktopTokensStore(t interface {
|
||||
type mockConstructorTestingTNewDesktopTokensStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *DesktopTokensStore {
|
||||
}
|
||||
|
||||
// NewDesktopTokensStore creates a new instance of DesktopTokensStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewDesktopTokensStore(t mockConstructorTestingTNewDesktopTokensStore) *DesktopTokensStore {
|
||||
mock := &DesktopTokensStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type DraftStore struct {
|
||||
func (_m *DraftStore) Delete(userID string, channelID string, rootID string) error {
|
||||
ret := _m.Called(userID, channelID, rootID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
|
||||
r0 = rf(userID, channelID, rootID)
|
||||
@@ -36,10 +32,6 @@ func (_m *DraftStore) Delete(userID string, channelID string, rootID string) err
|
||||
func (_m *DraftStore) DeleteDraftsAssociatedWithPost(channelID string, rootID string) error {
|
||||
ret := _m.Called(channelID, rootID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteDraftsAssociatedWithPost")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(channelID, rootID)
|
||||
@@ -54,10 +46,6 @@ func (_m *DraftStore) DeleteDraftsAssociatedWithPost(channelID string, rootID st
|
||||
func (_m *DraftStore) DeleteEmptyDraftsByCreateAtAndUserId(createAt int64, userId string) error {
|
||||
ret := _m.Called(createAt, userId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteEmptyDraftsByCreateAtAndUserId")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(int64, string) error); ok {
|
||||
r0 = rf(createAt, userId)
|
||||
@@ -72,10 +60,6 @@ func (_m *DraftStore) DeleteEmptyDraftsByCreateAtAndUserId(createAt int64, userI
|
||||
func (_m *DraftStore) DeleteOrphanDraftsByCreateAtAndUserId(createAt int64, userId string) error {
|
||||
ret := _m.Called(createAt, userId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteOrphanDraftsByCreateAtAndUserId")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(int64, string) error); ok {
|
||||
r0 = rf(createAt, userId)
|
||||
@@ -90,10 +74,6 @@ func (_m *DraftStore) DeleteOrphanDraftsByCreateAtAndUserId(createAt int64, user
|
||||
func (_m *DraftStore) Get(userID string, channelID string, rootID string, includeDeleted bool) (*model.Draft, error) {
|
||||
ret := _m.Called(userID, channelID, rootID, includeDeleted)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.Draft
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, bool) (*model.Draft, error)); ok {
|
||||
@@ -120,10 +100,6 @@ func (_m *DraftStore) Get(userID string, channelID string, rootID string, includ
|
||||
func (_m *DraftStore) GetDraftsForUser(userID string, teamID string) ([]*model.Draft, error) {
|
||||
ret := _m.Called(userID, teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetDraftsForUser")
|
||||
}
|
||||
|
||||
var r0 []*model.Draft
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) ([]*model.Draft, error)); ok {
|
||||
@@ -150,10 +126,6 @@ func (_m *DraftStore) GetDraftsForUser(userID string, teamID string) ([]*model.D
|
||||
func (_m *DraftStore) GetLastCreateAtAndUserIdValuesForEmptyDraftsMigration(createAt int64, userId string) (int64, string, error) {
|
||||
ret := _m.Called(createAt, userId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetLastCreateAtAndUserIdValuesForEmptyDraftsMigration")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 string
|
||||
var r2 error
|
||||
@@ -185,10 +157,6 @@ func (_m *DraftStore) GetLastCreateAtAndUserIdValuesForEmptyDraftsMigration(crea
|
||||
func (_m *DraftStore) Upsert(d *model.Draft) (*model.Draft, error) {
|
||||
ret := _m.Called(d)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Upsert")
|
||||
}
|
||||
|
||||
var r0 *model.Draft
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Draft) (*model.Draft, error)); ok {
|
||||
@@ -211,12 +179,13 @@ func (_m *DraftStore) Upsert(d *model.Draft) (*model.Draft, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewDraftStore creates a new instance of DraftStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewDraftStore(t interface {
|
||||
type mockConstructorTestingTNewDraftStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *DraftStore {
|
||||
}
|
||||
|
||||
// NewDraftStore creates a new instance of DraftStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewDraftStore(t mockConstructorTestingTNewDraftStore) *DraftStore {
|
||||
mock := &DraftStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -19,10 +19,6 @@ type EmojiStore struct {
|
||||
func (_m *EmojiStore) Delete(emoji *model.Emoji, timestamp int64) error {
|
||||
ret := _m.Called(emoji, timestamp)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Emoji, int64) error); ok {
|
||||
r0 = rf(emoji, timestamp)
|
||||
@@ -37,10 +33,6 @@ func (_m *EmojiStore) Delete(emoji *model.Emoji, timestamp int64) error {
|
||||
func (_m *EmojiStore) Get(c request.CTX, id string, allowFromCache bool) (*model.Emoji, error) {
|
||||
ret := _m.Called(c, id, allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.Emoji
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, bool) (*model.Emoji, error)); ok {
|
||||
@@ -67,10 +59,6 @@ func (_m *EmojiStore) Get(c request.CTX, id string, allowFromCache bool) (*model
|
||||
func (_m *EmojiStore) GetByName(c request.CTX, name string, allowFromCache bool) (*model.Emoji, error) {
|
||||
ret := _m.Called(c, name, allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByName")
|
||||
}
|
||||
|
||||
var r0 *model.Emoji
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, bool) (*model.Emoji, error)); ok {
|
||||
@@ -97,10 +85,6 @@ func (_m *EmojiStore) GetByName(c request.CTX, name string, allowFromCache bool)
|
||||
func (_m *EmojiStore) GetList(offset int, limit int, sort string) ([]*model.Emoji, error) {
|
||||
ret := _m.Called(offset, limit, sort)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetList")
|
||||
}
|
||||
|
||||
var r0 []*model.Emoji
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, int, string) ([]*model.Emoji, error)); ok {
|
||||
@@ -127,10 +111,6 @@ func (_m *EmojiStore) GetList(offset int, limit int, sort string) ([]*model.Emoj
|
||||
func (_m *EmojiStore) GetMultipleByName(c request.CTX, names []string) ([]*model.Emoji, error) {
|
||||
ret := _m.Called(c, names)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMultipleByName")
|
||||
}
|
||||
|
||||
var r0 []*model.Emoji
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, []string) ([]*model.Emoji, error)); ok {
|
||||
@@ -157,10 +137,6 @@ func (_m *EmojiStore) GetMultipleByName(c request.CTX, names []string) ([]*model
|
||||
func (_m *EmojiStore) Save(emoji *model.Emoji) (*model.Emoji, error) {
|
||||
ret := _m.Called(emoji)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.Emoji
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Emoji) (*model.Emoji, error)); ok {
|
||||
@@ -187,10 +163,6 @@ func (_m *EmojiStore) Save(emoji *model.Emoji) (*model.Emoji, error) {
|
||||
func (_m *EmojiStore) Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, error) {
|
||||
ret := _m.Called(name, prefixOnly, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Search")
|
||||
}
|
||||
|
||||
var r0 []*model.Emoji
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool, int) ([]*model.Emoji, error)); ok {
|
||||
@@ -213,12 +185,13 @@ func (_m *EmojiStore) Search(name string, prefixOnly bool, limit int) ([]*model.
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewEmojiStore creates a new instance of EmojiStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewEmojiStore(t interface {
|
||||
type mockConstructorTestingTNewEmojiStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *EmojiStore {
|
||||
}
|
||||
|
||||
// NewEmojiStore creates a new instance of EmojiStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewEmojiStore(t mockConstructorTestingTNewEmojiStore) *EmojiStore {
|
||||
mock := &EmojiStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -19,10 +19,6 @@ type FileInfoStore struct {
|
||||
func (_m *FileInfoStore) AttachToPost(c request.CTX, fileID string, postID string, channelID string, creatorID string) error {
|
||||
ret := _m.Called(c, fileID, postID, channelID, creatorID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AttachToPost")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, string, string, string) error); ok {
|
||||
r0 = rf(c, fileID, postID, channelID, creatorID)
|
||||
@@ -42,10 +38,6 @@ func (_m *FileInfoStore) ClearCaches() {
|
||||
func (_m *FileInfoStore) CountAll() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CountAll")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -70,10 +62,6 @@ func (_m *FileInfoStore) CountAll() (int64, error) {
|
||||
func (_m *FileInfoStore) DeleteForPost(c request.CTX, postID string) (string, error) {
|
||||
ret := _m.Called(c, postID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteForPost")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) (string, error)); ok {
|
||||
@@ -98,10 +86,6 @@ func (_m *FileInfoStore) DeleteForPost(c request.CTX, postID string) (string, er
|
||||
func (_m *FileInfoStore) Get(id string) (*model.FileInfo, error) {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.FileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.FileInfo, error)); ok {
|
||||
@@ -128,10 +112,6 @@ func (_m *FileInfoStore) Get(id string) (*model.FileInfo, error) {
|
||||
func (_m *FileInfoStore) GetByIds(ids []string) ([]*model.FileInfo, error) {
|
||||
ret := _m.Called(ids)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByIds")
|
||||
}
|
||||
|
||||
var r0 []*model.FileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string) ([]*model.FileInfo, error)); ok {
|
||||
@@ -158,10 +138,6 @@ func (_m *FileInfoStore) GetByIds(ids []string) ([]*model.FileInfo, error) {
|
||||
func (_m *FileInfoStore) GetByPath(path string) (*model.FileInfo, error) {
|
||||
ret := _m.Called(path)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByPath")
|
||||
}
|
||||
|
||||
var r0 *model.FileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.FileInfo, error)); ok {
|
||||
@@ -188,10 +164,6 @@ func (_m *FileInfoStore) GetByPath(path string) (*model.FileInfo, error) {
|
||||
func (_m *FileInfoStore) GetFilesBatchForIndexing(startTime int64, startFileID string, includeDeleted bool, limit int) ([]*model.FileForIndexing, error) {
|
||||
ret := _m.Called(startTime, startFileID, includeDeleted, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetFilesBatchForIndexing")
|
||||
}
|
||||
|
||||
var r0 []*model.FileForIndexing
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64, string, bool, int) ([]*model.FileForIndexing, error)); ok {
|
||||
@@ -218,10 +190,6 @@ func (_m *FileInfoStore) GetFilesBatchForIndexing(startTime int64, startFileID s
|
||||
func (_m *FileInfoStore) GetForPost(postID string, readFromMaster bool, includeDeleted bool, allowFromCache bool) ([]*model.FileInfo, error) {
|
||||
ret := _m.Called(postID, readFromMaster, includeDeleted, allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetForPost")
|
||||
}
|
||||
|
||||
var r0 []*model.FileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool, bool, bool) ([]*model.FileInfo, error)); ok {
|
||||
@@ -248,10 +216,6 @@ func (_m *FileInfoStore) GetForPost(postID string, readFromMaster bool, includeD
|
||||
func (_m *FileInfoStore) GetForUser(userID string) ([]*model.FileInfo, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetForUser")
|
||||
}
|
||||
|
||||
var r0 []*model.FileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.FileInfo, error)); ok {
|
||||
@@ -278,10 +242,6 @@ func (_m *FileInfoStore) GetForUser(userID string) ([]*model.FileInfo, error) {
|
||||
func (_m *FileInfoStore) GetFromMaster(id string) (*model.FileInfo, error) {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetFromMaster")
|
||||
}
|
||||
|
||||
var r0 *model.FileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.FileInfo, error)); ok {
|
||||
@@ -308,10 +268,6 @@ func (_m *FileInfoStore) GetFromMaster(id string) (*model.FileInfo, error) {
|
||||
func (_m *FileInfoStore) GetStorageUsage(allowFromCache bool, includeDeleted bool) (int64, error) {
|
||||
ret := _m.Called(allowFromCache, includeDeleted)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetStorageUsage")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(bool, bool) (int64, error)); ok {
|
||||
@@ -336,10 +292,6 @@ func (_m *FileInfoStore) GetStorageUsage(allowFromCache bool, includeDeleted boo
|
||||
func (_m *FileInfoStore) GetUptoNSizeFileTime(n int64) (int64, error) {
|
||||
ret := _m.Called(n)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUptoNSizeFileTime")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64) (int64, error)); ok {
|
||||
@@ -364,10 +316,6 @@ func (_m *FileInfoStore) GetUptoNSizeFileTime(n int64) (int64, error) {
|
||||
func (_m *FileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, error) {
|
||||
ret := _m.Called(page, perPage, opt)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetWithOptions")
|
||||
}
|
||||
|
||||
var r0 []*model.FileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, int, *model.GetFileInfosOptions) ([]*model.FileInfo, error)); ok {
|
||||
@@ -399,10 +347,6 @@ func (_m *FileInfoStore) InvalidateFileInfosForPostCache(postID string, deleted
|
||||
func (_m *FileInfoStore) PermanentDelete(c request.CTX, fileID string) error {
|
||||
ret := _m.Called(c, fileID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDelete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) error); ok {
|
||||
r0 = rf(c, fileID)
|
||||
@@ -417,10 +361,6 @@ func (_m *FileInfoStore) PermanentDelete(c request.CTX, fileID string) error {
|
||||
func (_m *FileInfoStore) PermanentDeleteBatch(ctx request.CTX, endTime int64, limit int64) (int64, error) {
|
||||
ret := _m.Called(ctx, endTime, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteBatch")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, int64, int64) (int64, error)); ok {
|
||||
@@ -445,10 +385,6 @@ func (_m *FileInfoStore) PermanentDeleteBatch(ctx request.CTX, endTime int64, li
|
||||
func (_m *FileInfoStore) PermanentDeleteByUser(ctx request.CTX, userID string) (int64, error) {
|
||||
ret := _m.Called(ctx, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteByUser")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) (int64, error)); ok {
|
||||
@@ -473,10 +409,6 @@ func (_m *FileInfoStore) PermanentDeleteByUser(ctx request.CTX, userID string) (
|
||||
func (_m *FileInfoStore) Save(ctx request.CTX, info *model.FileInfo) (*model.FileInfo, error) {
|
||||
ret := _m.Called(ctx, info)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.FileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, *model.FileInfo) (*model.FileInfo, error)); ok {
|
||||
@@ -503,10 +435,6 @@ func (_m *FileInfoStore) Save(ctx request.CTX, info *model.FileInfo) (*model.Fil
|
||||
func (_m *FileInfoStore) Search(ctx request.CTX, paramsList []*model.SearchParams, userID string, teamID string, page int, perPage int) (*model.FileInfoList, error) {
|
||||
ret := _m.Called(ctx, paramsList, userID, teamID, page, perPage)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Search")
|
||||
}
|
||||
|
||||
var r0 *model.FileInfoList
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, []*model.SearchParams, string, string, int, int) (*model.FileInfoList, error)); ok {
|
||||
@@ -533,10 +461,6 @@ func (_m *FileInfoStore) Search(ctx request.CTX, paramsList []*model.SearchParam
|
||||
func (_m *FileInfoStore) SetContent(ctx request.CTX, fileID string, content string) error {
|
||||
ret := _m.Called(ctx, fileID, content)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SetContent")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, string) error); ok {
|
||||
r0 = rf(ctx, fileID, content)
|
||||
@@ -551,10 +475,6 @@ func (_m *FileInfoStore) SetContent(ctx request.CTX, fileID string, content stri
|
||||
func (_m *FileInfoStore) Upsert(rctx request.CTX, info *model.FileInfo) (*model.FileInfo, error) {
|
||||
ret := _m.Called(rctx, info)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Upsert")
|
||||
}
|
||||
|
||||
var r0 *model.FileInfo
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, *model.FileInfo) (*model.FileInfo, error)); ok {
|
||||
@@ -577,12 +497,13 @@ func (_m *FileInfoStore) Upsert(rctx request.CTX, info *model.FileInfo) (*model.
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewFileInfoStore creates a new instance of FileInfoStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewFileInfoStore(t interface {
|
||||
type mockConstructorTestingTNewFileInfoStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *FileInfoStore {
|
||||
}
|
||||
|
||||
// NewFileInfoStore creates a new instance of FileInfoStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewFileInfoStore(t mockConstructorTestingTNewFileInfoStore) *FileInfoStore {
|
||||
mock := &FileInfoStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type GroupStore struct {
|
||||
func (_m *GroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID string, syncableType model.GroupSyncableType) ([]string, error) {
|
||||
ret := _m.Called(userID, syncableID, syncableType)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AdminRoleGroupsForSyncableMember")
|
||||
}
|
||||
|
||||
var r0 []string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GroupSyncableType) ([]string, error)); ok {
|
||||
@@ -48,10 +44,6 @@ func (_m *GroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID
|
||||
func (_m *GroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, error) {
|
||||
ret := _m.Called(channelID, groupIDs, page, perPage)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ChannelMembersMinusGroupMembers")
|
||||
}
|
||||
|
||||
var r0 []*model.UserWithGroups
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string, int, int) ([]*model.UserWithGroups, error)); ok {
|
||||
@@ -78,10 +70,6 @@ func (_m *GroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs
|
||||
func (_m *GroupStore) ChannelMembersToAdd(since int64, channelID *string, includeRemovedMembers bool) ([]*model.UserChannelIDPair, error) {
|
||||
ret := _m.Called(since, channelID, includeRemovedMembers)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ChannelMembersToAdd")
|
||||
}
|
||||
|
||||
var r0 []*model.UserChannelIDPair
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64, *string, bool) ([]*model.UserChannelIDPair, error)); ok {
|
||||
@@ -108,10 +96,6 @@ func (_m *GroupStore) ChannelMembersToAdd(since int64, channelID *string, includ
|
||||
func (_m *GroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, error) {
|
||||
ret := _m.Called(channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ChannelMembersToRemove")
|
||||
}
|
||||
|
||||
var r0 []*model.ChannelMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*string) ([]*model.ChannelMember, error)); ok {
|
||||
@@ -138,10 +122,6 @@ func (_m *GroupStore) ChannelMembersToRemove(channelID *string) ([]*model.Channe
|
||||
func (_m *GroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, error) {
|
||||
ret := _m.Called(channelID, groupIDs)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CountChannelMembersMinusGroupMembers")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) (int64, error)); ok {
|
||||
@@ -166,10 +146,6 @@ func (_m *GroupStore) CountChannelMembersMinusGroupMembers(channelID string, gro
|
||||
func (_m *GroupStore) CountGroupsByChannel(channelID string, opts model.GroupSearchOpts) (int64, error) {
|
||||
ret := _m.Called(channelID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CountGroupsByChannel")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) (int64, error)); ok {
|
||||
@@ -194,10 +170,6 @@ func (_m *GroupStore) CountGroupsByChannel(channelID string, opts model.GroupSea
|
||||
func (_m *GroupStore) CountGroupsByTeam(teamID string, opts model.GroupSearchOpts) (int64, error) {
|
||||
ret := _m.Called(teamID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CountGroupsByTeam")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) (int64, error)); ok {
|
||||
@@ -222,10 +194,6 @@ func (_m *GroupStore) CountGroupsByTeam(teamID string, opts model.GroupSearchOpt
|
||||
func (_m *GroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, error) {
|
||||
ret := _m.Called(teamID, groupIDs)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CountTeamMembersMinusGroupMembers")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) (int64, error)); ok {
|
||||
@@ -250,10 +218,6 @@ func (_m *GroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs
|
||||
func (_m *GroupStore) Create(group *model.Group) (*model.Group, error) {
|
||||
ret := _m.Called(group)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Create")
|
||||
}
|
||||
|
||||
var r0 *model.Group
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Group) (*model.Group, error)); ok {
|
||||
@@ -280,10 +244,6 @@ func (_m *GroupStore) Create(group *model.Group) (*model.Group, error) {
|
||||
func (_m *GroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, error) {
|
||||
ret := _m.Called(groupSyncable)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CreateGroupSyncable")
|
||||
}
|
||||
|
||||
var r0 *model.GroupSyncable
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.GroupSyncable) (*model.GroupSyncable, error)); ok {
|
||||
@@ -310,10 +270,6 @@ func (_m *GroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*
|
||||
func (_m *GroupStore) CreateWithUserIds(group *model.GroupWithUserIds) (*model.Group, error) {
|
||||
ret := _m.Called(group)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CreateWithUserIds")
|
||||
}
|
||||
|
||||
var r0 *model.Group
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.GroupWithUserIds) (*model.Group, error)); ok {
|
||||
@@ -340,10 +296,6 @@ func (_m *GroupStore) CreateWithUserIds(group *model.GroupWithUserIds) (*model.G
|
||||
func (_m *GroupStore) Delete(groupID string) (*model.Group, error) {
|
||||
ret := _m.Called(groupID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 *model.Group
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Group, error)); ok {
|
||||
@@ -370,10 +322,6 @@ func (_m *GroupStore) Delete(groupID string) (*model.Group, error) {
|
||||
func (_m *GroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, error) {
|
||||
ret := _m.Called(groupID, syncableID, syncableType)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteGroupSyncable")
|
||||
}
|
||||
|
||||
var r0 *model.GroupSyncable
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GroupSyncableType) (*model.GroupSyncable, error)); ok {
|
||||
@@ -400,10 +348,6 @@ func (_m *GroupStore) DeleteGroupSyncable(groupID string, syncableID string, syn
|
||||
func (_m *GroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, error) {
|
||||
ret := _m.Called(groupID, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteMember")
|
||||
}
|
||||
|
||||
var r0 *model.GroupMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.GroupMember, error)); ok {
|
||||
@@ -430,10 +374,6 @@ func (_m *GroupStore) DeleteMember(groupID string, userID string) (*model.GroupM
|
||||
func (_m *GroupStore) DeleteMembers(groupID string, userIDs []string) ([]*model.GroupMember, error) {
|
||||
ret := _m.Called(groupID, userIDs)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteMembers")
|
||||
}
|
||||
|
||||
var r0 []*model.GroupMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) ([]*model.GroupMember, error)); ok {
|
||||
@@ -460,10 +400,6 @@ func (_m *GroupStore) DeleteMembers(groupID string, userIDs []string) ([]*model.
|
||||
func (_m *GroupStore) DistinctGroupMemberCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DistinctGroupMemberCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -488,10 +424,6 @@ func (_m *GroupStore) DistinctGroupMemberCount() (int64, error) {
|
||||
func (_m *GroupStore) DistinctGroupMemberCountForSource(source model.GroupSource) (int64, error) {
|
||||
ret := _m.Called(source)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DistinctGroupMemberCountForSource")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.GroupSource) (int64, error)); ok {
|
||||
@@ -516,10 +448,6 @@ func (_m *GroupStore) DistinctGroupMemberCountForSource(source model.GroupSource
|
||||
func (_m *GroupStore) Get(groupID string) (*model.Group, error) {
|
||||
ret := _m.Called(groupID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.Group
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Group, error)); ok {
|
||||
@@ -546,10 +474,6 @@ func (_m *GroupStore) Get(groupID string) (*model.Group, error) {
|
||||
func (_m *GroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, error) {
|
||||
ret := _m.Called(groupSource)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllBySource")
|
||||
}
|
||||
|
||||
var r0 []*model.Group
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.GroupSource) ([]*model.Group, error)); ok {
|
||||
@@ -576,10 +500,6 @@ func (_m *GroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Gr
|
||||
func (_m *GroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, error) {
|
||||
ret := _m.Called(groupID, syncableType)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllGroupSyncablesByGroupId")
|
||||
}
|
||||
|
||||
var r0 []*model.GroupSyncable
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, model.GroupSyncableType) ([]*model.GroupSyncable, error)); ok {
|
||||
@@ -606,10 +526,6 @@ func (_m *GroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType
|
||||
func (_m *GroupStore) GetByIDs(groupIDs []string) ([]*model.Group, error) {
|
||||
ret := _m.Called(groupIDs)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByIDs")
|
||||
}
|
||||
|
||||
var r0 []*model.Group
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string) ([]*model.Group, error)); ok {
|
||||
@@ -636,10 +552,6 @@ func (_m *GroupStore) GetByIDs(groupIDs []string) ([]*model.Group, error) {
|
||||
func (_m *GroupStore) GetByName(name string, opts model.GroupSearchOpts) (*model.Group, error) {
|
||||
ret := _m.Called(name, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByName")
|
||||
}
|
||||
|
||||
var r0 *model.Group
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) (*model.Group, error)); ok {
|
||||
@@ -666,10 +578,6 @@ func (_m *GroupStore) GetByName(name string, opts model.GroupSearchOpts) (*model
|
||||
func (_m *GroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, error) {
|
||||
ret := _m.Called(remoteID, groupSource)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByRemoteID")
|
||||
}
|
||||
|
||||
var r0 *model.Group
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, model.GroupSource) (*model.Group, error)); ok {
|
||||
@@ -696,10 +604,6 @@ func (_m *GroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSour
|
||||
func (_m *GroupStore) GetByUser(userID string) ([]*model.Group, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByUser")
|
||||
}
|
||||
|
||||
var r0 []*model.Group
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.Group, error)); ok {
|
||||
@@ -726,10 +630,6 @@ func (_m *GroupStore) GetByUser(userID string) ([]*model.Group, error) {
|
||||
func (_m *GroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, error) {
|
||||
ret := _m.Called(groupID, syncableID, syncableType)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetGroupSyncable")
|
||||
}
|
||||
|
||||
var r0 *model.GroupSyncable
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GroupSyncableType) (*model.GroupSyncable, error)); ok {
|
||||
@@ -756,10 +656,6 @@ func (_m *GroupStore) GetGroupSyncable(groupID string, syncableID string, syncab
|
||||
func (_m *GroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts, viewRestrictions *model.ViewUsersRestrictions) ([]*model.Group, error) {
|
||||
ret := _m.Called(page, perPage, opts, viewRestrictions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetGroups")
|
||||
}
|
||||
|
||||
var r0 []*model.Group
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, int, model.GroupSearchOpts, *model.ViewUsersRestrictions) ([]*model.Group, error)); ok {
|
||||
@@ -786,10 +682,6 @@ func (_m *GroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpt
|
||||
func (_m *GroupStore) GetGroupsAssociatedToChannelsByTeam(teamID string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, error) {
|
||||
ret := _m.Called(teamID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetGroupsAssociatedToChannelsByTeam")
|
||||
}
|
||||
|
||||
var r0 map[string][]*model.GroupWithSchemeAdmin
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, error)); ok {
|
||||
@@ -816,10 +708,6 @@ func (_m *GroupStore) GetGroupsAssociatedToChannelsByTeam(teamID string, opts mo
|
||||
func (_m *GroupStore) GetGroupsByChannel(channelID string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error) {
|
||||
ret := _m.Called(channelID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetGroupsByChannel")
|
||||
}
|
||||
|
||||
var r0 []*model.GroupWithSchemeAdmin
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error)); ok {
|
||||
@@ -846,10 +734,6 @@ func (_m *GroupStore) GetGroupsByChannel(channelID string, opts model.GroupSearc
|
||||
func (_m *GroupStore) GetGroupsByTeam(teamID string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error) {
|
||||
ret := _m.Called(teamID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetGroupsByTeam")
|
||||
}
|
||||
|
||||
var r0 []*model.GroupWithSchemeAdmin
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error)); ok {
|
||||
@@ -876,10 +760,6 @@ func (_m *GroupStore) GetGroupsByTeam(teamID string, opts model.GroupSearchOpts)
|
||||
func (_m *GroupStore) GetMember(groupID string, userID string) (*model.GroupMember, error) {
|
||||
ret := _m.Called(groupID, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMember")
|
||||
}
|
||||
|
||||
var r0 *model.GroupMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.GroupMember, error)); ok {
|
||||
@@ -906,10 +786,6 @@ func (_m *GroupStore) GetMember(groupID string, userID string) (*model.GroupMemb
|
||||
func (_m *GroupStore) GetMemberCount(groupID string) (int64, error) {
|
||||
ret := _m.Called(groupID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMemberCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int64, error)); ok {
|
||||
@@ -934,10 +810,6 @@ func (_m *GroupStore) GetMemberCount(groupID string) (int64, error) {
|
||||
func (_m *GroupStore) GetMemberCountWithRestrictions(groupID string, viewRestrictions *model.ViewUsersRestrictions) (int64, error) {
|
||||
ret := _m.Called(groupID, viewRestrictions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMemberCountWithRestrictions")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, *model.ViewUsersRestrictions) (int64, error)); ok {
|
||||
@@ -962,10 +834,6 @@ func (_m *GroupStore) GetMemberCountWithRestrictions(groupID string, viewRestric
|
||||
func (_m *GroupStore) GetMemberUsers(groupID string) ([]*model.User, error) {
|
||||
ret := _m.Called(groupID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMemberUsers")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.User, error)); ok {
|
||||
@@ -992,10 +860,6 @@ func (_m *GroupStore) GetMemberUsers(groupID string) ([]*model.User, error) {
|
||||
func (_m *GroupStore) GetMemberUsersInTeam(groupID string, teamID string) ([]*model.User, error) {
|
||||
ret := _m.Called(groupID, teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMemberUsersInTeam")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) ([]*model.User, error)); ok {
|
||||
@@ -1022,10 +886,6 @@ func (_m *GroupStore) GetMemberUsersInTeam(groupID string, teamID string) ([]*mo
|
||||
func (_m *GroupStore) GetMemberUsersNotInChannel(groupID string, channelID string) ([]*model.User, error) {
|
||||
ret := _m.Called(groupID, channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMemberUsersNotInChannel")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) ([]*model.User, error)); ok {
|
||||
@@ -1052,10 +912,6 @@ func (_m *GroupStore) GetMemberUsersNotInChannel(groupID string, channelID strin
|
||||
func (_m *GroupStore) GetMemberUsersPage(groupID string, page int, perPage int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error) {
|
||||
ret := _m.Called(groupID, page, perPage, viewRestrictions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMemberUsersPage")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int, *model.ViewUsersRestrictions) ([]*model.User, error)); ok {
|
||||
@@ -1082,10 +938,6 @@ func (_m *GroupStore) GetMemberUsersPage(groupID string, page int, perPage int,
|
||||
func (_m *GroupStore) GetMemberUsersSortedPage(groupID string, page int, perPage int, viewRestrictions *model.ViewUsersRestrictions, teammateNameDisplay string) ([]*model.User, error) {
|
||||
ret := _m.Called(groupID, page, perPage, viewRestrictions, teammateNameDisplay)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMemberUsersSortedPage")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int, *model.ViewUsersRestrictions, string) ([]*model.User, error)); ok {
|
||||
@@ -1112,10 +964,6 @@ func (_m *GroupStore) GetMemberUsersSortedPage(groupID string, page int, perPage
|
||||
func (_m *GroupStore) GetNonMemberUsersPage(groupID string, page int, perPage int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error) {
|
||||
ret := _m.Called(groupID, page, perPage, viewRestrictions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetNonMemberUsersPage")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int, *model.ViewUsersRestrictions) ([]*model.User, error)); ok {
|
||||
@@ -1142,10 +990,6 @@ func (_m *GroupStore) GetNonMemberUsersPage(groupID string, page int, perPage in
|
||||
func (_m *GroupStore) GroupChannelCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GroupChannelCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -1170,10 +1014,6 @@ func (_m *GroupStore) GroupChannelCount() (int64, error) {
|
||||
func (_m *GroupStore) GroupCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GroupCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -1198,10 +1038,6 @@ func (_m *GroupStore) GroupCount() (int64, error) {
|
||||
func (_m *GroupStore) GroupCountBySource(source model.GroupSource) (int64, error) {
|
||||
ret := _m.Called(source)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GroupCountBySource")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.GroupSource) (int64, error)); ok {
|
||||
@@ -1226,10 +1062,6 @@ func (_m *GroupStore) GroupCountBySource(source model.GroupSource) (int64, error
|
||||
func (_m *GroupStore) GroupCountWithAllowReference() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GroupCountWithAllowReference")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -1254,10 +1086,6 @@ func (_m *GroupStore) GroupCountWithAllowReference() (int64, error) {
|
||||
func (_m *GroupStore) GroupMemberCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GroupMemberCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -1282,10 +1110,6 @@ func (_m *GroupStore) GroupMemberCount() (int64, error) {
|
||||
func (_m *GroupStore) GroupTeamCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GroupTeamCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -1310,10 +1134,6 @@ func (_m *GroupStore) GroupTeamCount() (int64, error) {
|
||||
func (_m *GroupStore) PermanentDeleteMembersByUser(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteMembersByUser")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userID)
|
||||
@@ -1328,10 +1148,6 @@ func (_m *GroupStore) PermanentDeleteMembersByUser(userID string) error {
|
||||
func (_m *GroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, error) {
|
||||
ret := _m.Called(syncableID, syncableType)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermittedSyncableAdmins")
|
||||
}
|
||||
|
||||
var r0 []string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, model.GroupSyncableType) ([]string, error)); ok {
|
||||
@@ -1358,10 +1174,6 @@ func (_m *GroupStore) PermittedSyncableAdmins(syncableID string, syncableType mo
|
||||
func (_m *GroupStore) Restore(groupID string) (*model.Group, error) {
|
||||
ret := _m.Called(groupID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Restore")
|
||||
}
|
||||
|
||||
var r0 *model.Group
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Group, error)); ok {
|
||||
@@ -1388,10 +1200,6 @@ func (_m *GroupStore) Restore(groupID string) (*model.Group, error) {
|
||||
func (_m *GroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, error) {
|
||||
ret := _m.Called(teamID, groupIDs, page, perPage)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for TeamMembersMinusGroupMembers")
|
||||
}
|
||||
|
||||
var r0 []*model.UserWithGroups
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string, int, int) ([]*model.UserWithGroups, error)); ok {
|
||||
@@ -1418,10 +1226,6 @@ func (_m *GroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []str
|
||||
func (_m *GroupStore) TeamMembersToAdd(since int64, teamID *string, includeRemovedMembers bool) ([]*model.UserTeamIDPair, error) {
|
||||
ret := _m.Called(since, teamID, includeRemovedMembers)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for TeamMembersToAdd")
|
||||
}
|
||||
|
||||
var r0 []*model.UserTeamIDPair
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64, *string, bool) ([]*model.UserTeamIDPair, error)); ok {
|
||||
@@ -1448,10 +1252,6 @@ func (_m *GroupStore) TeamMembersToAdd(since int64, teamID *string, includeRemov
|
||||
func (_m *GroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, error) {
|
||||
ret := _m.Called(teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for TeamMembersToRemove")
|
||||
}
|
||||
|
||||
var r0 []*model.TeamMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*string) ([]*model.TeamMember, error)); ok {
|
||||
@@ -1478,10 +1278,6 @@ func (_m *GroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember,
|
||||
func (_m *GroupStore) Update(group *model.Group) (*model.Group, error) {
|
||||
ret := _m.Called(group)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
}
|
||||
|
||||
var r0 *model.Group
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Group) (*model.Group, error)); ok {
|
||||
@@ -1508,10 +1304,6 @@ func (_m *GroupStore) Update(group *model.Group) (*model.Group, error) {
|
||||
func (_m *GroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, error) {
|
||||
ret := _m.Called(groupSyncable)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateGroupSyncable")
|
||||
}
|
||||
|
||||
var r0 *model.GroupSyncable
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.GroupSyncable) (*model.GroupSyncable, error)); ok {
|
||||
@@ -1538,10 +1330,6 @@ func (_m *GroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*
|
||||
func (_m *GroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, error) {
|
||||
ret := _m.Called(groupID, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpsertMember")
|
||||
}
|
||||
|
||||
var r0 *model.GroupMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.GroupMember, error)); ok {
|
||||
@@ -1568,10 +1356,6 @@ func (_m *GroupStore) UpsertMember(groupID string, userID string) (*model.GroupM
|
||||
func (_m *GroupStore) UpsertMembers(groupID string, userIDs []string) ([]*model.GroupMember, error) {
|
||||
ret := _m.Called(groupID, userIDs)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpsertMembers")
|
||||
}
|
||||
|
||||
var r0 []*model.GroupMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) ([]*model.GroupMember, error)); ok {
|
||||
@@ -1594,12 +1378,13 @@ func (_m *GroupStore) UpsertMembers(groupID string, userIDs []string) ([]*model.
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewGroupStore creates a new instance of GroupStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewGroupStore(t interface {
|
||||
type mockConstructorTestingTNewGroupStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *GroupStore {
|
||||
}
|
||||
|
||||
// NewGroupStore creates a new instance of GroupStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewGroupStore(t mockConstructorTestingTNewGroupStore) *GroupStore {
|
||||
mock := &GroupStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -19,10 +19,6 @@ type JobStore struct {
|
||||
func (_m *JobStore) Cleanup(expiryTime int64, batchSize int) error {
|
||||
ret := _m.Called(expiryTime, batchSize)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Cleanup")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(int64, int) error); ok {
|
||||
r0 = rf(expiryTime, batchSize)
|
||||
@@ -37,10 +33,6 @@ func (_m *JobStore) Cleanup(expiryTime int64, batchSize int) error {
|
||||
func (_m *JobStore) Delete(id string) (string, error) {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (string, error)); ok {
|
||||
@@ -65,10 +57,6 @@ func (_m *JobStore) Delete(id string) (string, error) {
|
||||
func (_m *JobStore) Get(c request.CTX, id string) (*model.Job, error) {
|
||||
ret := _m.Called(c, id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.Job
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) (*model.Job, error)); ok {
|
||||
@@ -95,10 +83,6 @@ func (_m *JobStore) Get(c request.CTX, id string) (*model.Job, error) {
|
||||
func (_m *JobStore) GetAllByStatus(c request.CTX, status string) ([]*model.Job, error) {
|
||||
ret := _m.Called(c, status)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllByStatus")
|
||||
}
|
||||
|
||||
var r0 []*model.Job
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) ([]*model.Job, error)); ok {
|
||||
@@ -125,10 +109,6 @@ func (_m *JobStore) GetAllByStatus(c request.CTX, status string) ([]*model.Job,
|
||||
func (_m *JobStore) GetAllByType(c request.CTX, jobType string) ([]*model.Job, error) {
|
||||
ret := _m.Called(c, jobType)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllByType")
|
||||
}
|
||||
|
||||
var r0 []*model.Job
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) ([]*model.Job, error)); ok {
|
||||
@@ -155,10 +135,6 @@ func (_m *JobStore) GetAllByType(c request.CTX, jobType string) ([]*model.Job, e
|
||||
func (_m *JobStore) GetAllByTypeAndStatus(c request.CTX, jobType string, status string) ([]*model.Job, error) {
|
||||
ret := _m.Called(c, jobType, status)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllByTypeAndStatus")
|
||||
}
|
||||
|
||||
var r0 []*model.Job
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, string) ([]*model.Job, error)); ok {
|
||||
@@ -185,10 +161,6 @@ func (_m *JobStore) GetAllByTypeAndStatus(c request.CTX, jobType string, status
|
||||
func (_m *JobStore) GetAllByTypePage(c request.CTX, jobType string, offset int, limit int) ([]*model.Job, error) {
|
||||
ret := _m.Called(c, jobType, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllByTypePage")
|
||||
}
|
||||
|
||||
var r0 []*model.Job
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, int, int) ([]*model.Job, error)); ok {
|
||||
@@ -215,10 +187,6 @@ func (_m *JobStore) GetAllByTypePage(c request.CTX, jobType string, offset int,
|
||||
func (_m *JobStore) GetAllByTypesPage(c request.CTX, jobTypes []string, offset int, limit int) ([]*model.Job, error) {
|
||||
ret := _m.Called(c, jobTypes, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllByTypesPage")
|
||||
}
|
||||
|
||||
var r0 []*model.Job
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, []string, int, int) ([]*model.Job, error)); ok {
|
||||
@@ -245,10 +213,6 @@ func (_m *JobStore) GetAllByTypesPage(c request.CTX, jobTypes []string, offset i
|
||||
func (_m *JobStore) GetCountByStatusAndType(status string, jobType string) (int64, error) {
|
||||
ret := _m.Called(status, jobType)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetCountByStatusAndType")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (int64, error)); ok {
|
||||
@@ -273,10 +237,6 @@ func (_m *JobStore) GetCountByStatusAndType(status string, jobType string) (int6
|
||||
func (_m *JobStore) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, error) {
|
||||
ret := _m.Called(status, jobType)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetNewestJobByStatusAndType")
|
||||
}
|
||||
|
||||
var r0 *model.Job
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.Job, error)); ok {
|
||||
@@ -303,10 +263,6 @@ func (_m *JobStore) GetNewestJobByStatusAndType(status string, jobType string) (
|
||||
func (_m *JobStore) GetNewestJobByStatusesAndType(statuses []string, jobType string) (*model.Job, error) {
|
||||
ret := _m.Called(statuses, jobType)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetNewestJobByStatusesAndType")
|
||||
}
|
||||
|
||||
var r0 *model.Job
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string, string) (*model.Job, error)); ok {
|
||||
@@ -333,10 +289,6 @@ func (_m *JobStore) GetNewestJobByStatusesAndType(statuses []string, jobType str
|
||||
func (_m *JobStore) Save(job *model.Job) (*model.Job, error) {
|
||||
ret := _m.Called(job)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.Job
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Job) (*model.Job, error)); ok {
|
||||
@@ -363,10 +315,6 @@ func (_m *JobStore) Save(job *model.Job) (*model.Job, error) {
|
||||
func (_m *JobStore) SaveOnce(job *model.Job) (*model.Job, error) {
|
||||
ret := _m.Called(job)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveOnce")
|
||||
}
|
||||
|
||||
var r0 *model.Job
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Job) (*model.Job, error)); ok {
|
||||
@@ -393,10 +341,6 @@ func (_m *JobStore) SaveOnce(job *model.Job) (*model.Job, error) {
|
||||
func (_m *JobStore) UpdateOptimistically(job *model.Job, currentStatus string) (bool, error) {
|
||||
ret := _m.Called(job, currentStatus)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateOptimistically")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Job, string) (bool, error)); ok {
|
||||
@@ -421,10 +365,6 @@ func (_m *JobStore) UpdateOptimistically(job *model.Job, currentStatus string) (
|
||||
func (_m *JobStore) UpdateStatus(id string, status string) (*model.Job, error) {
|
||||
ret := _m.Called(id, status)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateStatus")
|
||||
}
|
||||
|
||||
var r0 *model.Job
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.Job, error)); ok {
|
||||
@@ -451,10 +391,6 @@ func (_m *JobStore) UpdateStatus(id string, status string) (*model.Job, error) {
|
||||
func (_m *JobStore) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, error) {
|
||||
ret := _m.Called(id, currentStatus, newStatus)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateStatusOptimistically")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) (bool, error)); ok {
|
||||
@@ -475,12 +411,13 @@ func (_m *JobStore) UpdateStatusOptimistically(id string, currentStatus string,
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewJobStore creates a new instance of JobStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewJobStore(t interface {
|
||||
type mockConstructorTestingTNewJobStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *JobStore {
|
||||
}
|
||||
|
||||
// NewJobStore creates a new instance of JobStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewJobStore(t mockConstructorTestingTNewJobStore) *JobStore {
|
||||
mock := &JobStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -19,10 +19,6 @@ type LicenseStore struct {
|
||||
func (_m *LicenseStore) Get(c request.CTX, id string) (*model.LicenseRecord, error) {
|
||||
ret := _m.Called(c, id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.LicenseRecord
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) (*model.LicenseRecord, error)); ok {
|
||||
@@ -49,10 +45,6 @@ func (_m *LicenseStore) Get(c request.CTX, id string) (*model.LicenseRecord, err
|
||||
func (_m *LicenseStore) GetAll() ([]*model.LicenseRecord, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAll")
|
||||
}
|
||||
|
||||
var r0 []*model.LicenseRecord
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() ([]*model.LicenseRecord, error)); ok {
|
||||
@@ -79,10 +71,6 @@ func (_m *LicenseStore) GetAll() ([]*model.LicenseRecord, error) {
|
||||
func (_m *LicenseStore) Save(license *model.LicenseRecord) error {
|
||||
ret := _m.Called(license)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.LicenseRecord) error); ok {
|
||||
r0 = rf(license)
|
||||
@@ -93,12 +81,13 @@ func (_m *LicenseStore) Save(license *model.LicenseRecord) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewLicenseStore creates a new instance of LicenseStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewLicenseStore(t interface {
|
||||
type mockConstructorTestingTNewLicenseStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *LicenseStore {
|
||||
}
|
||||
|
||||
// NewLicenseStore creates a new instance of LicenseStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewLicenseStore(t mockConstructorTestingTNewLicenseStore) *LicenseStore {
|
||||
mock := &LicenseStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type LinkMetadataStore struct {
|
||||
func (_m *LinkMetadataStore) Get(url string, timestamp int64) (*model.LinkMetadata, error) {
|
||||
ret := _m.Called(url, timestamp)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.LinkMetadata
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) (*model.LinkMetadata, error)); ok {
|
||||
@@ -48,10 +44,6 @@ func (_m *LinkMetadataStore) Get(url string, timestamp int64) (*model.LinkMetada
|
||||
func (_m *LinkMetadataStore) Save(linkMetadata *model.LinkMetadata) (*model.LinkMetadata, error) {
|
||||
ret := _m.Called(linkMetadata)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.LinkMetadata
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.LinkMetadata) (*model.LinkMetadata, error)); ok {
|
||||
@@ -74,12 +66,13 @@ func (_m *LinkMetadataStore) Save(linkMetadata *model.LinkMetadata) (*model.Link
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewLinkMetadataStore creates a new instance of LinkMetadataStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewLinkMetadataStore(t interface {
|
||||
type mockConstructorTestingTNewLinkMetadataStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *LinkMetadataStore {
|
||||
}
|
||||
|
||||
// NewLinkMetadataStore creates a new instance of LinkMetadataStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewLinkMetadataStore(t mockConstructorTestingTNewLinkMetadataStore) *LinkMetadataStore {
|
||||
mock := &LinkMetadataStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type NotifyAdminStore struct {
|
||||
func (_m *NotifyAdminStore) DeleteBefore(trial bool, now int64) error {
|
||||
ret := _m.Called(trial, now)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteBefore")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(bool, int64) error); ok {
|
||||
r0 = rf(trial, now)
|
||||
@@ -36,10 +32,6 @@ func (_m *NotifyAdminStore) DeleteBefore(trial bool, now int64) error {
|
||||
func (_m *NotifyAdminStore) Get(trial bool) ([]*model.NotifyAdminData, error) {
|
||||
ret := _m.Called(trial)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 []*model.NotifyAdminData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(bool) ([]*model.NotifyAdminData, error)); ok {
|
||||
@@ -66,10 +58,6 @@ func (_m *NotifyAdminStore) Get(trial bool) ([]*model.NotifyAdminData, error) {
|
||||
func (_m *NotifyAdminStore) GetDataByUserIdAndFeature(userId string, feature model.MattermostFeature) ([]*model.NotifyAdminData, error) {
|
||||
ret := _m.Called(userId, feature)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetDataByUserIdAndFeature")
|
||||
}
|
||||
|
||||
var r0 []*model.NotifyAdminData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, model.MattermostFeature) ([]*model.NotifyAdminData, error)); ok {
|
||||
@@ -96,10 +84,6 @@ func (_m *NotifyAdminStore) GetDataByUserIdAndFeature(userId string, feature mod
|
||||
func (_m *NotifyAdminStore) Save(data *model.NotifyAdminData) (*model.NotifyAdminData, error) {
|
||||
ret := _m.Called(data)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.NotifyAdminData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.NotifyAdminData) (*model.NotifyAdminData, error)); ok {
|
||||
@@ -126,10 +110,6 @@ func (_m *NotifyAdminStore) Save(data *model.NotifyAdminData) (*model.NotifyAdmi
|
||||
func (_m *NotifyAdminStore) Update(userId string, requiredPlan string, requiredFeature model.MattermostFeature, now int64) error {
|
||||
ret := _m.Called(userId, requiredPlan, requiredFeature, now)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.MattermostFeature, int64) error); ok {
|
||||
r0 = rf(userId, requiredPlan, requiredFeature, now)
|
||||
@@ -140,12 +120,13 @@ func (_m *NotifyAdminStore) Update(userId string, requiredPlan string, requiredF
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewNotifyAdminStore creates a new instance of NotifyAdminStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewNotifyAdminStore(t interface {
|
||||
type mockConstructorTestingTNewNotifyAdminStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *NotifyAdminStore {
|
||||
}
|
||||
|
||||
// NewNotifyAdminStore creates a new instance of NotifyAdminStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewNotifyAdminStore(t mockConstructorTestingTNewNotifyAdminStore) *NotifyAdminStore {
|
||||
mock := &NotifyAdminStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type OAuthStore struct {
|
||||
func (_m *OAuthStore) DeleteApp(id string) error {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteApp")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(id)
|
||||
@@ -36,10 +32,6 @@ func (_m *OAuthStore) DeleteApp(id string) error {
|
||||
func (_m *OAuthStore) GetAccessData(token string) (*model.AccessData, error) {
|
||||
ret := _m.Called(token)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAccessData")
|
||||
}
|
||||
|
||||
var r0 *model.AccessData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.AccessData, error)); ok {
|
||||
@@ -66,10 +58,6 @@ func (_m *OAuthStore) GetAccessData(token string) (*model.AccessData, error) {
|
||||
func (_m *OAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, error) {
|
||||
ret := _m.Called(token)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAccessDataByRefreshToken")
|
||||
}
|
||||
|
||||
var r0 *model.AccessData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.AccessData, error)); ok {
|
||||
@@ -96,10 +84,6 @@ func (_m *OAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessDa
|
||||
func (_m *OAuthStore) GetAccessDataByUserForApp(userID string, clientId string) ([]*model.AccessData, error) {
|
||||
ret := _m.Called(userID, clientId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAccessDataByUserForApp")
|
||||
}
|
||||
|
||||
var r0 []*model.AccessData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) ([]*model.AccessData, error)); ok {
|
||||
@@ -126,10 +110,6 @@ func (_m *OAuthStore) GetAccessDataByUserForApp(userID string, clientId string)
|
||||
func (_m *OAuthStore) GetApp(id string) (*model.OAuthApp, error) {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetApp")
|
||||
}
|
||||
|
||||
var r0 *model.OAuthApp
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.OAuthApp, error)); ok {
|
||||
@@ -156,10 +136,6 @@ func (_m *OAuthStore) GetApp(id string) (*model.OAuthApp, error) {
|
||||
func (_m *OAuthStore) GetAppByUser(userID string, offset int, limit int) ([]*model.OAuthApp, error) {
|
||||
ret := _m.Called(userID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAppByUser")
|
||||
}
|
||||
|
||||
var r0 []*model.OAuthApp
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.OAuthApp, error)); ok {
|
||||
@@ -186,10 +162,6 @@ func (_m *OAuthStore) GetAppByUser(userID string, offset int, limit int) ([]*mod
|
||||
func (_m *OAuthStore) GetApps(offset int, limit int) ([]*model.OAuthApp, error) {
|
||||
ret := _m.Called(offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetApps")
|
||||
}
|
||||
|
||||
var r0 []*model.OAuthApp
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, int) ([]*model.OAuthApp, error)); ok {
|
||||
@@ -216,10 +188,6 @@ func (_m *OAuthStore) GetApps(offset int, limit int) ([]*model.OAuthApp, error)
|
||||
func (_m *OAuthStore) GetAuthData(code string) (*model.AuthData, error) {
|
||||
ret := _m.Called(code)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAuthData")
|
||||
}
|
||||
|
||||
var r0 *model.AuthData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.AuthData, error)); ok {
|
||||
@@ -246,10 +214,6 @@ func (_m *OAuthStore) GetAuthData(code string) (*model.AuthData, error) {
|
||||
func (_m *OAuthStore) GetAuthorizedApps(userID string, offset int, limit int) ([]*model.OAuthApp, error) {
|
||||
ret := _m.Called(userID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAuthorizedApps")
|
||||
}
|
||||
|
||||
var r0 []*model.OAuthApp
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.OAuthApp, error)); ok {
|
||||
@@ -276,10 +240,6 @@ func (_m *OAuthStore) GetAuthorizedApps(userID string, offset int, limit int) ([
|
||||
func (_m *OAuthStore) GetPreviousAccessData(userID string, clientId string) (*model.AccessData, error) {
|
||||
ret := _m.Called(userID, clientId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPreviousAccessData")
|
||||
}
|
||||
|
||||
var r0 *model.AccessData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.AccessData, error)); ok {
|
||||
@@ -306,10 +266,6 @@ func (_m *OAuthStore) GetPreviousAccessData(userID string, clientId string) (*mo
|
||||
func (_m *OAuthStore) PermanentDeleteAuthDataByUser(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteAuthDataByUser")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userID)
|
||||
@@ -324,10 +280,6 @@ func (_m *OAuthStore) PermanentDeleteAuthDataByUser(userID string) error {
|
||||
func (_m *OAuthStore) RemoveAccessData(token string) error {
|
||||
ret := _m.Called(token)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveAccessData")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(token)
|
||||
@@ -342,10 +294,6 @@ func (_m *OAuthStore) RemoveAccessData(token string) error {
|
||||
func (_m *OAuthStore) RemoveAllAccessData() error {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveAllAccessData")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func() error); ok {
|
||||
r0 = rf()
|
||||
@@ -360,10 +308,6 @@ func (_m *OAuthStore) RemoveAllAccessData() error {
|
||||
func (_m *OAuthStore) RemoveAuthData(code string) error {
|
||||
ret := _m.Called(code)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveAuthData")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(code)
|
||||
@@ -378,10 +322,6 @@ func (_m *OAuthStore) RemoveAuthData(code string) error {
|
||||
func (_m *OAuthStore) RemoveAuthDataByClientId(clientId string, userId string) error {
|
||||
ret := _m.Called(clientId, userId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveAuthDataByClientId")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(clientId, userId)
|
||||
@@ -396,10 +336,6 @@ func (_m *OAuthStore) RemoveAuthDataByClientId(clientId string, userId string) e
|
||||
func (_m *OAuthStore) RemoveAuthDataByUserId(userId string) error {
|
||||
ret := _m.Called(userId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveAuthDataByUserId")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userId)
|
||||
@@ -414,10 +350,6 @@ func (_m *OAuthStore) RemoveAuthDataByUserId(userId string) error {
|
||||
func (_m *OAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, error) {
|
||||
ret := _m.Called(accessData)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveAccessData")
|
||||
}
|
||||
|
||||
var r0 *model.AccessData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.AccessData) (*model.AccessData, error)); ok {
|
||||
@@ -444,10 +376,6 @@ func (_m *OAuthStore) SaveAccessData(accessData *model.AccessData) (*model.Acces
|
||||
func (_m *OAuthStore) SaveApp(app *model.OAuthApp) (*model.OAuthApp, error) {
|
||||
ret := _m.Called(app)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveApp")
|
||||
}
|
||||
|
||||
var r0 *model.OAuthApp
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.OAuthApp) (*model.OAuthApp, error)); ok {
|
||||
@@ -474,10 +402,6 @@ func (_m *OAuthStore) SaveApp(app *model.OAuthApp) (*model.OAuthApp, error) {
|
||||
func (_m *OAuthStore) SaveAuthData(authData *model.AuthData) (*model.AuthData, error) {
|
||||
ret := _m.Called(authData)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveAuthData")
|
||||
}
|
||||
|
||||
var r0 *model.AuthData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.AuthData) (*model.AuthData, error)); ok {
|
||||
@@ -504,10 +428,6 @@ func (_m *OAuthStore) SaveAuthData(authData *model.AuthData) (*model.AuthData, e
|
||||
func (_m *OAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, error) {
|
||||
ret := _m.Called(accessData)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateAccessData")
|
||||
}
|
||||
|
||||
var r0 *model.AccessData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.AccessData) (*model.AccessData, error)); ok {
|
||||
@@ -534,10 +454,6 @@ func (_m *OAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.Acc
|
||||
func (_m *OAuthStore) UpdateApp(app *model.OAuthApp) (*model.OAuthApp, error) {
|
||||
ret := _m.Called(app)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateApp")
|
||||
}
|
||||
|
||||
var r0 *model.OAuthApp
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.OAuthApp) (*model.OAuthApp, error)); ok {
|
||||
@@ -560,12 +476,13 @@ func (_m *OAuthStore) UpdateApp(app *model.OAuthApp) (*model.OAuthApp, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewOAuthStore creates a new instance of OAuthStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewOAuthStore(t interface {
|
||||
type mockConstructorTestingTNewOAuthStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *OAuthStore {
|
||||
}
|
||||
|
||||
// NewOAuthStore creates a new instance of OAuthStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewOAuthStore(t mockConstructorTestingTNewOAuthStore) *OAuthStore {
|
||||
mock := &OAuthStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -19,10 +19,6 @@ type OutgoingOAuthConnectionStore struct {
|
||||
func (_m *OutgoingOAuthConnectionStore) DeleteConnection(c request.CTX, id string) error {
|
||||
ret := _m.Called(c, id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteConnection")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) error); ok {
|
||||
r0 = rf(c, id)
|
||||
@@ -37,10 +33,6 @@ func (_m *OutgoingOAuthConnectionStore) DeleteConnection(c request.CTX, id strin
|
||||
func (_m *OutgoingOAuthConnectionStore) GetConnection(c request.CTX, id string) (*model.OutgoingOAuthConnection, error) {
|
||||
ret := _m.Called(c, id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetConnection")
|
||||
}
|
||||
|
||||
var r0 *model.OutgoingOAuthConnection
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) (*model.OutgoingOAuthConnection, error)); ok {
|
||||
@@ -67,10 +59,6 @@ func (_m *OutgoingOAuthConnectionStore) GetConnection(c request.CTX, id string)
|
||||
func (_m *OutgoingOAuthConnectionStore) GetConnections(c request.CTX, filters model.OutgoingOAuthConnectionGetConnectionsFilter) ([]*model.OutgoingOAuthConnection, error) {
|
||||
ret := _m.Called(c, filters)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetConnections")
|
||||
}
|
||||
|
||||
var r0 []*model.OutgoingOAuthConnection
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, model.OutgoingOAuthConnectionGetConnectionsFilter) ([]*model.OutgoingOAuthConnection, error)); ok {
|
||||
@@ -97,10 +85,6 @@ func (_m *OutgoingOAuthConnectionStore) GetConnections(c request.CTX, filters mo
|
||||
func (_m *OutgoingOAuthConnectionStore) SaveConnection(c request.CTX, conn *model.OutgoingOAuthConnection) (*model.OutgoingOAuthConnection, error) {
|
||||
ret := _m.Called(c, conn)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveConnection")
|
||||
}
|
||||
|
||||
var r0 *model.OutgoingOAuthConnection
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, *model.OutgoingOAuthConnection) (*model.OutgoingOAuthConnection, error)); ok {
|
||||
@@ -127,10 +111,6 @@ func (_m *OutgoingOAuthConnectionStore) SaveConnection(c request.CTX, conn *mode
|
||||
func (_m *OutgoingOAuthConnectionStore) UpdateConnection(c request.CTX, conn *model.OutgoingOAuthConnection) (*model.OutgoingOAuthConnection, error) {
|
||||
ret := _m.Called(c, conn)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateConnection")
|
||||
}
|
||||
|
||||
var r0 *model.OutgoingOAuthConnection
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, *model.OutgoingOAuthConnection) (*model.OutgoingOAuthConnection, error)); ok {
|
||||
@@ -153,12 +133,13 @@ func (_m *OutgoingOAuthConnectionStore) UpdateConnection(c request.CTX, conn *mo
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewOutgoingOAuthConnectionStore creates a new instance of OutgoingOAuthConnectionStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewOutgoingOAuthConnectionStore(t interface {
|
||||
type mockConstructorTestingTNewOutgoingOAuthConnectionStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *OutgoingOAuthConnectionStore {
|
||||
}
|
||||
|
||||
// NewOutgoingOAuthConnectionStore creates a new instance of OutgoingOAuthConnectionStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewOutgoingOAuthConnectionStore(t mockConstructorTestingTNewOutgoingOAuthConnectionStore) *OutgoingOAuthConnectionStore {
|
||||
mock := &OutgoingOAuthConnectionStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type PluginStore struct {
|
||||
func (_m *PluginStore) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, error) {
|
||||
ret := _m.Called(keyVal, oldValue)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CompareAndDelete")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.PluginKeyValue, []byte) (bool, error)); ok {
|
||||
@@ -46,10 +42,6 @@ func (_m *PluginStore) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue [
|
||||
func (_m *PluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, error) {
|
||||
ret := _m.Called(keyVal, oldValue)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CompareAndSet")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.PluginKeyValue, []byte) (bool, error)); ok {
|
||||
@@ -74,10 +66,6 @@ func (_m *PluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []by
|
||||
func (_m *PluginStore) Delete(pluginID string, key string) error {
|
||||
ret := _m.Called(pluginID, key)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(pluginID, key)
|
||||
@@ -92,10 +80,6 @@ func (_m *PluginStore) Delete(pluginID string, key string) error {
|
||||
func (_m *PluginStore) DeleteAllExpired() error {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteAllExpired")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func() error); ok {
|
||||
r0 = rf()
|
||||
@@ -110,10 +94,6 @@ func (_m *PluginStore) DeleteAllExpired() error {
|
||||
func (_m *PluginStore) DeleteAllForPlugin(PluginID string) error {
|
||||
ret := _m.Called(PluginID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteAllForPlugin")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(PluginID)
|
||||
@@ -128,10 +108,6 @@ func (_m *PluginStore) DeleteAllForPlugin(PluginID string) error {
|
||||
func (_m *PluginStore) Get(pluginID string, key string) (*model.PluginKeyValue, error) {
|
||||
ret := _m.Called(pluginID, key)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.PluginKeyValue
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.PluginKeyValue, error)); ok {
|
||||
@@ -158,10 +134,6 @@ func (_m *PluginStore) Get(pluginID string, key string) (*model.PluginKeyValue,
|
||||
func (_m *PluginStore) List(pluginID string, page int, perPage int) ([]string, error) {
|
||||
ret := _m.Called(pluginID, page, perPage)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for List")
|
||||
}
|
||||
|
||||
var r0 []string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]string, error)); ok {
|
||||
@@ -188,10 +160,6 @@ func (_m *PluginStore) List(pluginID string, page int, perPage int) ([]string, e
|
||||
func (_m *PluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, error) {
|
||||
ret := _m.Called(keyVal)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveOrUpdate")
|
||||
}
|
||||
|
||||
var r0 *model.PluginKeyValue
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.PluginKeyValue) (*model.PluginKeyValue, error)); ok {
|
||||
@@ -218,10 +186,6 @@ func (_m *PluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.Plugin
|
||||
func (_m *PluginStore) SetWithOptions(pluginID string, key string, value []byte, options model.PluginKVSetOptions) (bool, error) {
|
||||
ret := _m.Called(pluginID, key, value, options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SetWithOptions")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, []byte, model.PluginKVSetOptions) (bool, error)); ok {
|
||||
@@ -242,12 +206,13 @@ func (_m *PluginStore) SetWithOptions(pluginID string, key string, value []byte,
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewPluginStore creates a new instance of PluginStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewPluginStore(t interface {
|
||||
type mockConstructorTestingTNewPluginStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *PluginStore {
|
||||
}
|
||||
|
||||
// NewPluginStore creates a new instance of PluginStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewPluginStore(t mockConstructorTestingTNewPluginStore) *PluginStore {
|
||||
mock := &PluginStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type PostAcknowledgementStore struct {
|
||||
func (_m *PostAcknowledgementStore) Delete(acknowledgement *model.PostAcknowledgement) error {
|
||||
ret := _m.Called(acknowledgement)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.PostAcknowledgement) error); ok {
|
||||
r0 = rf(acknowledgement)
|
||||
@@ -36,10 +32,6 @@ func (_m *PostAcknowledgementStore) Delete(acknowledgement *model.PostAcknowledg
|
||||
func (_m *PostAcknowledgementStore) Get(postID string, userID string) (*model.PostAcknowledgement, error) {
|
||||
ret := _m.Called(postID, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.PostAcknowledgement
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.PostAcknowledgement, error)); ok {
|
||||
@@ -66,10 +58,6 @@ func (_m *PostAcknowledgementStore) Get(postID string, userID string) (*model.Po
|
||||
func (_m *PostAcknowledgementStore) GetForPost(postID string) ([]*model.PostAcknowledgement, error) {
|
||||
ret := _m.Called(postID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetForPost")
|
||||
}
|
||||
|
||||
var r0 []*model.PostAcknowledgement
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.PostAcknowledgement, error)); ok {
|
||||
@@ -96,10 +84,6 @@ func (_m *PostAcknowledgementStore) GetForPost(postID string) ([]*model.PostAckn
|
||||
func (_m *PostAcknowledgementStore) GetForPosts(postIds []string) ([]*model.PostAcknowledgement, error) {
|
||||
ret := _m.Called(postIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetForPosts")
|
||||
}
|
||||
|
||||
var r0 []*model.PostAcknowledgement
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string) ([]*model.PostAcknowledgement, error)); ok {
|
||||
@@ -126,10 +110,6 @@ func (_m *PostAcknowledgementStore) GetForPosts(postIds []string) ([]*model.Post
|
||||
func (_m *PostAcknowledgementStore) Save(postID string, userID string, acknowledgedAt int64) (*model.PostAcknowledgement, error) {
|
||||
ret := _m.Called(postID, userID, acknowledgedAt)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.PostAcknowledgement
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, int64) (*model.PostAcknowledgement, error)); ok {
|
||||
@@ -152,12 +132,13 @@ func (_m *PostAcknowledgementStore) Save(postID string, userID string, acknowled
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewPostAcknowledgementStore creates a new instance of PostAcknowledgementStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewPostAcknowledgementStore(t interface {
|
||||
type mockConstructorTestingTNewPostAcknowledgementStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *PostAcknowledgementStore {
|
||||
}
|
||||
|
||||
// NewPostAcknowledgementStore creates a new instance of PostAcknowledgementStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewPostAcknowledgementStore(t mockConstructorTestingTNewPostAcknowledgementStore) *PostAcknowledgementStore {
|
||||
mock := &PostAcknowledgementStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type PostPersistentNotificationStore struct {
|
||||
func (_m *PostPersistentNotificationStore) Delete(postIds []string) error {
|
||||
ret := _m.Called(postIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func([]string) error); ok {
|
||||
r0 = rf(postIds)
|
||||
@@ -36,10 +32,6 @@ func (_m *PostPersistentNotificationStore) Delete(postIds []string) error {
|
||||
func (_m *PostPersistentNotificationStore) DeleteByChannel(channelIds []string) error {
|
||||
ret := _m.Called(channelIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteByChannel")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func([]string) error); ok {
|
||||
r0 = rf(channelIds)
|
||||
@@ -54,10 +46,6 @@ func (_m *PostPersistentNotificationStore) DeleteByChannel(channelIds []string)
|
||||
func (_m *PostPersistentNotificationStore) DeleteByTeam(teamIds []string) error {
|
||||
ret := _m.Called(teamIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteByTeam")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func([]string) error); ok {
|
||||
r0 = rf(teamIds)
|
||||
@@ -72,10 +60,6 @@ func (_m *PostPersistentNotificationStore) DeleteByTeam(teamIds []string) error
|
||||
func (_m *PostPersistentNotificationStore) DeleteExpired(maxSentCount int16) error {
|
||||
ret := _m.Called(maxSentCount)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteExpired")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(int16) error); ok {
|
||||
r0 = rf(maxSentCount)
|
||||
@@ -90,10 +74,6 @@ func (_m *PostPersistentNotificationStore) DeleteExpired(maxSentCount int16) err
|
||||
func (_m *PostPersistentNotificationStore) Get(params model.GetPersistentNotificationsPostsParams) ([]*model.PostPersistentNotifications, error) {
|
||||
ret := _m.Called(params)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 []*model.PostPersistentNotifications
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.GetPersistentNotificationsPostsParams) ([]*model.PostPersistentNotifications, error)); ok {
|
||||
@@ -120,10 +100,6 @@ func (_m *PostPersistentNotificationStore) Get(params model.GetPersistentNotific
|
||||
func (_m *PostPersistentNotificationStore) GetSingle(postID string) (*model.PostPersistentNotifications, error) {
|
||||
ret := _m.Called(postID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetSingle")
|
||||
}
|
||||
|
||||
var r0 *model.PostPersistentNotifications
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.PostPersistentNotifications, error)); ok {
|
||||
@@ -150,10 +126,6 @@ func (_m *PostPersistentNotificationStore) GetSingle(postID string) (*model.Post
|
||||
func (_m *PostPersistentNotificationStore) UpdateLastActivity(postIds []string) error {
|
||||
ret := _m.Called(postIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateLastActivity")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func([]string) error); ok {
|
||||
r0 = rf(postIds)
|
||||
@@ -164,12 +136,13 @@ func (_m *PostPersistentNotificationStore) UpdateLastActivity(postIds []string)
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewPostPersistentNotificationStore creates a new instance of PostPersistentNotificationStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewPostPersistentNotificationStore(t interface {
|
||||
type mockConstructorTestingTNewPostPersistentNotificationStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *PostPersistentNotificationStore {
|
||||
}
|
||||
|
||||
// NewPostPersistentNotificationStore creates a new instance of PostPersistentNotificationStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewPostPersistentNotificationStore(t mockConstructorTestingTNewPostPersistentNotificationStore) *PostPersistentNotificationStore {
|
||||
mock := &PostPersistentNotificationStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type PostPriorityStore struct {
|
||||
func (_m *PostPriorityStore) GetForPost(postId string) (*model.PostPriority, error) {
|
||||
ret := _m.Called(postId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetForPost")
|
||||
}
|
||||
|
||||
var r0 *model.PostPriority
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.PostPriority, error)); ok {
|
||||
@@ -48,10 +44,6 @@ func (_m *PostPriorityStore) GetForPost(postId string) (*model.PostPriority, err
|
||||
func (_m *PostPriorityStore) GetForPosts(ids []string) ([]*model.PostPriority, error) {
|
||||
ret := _m.Called(ids)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetForPosts")
|
||||
}
|
||||
|
||||
var r0 []*model.PostPriority
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string) ([]*model.PostPriority, error)); ok {
|
||||
@@ -74,12 +66,13 @@ func (_m *PostPriorityStore) GetForPosts(ids []string) ([]*model.PostPriority, e
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewPostPriorityStore creates a new instance of PostPriorityStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewPostPriorityStore(t interface {
|
||||
type mockConstructorTestingTNewPostPriorityStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *PostPriorityStore {
|
||||
}
|
||||
|
||||
// NewPostPriorityStore creates a new instance of PostPriorityStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewPostPriorityStore(t mockConstructorTestingTNewPostPriorityStore) *PostPriorityStore {
|
||||
mock := &PostPriorityStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -24,10 +24,6 @@ type PostStore struct {
|
||||
func (_m *PostStore) AnalyticsPostCount(options *model.PostCountOptions) (int64, error) {
|
||||
ret := _m.Called(options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsPostCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.PostCountOptions) (int64, error)); ok {
|
||||
@@ -52,10 +48,6 @@ func (_m *PostStore) AnalyticsPostCount(options *model.PostCountOptions) (int64,
|
||||
func (_m *PostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, error) {
|
||||
ret := _m.Called(options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsPostCountsByDay")
|
||||
}
|
||||
|
||||
var r0 model.AnalyticsRows
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.AnalyticsPostCountsOptions) (model.AnalyticsRows, error)); ok {
|
||||
@@ -82,10 +74,6 @@ func (_m *PostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCounts
|
||||
func (_m *PostStore) AnalyticsUserCountsWithPostsByDay(teamID string) (model.AnalyticsRows, error) {
|
||||
ret := _m.Called(teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsUserCountsWithPostsByDay")
|
||||
}
|
||||
|
||||
var r0 model.AnalyticsRows
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (model.AnalyticsRows, error)); ok {
|
||||
@@ -117,10 +105,6 @@ func (_m *PostStore) ClearCaches() {
|
||||
func (_m *PostStore) Delete(rctx request.CTX, postID string, timestamp int64, deleteByID string) error {
|
||||
ret := _m.Called(rctx, postID, timestamp, deleteByID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, int64, string) error); ok {
|
||||
r0 = rf(rctx, postID, timestamp, deleteByID)
|
||||
@@ -135,10 +119,6 @@ func (_m *PostStore) Delete(rctx request.CTX, postID string, timestamp int64, de
|
||||
func (_m *PostStore) Get(ctx context.Context, id string, opts model.GetPostsOptions, userID string, sanitizeOptions map[string]bool) (*model.PostList, error) {
|
||||
ret := _m.Called(ctx, id, opts, userID, sanitizeOptions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.PostList
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(context.Context, string, model.GetPostsOptions, string, map[string]bool) (*model.PostList, error)); ok {
|
||||
@@ -165,10 +145,6 @@ func (_m *PostStore) Get(ctx context.Context, id string, opts model.GetPostsOpti
|
||||
func (_m *PostStore) GetDirectPostParentsForExportAfter(limit int, afterID string, includeArchivedChannels bool) ([]*model.DirectPostForExport, error) {
|
||||
ret := _m.Called(limit, afterID, includeArchivedChannels)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetDirectPostParentsForExportAfter")
|
||||
}
|
||||
|
||||
var r0 []*model.DirectPostForExport
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, string, bool) ([]*model.DirectPostForExport, error)); ok {
|
||||
@@ -195,10 +171,6 @@ func (_m *PostStore) GetDirectPostParentsForExportAfter(limit int, afterID strin
|
||||
func (_m *PostStore) GetEditHistoryForPost(postId string) ([]*model.Post, error) {
|
||||
ret := _m.Called(postId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetEditHistoryForPost")
|
||||
}
|
||||
|
||||
var r0 []*model.Post
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.Post, error)); ok {
|
||||
@@ -225,10 +197,6 @@ func (_m *PostStore) GetEditHistoryForPost(postId string) ([]*model.Post, error)
|
||||
func (_m *PostStore) GetEtag(channelID string, allowFromCache bool, collapsedThreads bool) string {
|
||||
ret := _m.Called(channelID, allowFromCache, collapsedThreads)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetEtag")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
if rf, ok := ret.Get(0).(func(string, bool, bool) string); ok {
|
||||
r0 = rf(channelID, allowFromCache, collapsedThreads)
|
||||
@@ -243,10 +211,6 @@ func (_m *PostStore) GetEtag(channelID string, allowFromCache bool, collapsedThr
|
||||
func (_m *PostStore) GetFlaggedPosts(userID string, offset int, limit int) (*model.PostList, error) {
|
||||
ret := _m.Called(userID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetFlaggedPosts")
|
||||
}
|
||||
|
||||
var r0 *model.PostList
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) (*model.PostList, error)); ok {
|
||||
@@ -273,10 +237,6 @@ func (_m *PostStore) GetFlaggedPosts(userID string, offset int, limit int) (*mod
|
||||
func (_m *PostStore) GetFlaggedPostsForChannel(userID string, channelID string, offset int, limit int) (*model.PostList, error) {
|
||||
ret := _m.Called(userID, channelID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetFlaggedPostsForChannel")
|
||||
}
|
||||
|
||||
var r0 *model.PostList
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, int, int) (*model.PostList, error)); ok {
|
||||
@@ -303,10 +263,6 @@ func (_m *PostStore) GetFlaggedPostsForChannel(userID string, channelID string,
|
||||
func (_m *PostStore) GetFlaggedPostsForTeam(userID string, teamID string, offset int, limit int) (*model.PostList, error) {
|
||||
ret := _m.Called(userID, teamID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetFlaggedPostsForTeam")
|
||||
}
|
||||
|
||||
var r0 *model.PostList
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, int, int) (*model.PostList, error)); ok {
|
||||
@@ -333,10 +289,6 @@ func (_m *PostStore) GetFlaggedPostsForTeam(userID string, teamID string, offset
|
||||
func (_m *PostStore) GetMaxPostSize() int {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMaxPostSize")
|
||||
}
|
||||
|
||||
var r0 int
|
||||
if rf, ok := ret.Get(0).(func() int); ok {
|
||||
r0 = rf()
|
||||
@@ -351,10 +303,6 @@ func (_m *PostStore) GetMaxPostSize() int {
|
||||
func (_m *PostStore) GetNthRecentPostTime(n int64) (int64, error) {
|
||||
ret := _m.Called(n)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetNthRecentPostTime")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64) (int64, error)); ok {
|
||||
@@ -379,10 +327,6 @@ func (_m *PostStore) GetNthRecentPostTime(n int64) (int64, error) {
|
||||
func (_m *PostStore) GetOldest() (*model.Post, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetOldest")
|
||||
}
|
||||
|
||||
var r0 *model.Post
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (*model.Post, error)); ok {
|
||||
@@ -409,10 +353,6 @@ func (_m *PostStore) GetOldest() (*model.Post, error) {
|
||||
func (_m *PostStore) GetOldestEntityCreationTime() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetOldestEntityCreationTime")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -437,10 +377,6 @@ func (_m *PostStore) GetOldestEntityCreationTime() (int64, error) {
|
||||
func (_m *PostStore) GetParentsForExportAfter(limit int, afterID string, includeArchivedChannels bool) ([]*model.PostForExport, error) {
|
||||
ret := _m.Called(limit, afterID, includeArchivedChannels)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetParentsForExportAfter")
|
||||
}
|
||||
|
||||
var r0 []*model.PostForExport
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, string, bool) ([]*model.PostForExport, error)); ok {
|
||||
@@ -467,10 +403,6 @@ func (_m *PostStore) GetParentsForExportAfter(limit int, afterID string, include
|
||||
func (_m *PostStore) GetPostAfterTime(channelID string, timestamp int64, collapsedThreads bool) (*model.Post, error) {
|
||||
ret := _m.Called(channelID, timestamp, collapsedThreads)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPostAfterTime")
|
||||
}
|
||||
|
||||
var r0 *model.Post
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64, bool) (*model.Post, error)); ok {
|
||||
@@ -497,10 +429,6 @@ func (_m *PostStore) GetPostAfterTime(channelID string, timestamp int64, collaps
|
||||
func (_m *PostStore) GetPostIdAfterTime(channelID string, timestamp int64, collapsedThreads bool) (string, error) {
|
||||
ret := _m.Called(channelID, timestamp, collapsedThreads)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPostIdAfterTime")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64, bool) (string, error)); ok {
|
||||
@@ -525,10 +453,6 @@ func (_m *PostStore) GetPostIdAfterTime(channelID string, timestamp int64, colla
|
||||
func (_m *PostStore) GetPostIdBeforeTime(channelID string, timestamp int64, collapsedThreads bool) (string, error) {
|
||||
ret := _m.Called(channelID, timestamp, collapsedThreads)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPostIdBeforeTime")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64, bool) (string, error)); ok {
|
||||
@@ -553,10 +477,6 @@ func (_m *PostStore) GetPostIdBeforeTime(channelID string, timestamp int64, coll
|
||||
func (_m *PostStore) GetPostReminderMetadata(postID string) (*store.PostReminderMetadata, error) {
|
||||
ret := _m.Called(postID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPostReminderMetadata")
|
||||
}
|
||||
|
||||
var r0 *store.PostReminderMetadata
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*store.PostReminderMetadata, error)); ok {
|
||||
@@ -583,10 +503,6 @@ func (_m *PostStore) GetPostReminderMetadata(postID string) (*store.PostReminder
|
||||
func (_m *PostStore) GetPostReminders(now int64) ([]*model.PostReminder, error) {
|
||||
ret := _m.Called(now)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPostReminders")
|
||||
}
|
||||
|
||||
var r0 []*model.PostReminder
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64) ([]*model.PostReminder, error)); ok {
|
||||
@@ -613,10 +529,6 @@ func (_m *PostStore) GetPostReminders(now int64) ([]*model.PostReminder, error)
|
||||
func (_m *PostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool, sanitizeOptions map[string]bool) (*model.PostList, error) {
|
||||
ret := _m.Called(options, allowFromCache, sanitizeOptions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPosts")
|
||||
}
|
||||
|
||||
var r0 *model.PostList
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.GetPostsOptions, bool, map[string]bool) (*model.PostList, error)); ok {
|
||||
@@ -643,10 +555,6 @@ func (_m *PostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool
|
||||
func (_m *PostStore) GetPostsAfter(options model.GetPostsOptions, sanitizeOptions map[string]bool) (*model.PostList, error) {
|
||||
ret := _m.Called(options, sanitizeOptions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPostsAfter")
|
||||
}
|
||||
|
||||
var r0 *model.PostList
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.GetPostsOptions, map[string]bool) (*model.PostList, error)); ok {
|
||||
@@ -673,10 +581,6 @@ func (_m *PostStore) GetPostsAfter(options model.GetPostsOptions, sanitizeOption
|
||||
func (_m *PostStore) GetPostsBatchForIndexing(startTime int64, startPostID string, limit int) ([]*model.PostForIndexing, error) {
|
||||
ret := _m.Called(startTime, startPostID, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPostsBatchForIndexing")
|
||||
}
|
||||
|
||||
var r0 []*model.PostForIndexing
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64, string, int) ([]*model.PostForIndexing, error)); ok {
|
||||
@@ -703,10 +607,6 @@ func (_m *PostStore) GetPostsBatchForIndexing(startTime int64, startPostID strin
|
||||
func (_m *PostStore) GetPostsBefore(options model.GetPostsOptions, sanitizeOptions map[string]bool) (*model.PostList, error) {
|
||||
ret := _m.Called(options, sanitizeOptions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPostsBefore")
|
||||
}
|
||||
|
||||
var r0 *model.PostList
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.GetPostsOptions, map[string]bool) (*model.PostList, error)); ok {
|
||||
@@ -733,10 +633,6 @@ func (_m *PostStore) GetPostsBefore(options model.GetPostsOptions, sanitizeOptio
|
||||
func (_m *PostStore) GetPostsByIds(postIds []string) ([]*model.Post, error) {
|
||||
ret := _m.Called(postIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPostsByIds")
|
||||
}
|
||||
|
||||
var r0 []*model.Post
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string) ([]*model.Post, error)); ok {
|
||||
@@ -763,10 +659,6 @@ func (_m *PostStore) GetPostsByIds(postIds []string) ([]*model.Post, error) {
|
||||
func (_m *PostStore) GetPostsByThread(threadID string, since int64) ([]*model.Post, error) {
|
||||
ret := _m.Called(threadID, since)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPostsByThread")
|
||||
}
|
||||
|
||||
var r0 []*model.Post
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) ([]*model.Post, error)); ok {
|
||||
@@ -793,10 +685,6 @@ func (_m *PostStore) GetPostsByThread(threadID string, since int64) ([]*model.Po
|
||||
func (_m *PostStore) GetPostsCreatedAt(channelID string, timestamp int64) ([]*model.Post, error) {
|
||||
ret := _m.Called(channelID, timestamp)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPostsCreatedAt")
|
||||
}
|
||||
|
||||
var r0 []*model.Post
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) ([]*model.Post, error)); ok {
|
||||
@@ -823,10 +711,6 @@ func (_m *PostStore) GetPostsCreatedAt(channelID string, timestamp int64) ([]*mo
|
||||
func (_m *PostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool, sanitizeOptions map[string]bool) (*model.PostList, error) {
|
||||
ret := _m.Called(options, allowFromCache, sanitizeOptions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPostsSince")
|
||||
}
|
||||
|
||||
var r0 *model.PostList
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.GetPostsSinceOptions, bool, map[string]bool) (*model.PostList, error)); ok {
|
||||
@@ -853,10 +737,6 @@ func (_m *PostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFrom
|
||||
func (_m *PostStore) GetPostsSinceForSync(options model.GetPostsSinceForSyncOptions, cursor model.GetPostsSinceForSyncCursor, limit int) ([]*model.Post, model.GetPostsSinceForSyncCursor, error) {
|
||||
ret := _m.Called(options, cursor, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPostsSinceForSync")
|
||||
}
|
||||
|
||||
var r0 []*model.Post
|
||||
var r1 model.GetPostsSinceForSyncCursor
|
||||
var r2 error
|
||||
@@ -890,10 +770,6 @@ func (_m *PostStore) GetPostsSinceForSync(options model.GetPostsSinceForSyncOpti
|
||||
func (_m *PostStore) GetRepliesForExport(parentID string) ([]*model.ReplyForExport, error) {
|
||||
ret := _m.Called(parentID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetRepliesForExport")
|
||||
}
|
||||
|
||||
var r0 []*model.ReplyForExport
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.ReplyForExport, error)); ok {
|
||||
@@ -920,10 +796,6 @@ func (_m *PostStore) GetRepliesForExport(parentID string) ([]*model.ReplyForExpo
|
||||
func (_m *PostStore) GetSingle(id string, inclDeleted bool) (*model.Post, error) {
|
||||
ret := _m.Called(id, inclDeleted)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetSingle")
|
||||
}
|
||||
|
||||
var r0 *model.Post
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) (*model.Post, error)); ok {
|
||||
@@ -950,10 +822,6 @@ func (_m *PostStore) GetSingle(id string, inclDeleted bool) (*model.Post, error)
|
||||
func (_m *PostStore) HasAutoResponsePostByUserSince(options model.GetPostsSinceOptions, userId string) (bool, error) {
|
||||
ret := _m.Called(options, userId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for HasAutoResponsePostByUserSince")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.GetPostsSinceOptions, string) (bool, error)); ok {
|
||||
@@ -983,10 +851,6 @@ func (_m *PostStore) InvalidateLastPostTimeCache(channelID string) {
|
||||
func (_m *PostStore) Overwrite(rctx request.CTX, post *model.Post) (*model.Post, error) {
|
||||
ret := _m.Called(rctx, post)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Overwrite")
|
||||
}
|
||||
|
||||
var r0 *model.Post
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, *model.Post) (*model.Post, error)); ok {
|
||||
@@ -1013,10 +877,6 @@ func (_m *PostStore) Overwrite(rctx request.CTX, post *model.Post) (*model.Post,
|
||||
func (_m *PostStore) OverwriteMultiple(posts []*model.Post) ([]*model.Post, int, error) {
|
||||
ret := _m.Called(posts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for OverwriteMultiple")
|
||||
}
|
||||
|
||||
var r0 []*model.Post
|
||||
var r1 int
|
||||
var r2 error
|
||||
@@ -1050,10 +910,6 @@ func (_m *PostStore) OverwriteMultiple(posts []*model.Post) ([]*model.Post, int,
|
||||
func (_m *PostStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error) {
|
||||
ret := _m.Called(endTime, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteBatch")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64, int64) (int64, error)); ok {
|
||||
@@ -1078,10 +934,6 @@ func (_m *PostStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, er
|
||||
func (_m *PostStore) PermanentDeleteBatchForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, cursor model.RetentionPolicyCursor) (int64, model.RetentionPolicyCursor, error) {
|
||||
ret := _m.Called(now, globalPolicyEndTime, limit, cursor)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteBatchForRetentionPolicies")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 model.RetentionPolicyCursor
|
||||
var r2 error
|
||||
@@ -1113,10 +965,6 @@ func (_m *PostStore) PermanentDeleteBatchForRetentionPolicies(now int64, globalP
|
||||
func (_m *PostStore) PermanentDeleteByChannel(rctx request.CTX, channelID string) error {
|
||||
ret := _m.Called(rctx, channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteByChannel")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) error); ok {
|
||||
r0 = rf(rctx, channelID)
|
||||
@@ -1131,10 +979,6 @@ func (_m *PostStore) PermanentDeleteByChannel(rctx request.CTX, channelID string
|
||||
func (_m *PostStore) PermanentDeleteByUser(rctx request.CTX, userID string) error {
|
||||
ret := _m.Called(rctx, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteByUser")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) error); ok {
|
||||
r0 = rf(rctx, userID)
|
||||
@@ -1149,10 +993,6 @@ func (_m *PostStore) PermanentDeleteByUser(rctx request.CTX, userID string) erro
|
||||
func (_m *PostStore) Save(rctx request.CTX, post *model.Post) (*model.Post, error) {
|
||||
ret := _m.Called(rctx, post)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.Post
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, *model.Post) (*model.Post, error)); ok {
|
||||
@@ -1179,10 +1019,6 @@ func (_m *PostStore) Save(rctx request.CTX, post *model.Post) (*model.Post, erro
|
||||
func (_m *PostStore) SaveMultiple(posts []*model.Post) ([]*model.Post, int, error) {
|
||||
ret := _m.Called(posts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveMultiple")
|
||||
}
|
||||
|
||||
var r0 []*model.Post
|
||||
var r1 int
|
||||
var r2 error
|
||||
@@ -1216,10 +1052,6 @@ func (_m *PostStore) SaveMultiple(posts []*model.Post) ([]*model.Post, int, erro
|
||||
func (_m *PostStore) Search(teamID string, userID string, params *model.SearchParams) (*model.PostList, error) {
|
||||
ret := _m.Called(teamID, userID, params)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Search")
|
||||
}
|
||||
|
||||
var r0 *model.PostList
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, *model.SearchParams) (*model.PostList, error)); ok {
|
||||
@@ -1246,10 +1078,6 @@ func (_m *PostStore) Search(teamID string, userID string, params *model.SearchPa
|
||||
func (_m *PostStore) SearchPostsForUser(rctx request.CTX, paramsList []*model.SearchParams, userID string, teamID string, page int, perPage int) (*model.PostSearchResults, error) {
|
||||
ret := _m.Called(rctx, paramsList, userID, teamID, page, perPage)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SearchPostsForUser")
|
||||
}
|
||||
|
||||
var r0 *model.PostSearchResults
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, []*model.SearchParams, string, string, int, int) (*model.PostSearchResults, error)); ok {
|
||||
@@ -1276,10 +1104,6 @@ func (_m *PostStore) SearchPostsForUser(rctx request.CTX, paramsList []*model.Se
|
||||
func (_m *PostStore) SetPostReminder(reminder *model.PostReminder) error {
|
||||
ret := _m.Called(reminder)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SetPostReminder")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.PostReminder) error); ok {
|
||||
r0 = rf(reminder)
|
||||
@@ -1294,10 +1118,6 @@ func (_m *PostStore) SetPostReminder(reminder *model.PostReminder) error {
|
||||
func (_m *PostStore) Update(rctx request.CTX, newPost *model.Post, oldPost *model.Post) (*model.Post, error) {
|
||||
ret := _m.Called(rctx, newPost, oldPost)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
}
|
||||
|
||||
var r0 *model.Post
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, *model.Post, *model.Post) (*model.Post, error)); ok {
|
||||
@@ -1320,12 +1140,13 @@ func (_m *PostStore) Update(rctx request.CTX, newPost *model.Post, oldPost *mode
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewPostStore creates a new instance of PostStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewPostStore(t interface {
|
||||
type mockConstructorTestingTNewPostStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *PostStore {
|
||||
}
|
||||
|
||||
// NewPostStore creates a new instance of PostStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewPostStore(t mockConstructorTestingTNewPostStore) *PostStore {
|
||||
mock := &PostStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type PreferenceStore struct {
|
||||
func (_m *PreferenceStore) CleanupFlagsBatch(limit int64) (int64, error) {
|
||||
ret := _m.Called(limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CleanupFlagsBatch")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64) (int64, error)); ok {
|
||||
@@ -46,10 +42,6 @@ func (_m *PreferenceStore) CleanupFlagsBatch(limit int64) (int64, error) {
|
||||
func (_m *PreferenceStore) Delete(userID string, category string, name string) error {
|
||||
ret := _m.Called(userID, category, name)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
|
||||
r0 = rf(userID, category, name)
|
||||
@@ -64,10 +56,6 @@ func (_m *PreferenceStore) Delete(userID string, category string, name string) e
|
||||
func (_m *PreferenceStore) DeleteCategory(userID string, category string) error {
|
||||
ret := _m.Called(userID, category)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteCategory")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(userID, category)
|
||||
@@ -82,10 +70,6 @@ func (_m *PreferenceStore) DeleteCategory(userID string, category string) error
|
||||
func (_m *PreferenceStore) DeleteCategoryAndName(category string, name string) error {
|
||||
ret := _m.Called(category, name)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteCategoryAndName")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(category, name)
|
||||
@@ -100,10 +84,6 @@ func (_m *PreferenceStore) DeleteCategoryAndName(category string, name string) e
|
||||
func (_m *PreferenceStore) DeleteOrphanedRows(limit int) (int64, error) {
|
||||
ret := _m.Called(limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteOrphanedRows")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int) (int64, error)); ok {
|
||||
@@ -128,10 +108,6 @@ func (_m *PreferenceStore) DeleteOrphanedRows(limit int) (int64, error) {
|
||||
func (_m *PreferenceStore) Get(userID string, category string, name string) (*model.Preference, error) {
|
||||
ret := _m.Called(userID, category, name)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.Preference
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) (*model.Preference, error)); ok {
|
||||
@@ -158,10 +134,6 @@ func (_m *PreferenceStore) Get(userID string, category string, name string) (*mo
|
||||
func (_m *PreferenceStore) GetAll(userID string) (model.Preferences, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAll")
|
||||
}
|
||||
|
||||
var r0 model.Preferences
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (model.Preferences, error)); ok {
|
||||
@@ -188,10 +160,6 @@ func (_m *PreferenceStore) GetAll(userID string) (model.Preferences, error) {
|
||||
func (_m *PreferenceStore) GetCategory(userID string, category string) (model.Preferences, error) {
|
||||
ret := _m.Called(userID, category)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetCategory")
|
||||
}
|
||||
|
||||
var r0 model.Preferences
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (model.Preferences, error)); ok {
|
||||
@@ -218,10 +186,6 @@ func (_m *PreferenceStore) GetCategory(userID string, category string) (model.Pr
|
||||
func (_m *PreferenceStore) GetCategoryAndName(category string, nane string) (model.Preferences, error) {
|
||||
ret := _m.Called(category, nane)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetCategoryAndName")
|
||||
}
|
||||
|
||||
var r0 model.Preferences
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (model.Preferences, error)); ok {
|
||||
@@ -248,10 +212,6 @@ func (_m *PreferenceStore) GetCategoryAndName(category string, nane string) (mod
|
||||
func (_m *PreferenceStore) PermanentDeleteByUser(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteByUser")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userID)
|
||||
@@ -266,10 +226,6 @@ func (_m *PreferenceStore) PermanentDeleteByUser(userID string) error {
|
||||
func (_m *PreferenceStore) Save(preferences model.Preferences) error {
|
||||
ret := _m.Called(preferences)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(model.Preferences) error); ok {
|
||||
r0 = rf(preferences)
|
||||
@@ -280,12 +236,13 @@ func (_m *PreferenceStore) Save(preferences model.Preferences) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewPreferenceStore creates a new instance of PreferenceStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewPreferenceStore(t interface {
|
||||
type mockConstructorTestingTNewPreferenceStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *PreferenceStore {
|
||||
}
|
||||
|
||||
// NewPreferenceStore creates a new instance of PreferenceStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewPreferenceStore(t mockConstructorTestingTNewPreferenceStore) *PreferenceStore {
|
||||
mock := &PreferenceStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type ProductNoticesStore struct {
|
||||
func (_m *ProductNoticesStore) Clear(notices []string) error {
|
||||
ret := _m.Called(notices)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Clear")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func([]string) error); ok {
|
||||
r0 = rf(notices)
|
||||
@@ -36,10 +32,6 @@ func (_m *ProductNoticesStore) Clear(notices []string) error {
|
||||
func (_m *ProductNoticesStore) ClearOldNotices(currentNotices model.ProductNotices) error {
|
||||
ret := _m.Called(currentNotices)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ClearOldNotices")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(model.ProductNotices) error); ok {
|
||||
r0 = rf(currentNotices)
|
||||
@@ -54,10 +46,6 @@ func (_m *ProductNoticesStore) ClearOldNotices(currentNotices model.ProductNotic
|
||||
func (_m *ProductNoticesStore) GetViews(userID string) ([]model.ProductNoticeViewState, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetViews")
|
||||
}
|
||||
|
||||
var r0 []model.ProductNoticeViewState
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]model.ProductNoticeViewState, error)); ok {
|
||||
@@ -84,10 +72,6 @@ func (_m *ProductNoticesStore) GetViews(userID string) ([]model.ProductNoticeVie
|
||||
func (_m *ProductNoticesStore) View(userID string, notices []string) error {
|
||||
ret := _m.Called(userID, notices)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for View")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) error); ok {
|
||||
r0 = rf(userID, notices)
|
||||
@@ -98,12 +82,13 @@ func (_m *ProductNoticesStore) View(userID string, notices []string) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewProductNoticesStore creates a new instance of ProductNoticesStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewProductNoticesStore(t interface {
|
||||
type mockConstructorTestingTNewProductNoticesStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *ProductNoticesStore {
|
||||
}
|
||||
|
||||
// NewProductNoticesStore creates a new instance of ProductNoticesStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewProductNoticesStore(t mockConstructorTestingTNewProductNoticesStore) *ProductNoticesStore {
|
||||
mock := &ProductNoticesStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type ReactionStore struct {
|
||||
func (_m *ReactionStore) BulkGetForPosts(postIds []string) ([]*model.Reaction, error) {
|
||||
ret := _m.Called(postIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for BulkGetForPosts")
|
||||
}
|
||||
|
||||
var r0 []*model.Reaction
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string) ([]*model.Reaction, error)); ok {
|
||||
@@ -48,10 +44,6 @@ func (_m *ReactionStore) BulkGetForPosts(postIds []string) ([]*model.Reaction, e
|
||||
func (_m *ReactionStore) Delete(reaction *model.Reaction) (*model.Reaction, error) {
|
||||
ret := _m.Called(reaction)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 *model.Reaction
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Reaction) (*model.Reaction, error)); ok {
|
||||
@@ -78,10 +70,6 @@ func (_m *ReactionStore) Delete(reaction *model.Reaction) (*model.Reaction, erro
|
||||
func (_m *ReactionStore) DeleteAllWithEmojiName(emojiName string) error {
|
||||
ret := _m.Called(emojiName)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteAllWithEmojiName")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(emojiName)
|
||||
@@ -96,10 +84,6 @@ func (_m *ReactionStore) DeleteAllWithEmojiName(emojiName string) error {
|
||||
func (_m *ReactionStore) DeleteOrphanedRowsByIds(r *model.RetentionIdsForDeletion) error {
|
||||
ret := _m.Called(r)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteOrphanedRowsByIds")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.RetentionIdsForDeletion) error); ok {
|
||||
r0 = rf(r)
|
||||
@@ -114,10 +98,6 @@ func (_m *ReactionStore) DeleteOrphanedRowsByIds(r *model.RetentionIdsForDeletio
|
||||
func (_m *ReactionStore) ExistsOnPost(postId string, emojiName string) (bool, error) {
|
||||
ret := _m.Called(postId, emojiName)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ExistsOnPost")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (bool, error)); ok {
|
||||
@@ -142,10 +122,6 @@ func (_m *ReactionStore) ExistsOnPost(postId string, emojiName string) (bool, er
|
||||
func (_m *ReactionStore) GetForPost(postID string, allowFromCache bool) ([]*model.Reaction, error) {
|
||||
ret := _m.Called(postID, allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetForPost")
|
||||
}
|
||||
|
||||
var r0 []*model.Reaction
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) ([]*model.Reaction, error)); ok {
|
||||
@@ -172,10 +148,6 @@ func (_m *ReactionStore) GetForPost(postID string, allowFromCache bool) ([]*mode
|
||||
func (_m *ReactionStore) GetForPostSince(postId string, since int64, excludeRemoteId string, inclDeleted bool) ([]*model.Reaction, error) {
|
||||
ret := _m.Called(postId, since, excludeRemoteId, inclDeleted)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetForPostSince")
|
||||
}
|
||||
|
||||
var r0 []*model.Reaction
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64, string, bool) ([]*model.Reaction, error)); ok {
|
||||
@@ -202,10 +174,6 @@ func (_m *ReactionStore) GetForPostSince(postId string, since int64, excludeRemo
|
||||
func (_m *ReactionStore) GetUniqueCountForPost(postId string) (int, error) {
|
||||
ret := _m.Called(postId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUniqueCountForPost")
|
||||
}
|
||||
|
||||
var r0 int
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int, error)); ok {
|
||||
@@ -230,10 +198,6 @@ func (_m *ReactionStore) GetUniqueCountForPost(postId string) (int, error) {
|
||||
func (_m *ReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error) {
|
||||
ret := _m.Called(endTime, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteBatch")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64, int64) (int64, error)); ok {
|
||||
@@ -258,10 +222,6 @@ func (_m *ReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64
|
||||
func (_m *ReactionStore) PermanentDeleteByUser(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteByUser")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userID)
|
||||
@@ -276,10 +236,6 @@ func (_m *ReactionStore) PermanentDeleteByUser(userID string) error {
|
||||
func (_m *ReactionStore) Save(reaction *model.Reaction) (*model.Reaction, error) {
|
||||
ret := _m.Called(reaction)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.Reaction
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Reaction) (*model.Reaction, error)); ok {
|
||||
@@ -302,12 +258,13 @@ func (_m *ReactionStore) Save(reaction *model.Reaction) (*model.Reaction, error)
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewReactionStore creates a new instance of ReactionStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewReactionStore(t interface {
|
||||
type mockConstructorTestingTNewReactionStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *ReactionStore {
|
||||
}
|
||||
|
||||
// NewReactionStore creates a new instance of ReactionStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewReactionStore(t mockConstructorTestingTNewReactionStore) *ReactionStore {
|
||||
mock := &ReactionStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type RemoteClusterStore struct {
|
||||
func (_m *RemoteClusterStore) Delete(remoteClusterId string) (bool, error) {
|
||||
ret := _m.Called(remoteClusterId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (bool, error)); ok {
|
||||
@@ -46,10 +42,6 @@ func (_m *RemoteClusterStore) Delete(remoteClusterId string) (bool, error) {
|
||||
func (_m *RemoteClusterStore) Get(remoteClusterId string) (*model.RemoteCluster, error) {
|
||||
ret := _m.Called(remoteClusterId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.RemoteCluster
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.RemoteCluster, error)); ok {
|
||||
@@ -76,10 +68,6 @@ func (_m *RemoteClusterStore) Get(remoteClusterId string) (*model.RemoteCluster,
|
||||
func (_m *RemoteClusterStore) GetAll(filter model.RemoteClusterQueryFilter) ([]*model.RemoteCluster, error) {
|
||||
ret := _m.Called(filter)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAll")
|
||||
}
|
||||
|
||||
var r0 []*model.RemoteCluster
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.RemoteClusterQueryFilter) ([]*model.RemoteCluster, error)); ok {
|
||||
@@ -106,10 +94,6 @@ func (_m *RemoteClusterStore) GetAll(filter model.RemoteClusterQueryFilter) ([]*
|
||||
func (_m *RemoteClusterStore) GetByPluginID(pluginID string) (*model.RemoteCluster, error) {
|
||||
ret := _m.Called(pluginID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByPluginID")
|
||||
}
|
||||
|
||||
var r0 *model.RemoteCluster
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.RemoteCluster, error)); ok {
|
||||
@@ -136,10 +120,6 @@ func (_m *RemoteClusterStore) GetByPluginID(pluginID string) (*model.RemoteClust
|
||||
func (_m *RemoteClusterStore) Save(rc *model.RemoteCluster) (*model.RemoteCluster, error) {
|
||||
ret := _m.Called(rc)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.RemoteCluster
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.RemoteCluster) (*model.RemoteCluster, error)); ok {
|
||||
@@ -166,10 +146,6 @@ func (_m *RemoteClusterStore) Save(rc *model.RemoteCluster) (*model.RemoteCluste
|
||||
func (_m *RemoteClusterStore) SetLastPingAt(remoteClusterId string) error {
|
||||
ret := _m.Called(remoteClusterId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SetLastPingAt")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(remoteClusterId)
|
||||
@@ -184,10 +160,6 @@ func (_m *RemoteClusterStore) SetLastPingAt(remoteClusterId string) error {
|
||||
func (_m *RemoteClusterStore) Update(rc *model.RemoteCluster) (*model.RemoteCluster, error) {
|
||||
ret := _m.Called(rc)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
}
|
||||
|
||||
var r0 *model.RemoteCluster
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.RemoteCluster) (*model.RemoteCluster, error)); ok {
|
||||
@@ -214,10 +186,6 @@ func (_m *RemoteClusterStore) Update(rc *model.RemoteCluster) (*model.RemoteClus
|
||||
func (_m *RemoteClusterStore) UpdateTopics(remoteClusterId string, topics string) (*model.RemoteCluster, error) {
|
||||
ret := _m.Called(remoteClusterId, topics)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateTopics")
|
||||
}
|
||||
|
||||
var r0 *model.RemoteCluster
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.RemoteCluster, error)); ok {
|
||||
@@ -240,12 +208,13 @@ func (_m *RemoteClusterStore) UpdateTopics(remoteClusterId string, topics string
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewRemoteClusterStore creates a new instance of RemoteClusterStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewRemoteClusterStore(t interface {
|
||||
type mockConstructorTestingTNewRemoteClusterStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *RemoteClusterStore {
|
||||
}
|
||||
|
||||
// NewRemoteClusterStore creates a new instance of RemoteClusterStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewRemoteClusterStore(t mockConstructorTestingTNewRemoteClusterStore) *RemoteClusterStore {
|
||||
mock := &RemoteClusterStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type RetentionPolicyStore struct {
|
||||
func (_m *RetentionPolicyStore) AddChannels(policyId string, channelIds []string) error {
|
||||
ret := _m.Called(policyId, channelIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AddChannels")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) error); ok {
|
||||
r0 = rf(policyId, channelIds)
|
||||
@@ -36,10 +32,6 @@ func (_m *RetentionPolicyStore) AddChannels(policyId string, channelIds []string
|
||||
func (_m *RetentionPolicyStore) AddTeams(policyId string, teamIds []string) error {
|
||||
ret := _m.Called(policyId, teamIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AddTeams")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) error); ok {
|
||||
r0 = rf(policyId, teamIds)
|
||||
@@ -54,10 +46,6 @@ func (_m *RetentionPolicyStore) AddTeams(policyId string, teamIds []string) erro
|
||||
func (_m *RetentionPolicyStore) Delete(id string) error {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(id)
|
||||
@@ -72,10 +60,6 @@ func (_m *RetentionPolicyStore) Delete(id string) error {
|
||||
func (_m *RetentionPolicyStore) DeleteOrphanedRows(limit int) (int64, error) {
|
||||
ret := _m.Called(limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteOrphanedRows")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int) (int64, error)); ok {
|
||||
@@ -100,10 +84,6 @@ func (_m *RetentionPolicyStore) DeleteOrphanedRows(limit int) (int64, error) {
|
||||
func (_m *RetentionPolicyStore) Get(id string) (*model.RetentionPolicyWithTeamAndChannelCounts, error) {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.RetentionPolicyWithTeamAndChannelCounts
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.RetentionPolicyWithTeamAndChannelCounts, error)); ok {
|
||||
@@ -130,10 +110,6 @@ func (_m *RetentionPolicyStore) Get(id string) (*model.RetentionPolicyWithTeamAn
|
||||
func (_m *RetentionPolicyStore) GetAll(offset int, limit int) ([]*model.RetentionPolicyWithTeamAndChannelCounts, error) {
|
||||
ret := _m.Called(offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAll")
|
||||
}
|
||||
|
||||
var r0 []*model.RetentionPolicyWithTeamAndChannelCounts
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, int) ([]*model.RetentionPolicyWithTeamAndChannelCounts, error)); ok {
|
||||
@@ -160,10 +136,6 @@ func (_m *RetentionPolicyStore) GetAll(offset int, limit int) ([]*model.Retentio
|
||||
func (_m *RetentionPolicyStore) GetChannelPoliciesCountForUser(userID string) (int64, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetChannelPoliciesCountForUser")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int64, error)); ok {
|
||||
@@ -188,10 +160,6 @@ func (_m *RetentionPolicyStore) GetChannelPoliciesCountForUser(userID string) (i
|
||||
func (_m *RetentionPolicyStore) GetChannelPoliciesForUser(userID string, offset int, limit int) ([]*model.RetentionPolicyForChannel, error) {
|
||||
ret := _m.Called(userID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetChannelPoliciesForUser")
|
||||
}
|
||||
|
||||
var r0 []*model.RetentionPolicyForChannel
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.RetentionPolicyForChannel, error)); ok {
|
||||
@@ -218,10 +186,6 @@ func (_m *RetentionPolicyStore) GetChannelPoliciesForUser(userID string, offset
|
||||
func (_m *RetentionPolicyStore) GetChannels(policyId string, offset int, limit int) (model.ChannelListWithTeamData, error) {
|
||||
ret := _m.Called(policyId, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetChannels")
|
||||
}
|
||||
|
||||
var r0 model.ChannelListWithTeamData
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) (model.ChannelListWithTeamData, error)); ok {
|
||||
@@ -248,10 +212,6 @@ func (_m *RetentionPolicyStore) GetChannels(policyId string, offset int, limit i
|
||||
func (_m *RetentionPolicyStore) GetChannelsCount(policyId string) (int64, error) {
|
||||
ret := _m.Called(policyId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetChannelsCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int64, error)); ok {
|
||||
@@ -276,10 +236,6 @@ func (_m *RetentionPolicyStore) GetChannelsCount(policyId string) (int64, error)
|
||||
func (_m *RetentionPolicyStore) GetCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -304,10 +260,6 @@ func (_m *RetentionPolicyStore) GetCount() (int64, error) {
|
||||
func (_m *RetentionPolicyStore) GetIdsForDeletionByTableName(tableName string, limit int) ([]*model.RetentionIdsForDeletion, error) {
|
||||
ret := _m.Called(tableName, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetIdsForDeletionByTableName")
|
||||
}
|
||||
|
||||
var r0 []*model.RetentionIdsForDeletion
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int) ([]*model.RetentionIdsForDeletion, error)); ok {
|
||||
@@ -334,10 +286,6 @@ func (_m *RetentionPolicyStore) GetIdsForDeletionByTableName(tableName string, l
|
||||
func (_m *RetentionPolicyStore) GetTeamPoliciesCountForUser(userID string) (int64, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTeamPoliciesCountForUser")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int64, error)); ok {
|
||||
@@ -362,10 +310,6 @@ func (_m *RetentionPolicyStore) GetTeamPoliciesCountForUser(userID string) (int6
|
||||
func (_m *RetentionPolicyStore) GetTeamPoliciesForUser(userID string, offset int, limit int) ([]*model.RetentionPolicyForTeam, error) {
|
||||
ret := _m.Called(userID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTeamPoliciesForUser")
|
||||
}
|
||||
|
||||
var r0 []*model.RetentionPolicyForTeam
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.RetentionPolicyForTeam, error)); ok {
|
||||
@@ -392,10 +336,6 @@ func (_m *RetentionPolicyStore) GetTeamPoliciesForUser(userID string, offset int
|
||||
func (_m *RetentionPolicyStore) GetTeams(policyId string, offset int, limit int) ([]*model.Team, error) {
|
||||
ret := _m.Called(policyId, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTeams")
|
||||
}
|
||||
|
||||
var r0 []*model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.Team, error)); ok {
|
||||
@@ -422,10 +362,6 @@ func (_m *RetentionPolicyStore) GetTeams(policyId string, offset int, limit int)
|
||||
func (_m *RetentionPolicyStore) GetTeamsCount(policyId string) (int64, error) {
|
||||
ret := _m.Called(policyId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTeamsCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int64, error)); ok {
|
||||
@@ -450,10 +386,6 @@ func (_m *RetentionPolicyStore) GetTeamsCount(policyId string) (int64, error) {
|
||||
func (_m *RetentionPolicyStore) Patch(patch *model.RetentionPolicyWithTeamAndChannelIDs) (*model.RetentionPolicyWithTeamAndChannelCounts, error) {
|
||||
ret := _m.Called(patch)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Patch")
|
||||
}
|
||||
|
||||
var r0 *model.RetentionPolicyWithTeamAndChannelCounts
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.RetentionPolicyWithTeamAndChannelIDs) (*model.RetentionPolicyWithTeamAndChannelCounts, error)); ok {
|
||||
@@ -480,10 +412,6 @@ func (_m *RetentionPolicyStore) Patch(patch *model.RetentionPolicyWithTeamAndCha
|
||||
func (_m *RetentionPolicyStore) RemoveChannels(policyId string, channelIds []string) error {
|
||||
ret := _m.Called(policyId, channelIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveChannels")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) error); ok {
|
||||
r0 = rf(policyId, channelIds)
|
||||
@@ -498,10 +426,6 @@ func (_m *RetentionPolicyStore) RemoveChannels(policyId string, channelIds []str
|
||||
func (_m *RetentionPolicyStore) RemoveTeams(policyId string, teamIds []string) error {
|
||||
ret := _m.Called(policyId, teamIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveTeams")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) error); ok {
|
||||
r0 = rf(policyId, teamIds)
|
||||
@@ -516,10 +440,6 @@ func (_m *RetentionPolicyStore) RemoveTeams(policyId string, teamIds []string) e
|
||||
func (_m *RetentionPolicyStore) Save(policy *model.RetentionPolicyWithTeamAndChannelIDs) (*model.RetentionPolicyWithTeamAndChannelCounts, error) {
|
||||
ret := _m.Called(policy)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.RetentionPolicyWithTeamAndChannelCounts
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.RetentionPolicyWithTeamAndChannelIDs) (*model.RetentionPolicyWithTeamAndChannelCounts, error)); ok {
|
||||
@@ -542,12 +462,13 @@ func (_m *RetentionPolicyStore) Save(policy *model.RetentionPolicyWithTeamAndCha
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewRetentionPolicyStore creates a new instance of RetentionPolicyStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewRetentionPolicyStore(t interface {
|
||||
type mockConstructorTestingTNewRetentionPolicyStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *RetentionPolicyStore {
|
||||
}
|
||||
|
||||
// NewRetentionPolicyStore creates a new instance of RetentionPolicyStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewRetentionPolicyStore(t mockConstructorTestingTNewRetentionPolicyStore) *RetentionPolicyStore {
|
||||
mock := &RetentionPolicyStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -20,10 +20,6 @@ type RoleStore struct {
|
||||
func (_m *RoleStore) AllChannelSchemeRoles() ([]*model.Role, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AllChannelSchemeRoles")
|
||||
}
|
||||
|
||||
var r0 []*model.Role
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() ([]*model.Role, error)); ok {
|
||||
@@ -50,10 +46,6 @@ func (_m *RoleStore) AllChannelSchemeRoles() ([]*model.Role, error) {
|
||||
func (_m *RoleStore) ChannelHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, error) {
|
||||
ret := _m.Called(roleNames)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ChannelHigherScopedPermissions")
|
||||
}
|
||||
|
||||
var r0 map[string]*model.RolePermissions
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string) (map[string]*model.RolePermissions, error)); ok {
|
||||
@@ -80,10 +72,6 @@ func (_m *RoleStore) ChannelHigherScopedPermissions(roleNames []string) (map[str
|
||||
func (_m *RoleStore) ChannelRolesUnderTeamRole(roleName string) ([]*model.Role, error) {
|
||||
ret := _m.Called(roleName)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ChannelRolesUnderTeamRole")
|
||||
}
|
||||
|
||||
var r0 []*model.Role
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.Role, error)); ok {
|
||||
@@ -110,10 +98,6 @@ func (_m *RoleStore) ChannelRolesUnderTeamRole(roleName string) ([]*model.Role,
|
||||
func (_m *RoleStore) Delete(roleID string) (*model.Role, error) {
|
||||
ret := _m.Called(roleID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 *model.Role
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Role, error)); ok {
|
||||
@@ -140,10 +124,6 @@ func (_m *RoleStore) Delete(roleID string) (*model.Role, error) {
|
||||
func (_m *RoleStore) Get(roleID string) (*model.Role, error) {
|
||||
ret := _m.Called(roleID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.Role
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Role, error)); ok {
|
||||
@@ -170,10 +150,6 @@ func (_m *RoleStore) Get(roleID string) (*model.Role, error) {
|
||||
func (_m *RoleStore) GetAll() ([]*model.Role, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAll")
|
||||
}
|
||||
|
||||
var r0 []*model.Role
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() ([]*model.Role, error)); ok {
|
||||
@@ -200,10 +176,6 @@ func (_m *RoleStore) GetAll() ([]*model.Role, error) {
|
||||
func (_m *RoleStore) GetByName(ctx context.Context, name string) (*model.Role, error) {
|
||||
ret := _m.Called(ctx, name)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByName")
|
||||
}
|
||||
|
||||
var r0 *model.Role
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(context.Context, string) (*model.Role, error)); ok {
|
||||
@@ -230,10 +202,6 @@ func (_m *RoleStore) GetByName(ctx context.Context, name string) (*model.Role, e
|
||||
func (_m *RoleStore) GetByNames(names []string) ([]*model.Role, error) {
|
||||
ret := _m.Called(names)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByNames")
|
||||
}
|
||||
|
||||
var r0 []*model.Role
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string) ([]*model.Role, error)); ok {
|
||||
@@ -260,10 +228,6 @@ func (_m *RoleStore) GetByNames(names []string) ([]*model.Role, error) {
|
||||
func (_m *RoleStore) PermanentDeleteAll() error {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteAll")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func() error); ok {
|
||||
r0 = rf()
|
||||
@@ -278,10 +242,6 @@ func (_m *RoleStore) PermanentDeleteAll() error {
|
||||
func (_m *RoleStore) Save(role *model.Role) (*model.Role, error) {
|
||||
ret := _m.Called(role)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.Role
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Role) (*model.Role, error)); ok {
|
||||
@@ -304,12 +264,13 @@ func (_m *RoleStore) Save(role *model.Role) (*model.Role, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewRoleStore creates a new instance of RoleStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewRoleStore(t interface {
|
||||
type mockConstructorTestingTNewRoleStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *RoleStore {
|
||||
}
|
||||
|
||||
// NewRoleStore creates a new instance of RoleStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewRoleStore(t mockConstructorTestingTNewRoleStore) *RoleStore {
|
||||
mock := &RoleStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type SchemeStore struct {
|
||||
func (_m *SchemeStore) CountByScope(scope string) (int64, error) {
|
||||
ret := _m.Called(scope)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CountByScope")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int64, error)); ok {
|
||||
@@ -46,10 +42,6 @@ func (_m *SchemeStore) CountByScope(scope string) (int64, error) {
|
||||
func (_m *SchemeStore) CountWithoutPermission(scope string, permissionID string, roleScope model.RoleScope, roleType model.RoleType) (int64, error) {
|
||||
ret := _m.Called(scope, permissionID, roleScope, roleType)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CountWithoutPermission")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.RoleScope, model.RoleType) (int64, error)); ok {
|
||||
@@ -74,10 +66,6 @@ func (_m *SchemeStore) CountWithoutPermission(scope string, permissionID string,
|
||||
func (_m *SchemeStore) Delete(schemeID string) (*model.Scheme, error) {
|
||||
ret := _m.Called(schemeID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 *model.Scheme
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Scheme, error)); ok {
|
||||
@@ -104,10 +92,6 @@ func (_m *SchemeStore) Delete(schemeID string) (*model.Scheme, error) {
|
||||
func (_m *SchemeStore) Get(schemeID string) (*model.Scheme, error) {
|
||||
ret := _m.Called(schemeID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.Scheme
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Scheme, error)); ok {
|
||||
@@ -134,10 +118,6 @@ func (_m *SchemeStore) Get(schemeID string) (*model.Scheme, error) {
|
||||
func (_m *SchemeStore) GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, error) {
|
||||
ret := _m.Called(scope, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllPage")
|
||||
}
|
||||
|
||||
var r0 []*model.Scheme
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.Scheme, error)); ok {
|
||||
@@ -164,10 +144,6 @@ func (_m *SchemeStore) GetAllPage(scope string, offset int, limit int) ([]*model
|
||||
func (_m *SchemeStore) GetByName(schemeName string) (*model.Scheme, error) {
|
||||
ret := _m.Called(schemeName)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByName")
|
||||
}
|
||||
|
||||
var r0 *model.Scheme
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Scheme, error)); ok {
|
||||
@@ -194,10 +170,6 @@ func (_m *SchemeStore) GetByName(schemeName string) (*model.Scheme, error) {
|
||||
func (_m *SchemeStore) PermanentDeleteAll() error {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteAll")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func() error); ok {
|
||||
r0 = rf()
|
||||
@@ -212,10 +184,6 @@ func (_m *SchemeStore) PermanentDeleteAll() error {
|
||||
func (_m *SchemeStore) Save(scheme *model.Scheme) (*model.Scheme, error) {
|
||||
ret := _m.Called(scheme)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.Scheme
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Scheme) (*model.Scheme, error)); ok {
|
||||
@@ -238,12 +206,13 @@ func (_m *SchemeStore) Save(scheme *model.Scheme) (*model.Scheme, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewSchemeStore creates a new instance of SchemeStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewSchemeStore(t interface {
|
||||
type mockConstructorTestingTNewSchemeStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *SchemeStore {
|
||||
}
|
||||
|
||||
// NewSchemeStore creates a new instance of SchemeStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewSchemeStore(t mockConstructorTestingTNewSchemeStore) *SchemeStore {
|
||||
mock := &SchemeStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -19,10 +19,6 @@ type SessionStore struct {
|
||||
func (_m *SessionStore) AnalyticsSessionCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsSessionCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -47,10 +43,6 @@ func (_m *SessionStore) AnalyticsSessionCount() (int64, error) {
|
||||
func (_m *SessionStore) Cleanup(expiryTime int64, batchSize int64) error {
|
||||
ret := _m.Called(expiryTime, batchSize)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Cleanup")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(int64, int64) error); ok {
|
||||
r0 = rf(expiryTime, batchSize)
|
||||
@@ -65,10 +57,6 @@ func (_m *SessionStore) Cleanup(expiryTime int64, batchSize int64) error {
|
||||
func (_m *SessionStore) Get(c request.CTX, sessionIDOrToken string) (*model.Session, error) {
|
||||
ret := _m.Called(c, sessionIDOrToken)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.Session
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) (*model.Session, error)); ok {
|
||||
@@ -95,10 +83,6 @@ func (_m *SessionStore) Get(c request.CTX, sessionIDOrToken string) (*model.Sess
|
||||
func (_m *SessionStore) GetLRUSessions(c request.CTX, userID string, limit uint64, offset uint64) ([]*model.Session, error) {
|
||||
ret := _m.Called(c, userID, limit, offset)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetLRUSessions")
|
||||
}
|
||||
|
||||
var r0 []*model.Session
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, uint64, uint64) ([]*model.Session, error)); ok {
|
||||
@@ -125,10 +109,6 @@ func (_m *SessionStore) GetLRUSessions(c request.CTX, userID string, limit uint6
|
||||
func (_m *SessionStore) GetSessions(c request.CTX, userID string) ([]*model.Session, error) {
|
||||
ret := _m.Called(c, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetSessions")
|
||||
}
|
||||
|
||||
var r0 []*model.Session
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) ([]*model.Session, error)); ok {
|
||||
@@ -155,10 +135,6 @@ func (_m *SessionStore) GetSessions(c request.CTX, userID string) ([]*model.Sess
|
||||
func (_m *SessionStore) GetSessionsExpired(thresholdMillis int64, mobileOnly bool, unnotifiedOnly bool) ([]*model.Session, error) {
|
||||
ret := _m.Called(thresholdMillis, mobileOnly, unnotifiedOnly)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetSessionsExpired")
|
||||
}
|
||||
|
||||
var r0 []*model.Session
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64, bool, bool) ([]*model.Session, error)); ok {
|
||||
@@ -185,10 +161,6 @@ func (_m *SessionStore) GetSessionsExpired(thresholdMillis int64, mobileOnly boo
|
||||
func (_m *SessionStore) GetSessionsWithActiveDeviceIds(userID string) ([]*model.Session, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetSessionsWithActiveDeviceIds")
|
||||
}
|
||||
|
||||
var r0 []*model.Session
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.Session, error)); ok {
|
||||
@@ -215,10 +187,6 @@ func (_m *SessionStore) GetSessionsWithActiveDeviceIds(userID string) ([]*model.
|
||||
func (_m *SessionStore) PermanentDeleteSessionsByUser(teamID string) error {
|
||||
ret := _m.Called(teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteSessionsByUser")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(teamID)
|
||||
@@ -233,10 +201,6 @@ func (_m *SessionStore) PermanentDeleteSessionsByUser(teamID string) error {
|
||||
func (_m *SessionStore) Remove(sessionIDOrToken string) error {
|
||||
ret := _m.Called(sessionIDOrToken)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Remove")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(sessionIDOrToken)
|
||||
@@ -251,10 +215,6 @@ func (_m *SessionStore) Remove(sessionIDOrToken string) error {
|
||||
func (_m *SessionStore) RemoveAllSessions() error {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveAllSessions")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func() error); ok {
|
||||
r0 = rf()
|
||||
@@ -269,10 +229,6 @@ func (_m *SessionStore) RemoveAllSessions() error {
|
||||
func (_m *SessionStore) Save(c request.CTX, session *model.Session) (*model.Session, error) {
|
||||
ret := _m.Called(c, session)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.Session
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, *model.Session) (*model.Session, error)); ok {
|
||||
@@ -299,10 +255,6 @@ func (_m *SessionStore) Save(c request.CTX, session *model.Session) (*model.Sess
|
||||
func (_m *SessionStore) UpdateDeviceId(id string, deviceID string, expiresAt int64) (string, error) {
|
||||
ret := _m.Called(id, deviceID, expiresAt)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateDeviceId")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, int64) (string, error)); ok {
|
||||
@@ -327,10 +279,6 @@ func (_m *SessionStore) UpdateDeviceId(id string, deviceID string, expiresAt int
|
||||
func (_m *SessionStore) UpdateExpiredNotify(sessionid string, notified bool) error {
|
||||
ret := _m.Called(sessionid, notified)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateExpiredNotify")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) error); ok {
|
||||
r0 = rf(sessionid, notified)
|
||||
@@ -345,10 +293,6 @@ func (_m *SessionStore) UpdateExpiredNotify(sessionid string, notified bool) err
|
||||
func (_m *SessionStore) UpdateExpiresAt(sessionID string, timestamp int64) error {
|
||||
ret := _m.Called(sessionID, timestamp)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateExpiresAt")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) error); ok {
|
||||
r0 = rf(sessionID, timestamp)
|
||||
@@ -363,10 +307,6 @@ func (_m *SessionStore) UpdateExpiresAt(sessionID string, timestamp int64) error
|
||||
func (_m *SessionStore) UpdateLastActivityAt(sessionID string, timestamp int64) error {
|
||||
ret := _m.Called(sessionID, timestamp)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateLastActivityAt")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) error); ok {
|
||||
r0 = rf(sessionID, timestamp)
|
||||
@@ -381,10 +321,6 @@ func (_m *SessionStore) UpdateLastActivityAt(sessionID string, timestamp int64)
|
||||
func (_m *SessionStore) UpdateProps(session *model.Session) error {
|
||||
ret := _m.Called(session)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateProps")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Session) error); ok {
|
||||
r0 = rf(session)
|
||||
@@ -399,10 +335,6 @@ func (_m *SessionStore) UpdateProps(session *model.Session) error {
|
||||
func (_m *SessionStore) UpdateRoles(userID string, roles string) (string, error) {
|
||||
ret := _m.Called(userID, roles)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateRoles")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (string, error)); ok {
|
||||
@@ -423,12 +355,13 @@ func (_m *SessionStore) UpdateRoles(userID string, roles string) (string, error)
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewSessionStore creates a new instance of SessionStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewSessionStore(t interface {
|
||||
type mockConstructorTestingTNewSessionStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *SessionStore {
|
||||
}
|
||||
|
||||
// NewSessionStore creates a new instance of SessionStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewSessionStore(t mockConstructorTestingTNewSessionStore) *SessionStore {
|
||||
mock := &SessionStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type SharedChannelStore struct {
|
||||
func (_m *SharedChannelStore) Delete(channelId string) (bool, error) {
|
||||
ret := _m.Called(channelId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (bool, error)); ok {
|
||||
@@ -46,10 +42,6 @@ func (_m *SharedChannelStore) Delete(channelId string) (bool, error) {
|
||||
func (_m *SharedChannelStore) DeleteRemote(remoteId string) (bool, error) {
|
||||
ret := _m.Called(remoteId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteRemote")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (bool, error)); ok {
|
||||
@@ -74,10 +66,6 @@ func (_m *SharedChannelStore) DeleteRemote(remoteId string) (bool, error) {
|
||||
func (_m *SharedChannelStore) Get(channelId string) (*model.SharedChannel, error) {
|
||||
ret := _m.Called(channelId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.SharedChannel
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.SharedChannel, error)); ok {
|
||||
@@ -104,10 +92,6 @@ func (_m *SharedChannelStore) Get(channelId string) (*model.SharedChannel, error
|
||||
func (_m *SharedChannelStore) GetAll(offset int, limit int, opts model.SharedChannelFilterOpts) ([]*model.SharedChannel, error) {
|
||||
ret := _m.Called(offset, limit, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAll")
|
||||
}
|
||||
|
||||
var r0 []*model.SharedChannel
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, int, model.SharedChannelFilterOpts) ([]*model.SharedChannel, error)); ok {
|
||||
@@ -134,10 +118,6 @@ func (_m *SharedChannelStore) GetAll(offset int, limit int, opts model.SharedCha
|
||||
func (_m *SharedChannelStore) GetAllCount(opts model.SharedChannelFilterOpts) (int64, error) {
|
||||
ret := _m.Called(opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.SharedChannelFilterOpts) (int64, error)); ok {
|
||||
@@ -162,10 +142,6 @@ func (_m *SharedChannelStore) GetAllCount(opts model.SharedChannelFilterOpts) (i
|
||||
func (_m *SharedChannelStore) GetAttachment(fileId string, remoteId string) (*model.SharedChannelAttachment, error) {
|
||||
ret := _m.Called(fileId, remoteId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAttachment")
|
||||
}
|
||||
|
||||
var r0 *model.SharedChannelAttachment
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.SharedChannelAttachment, error)); ok {
|
||||
@@ -192,10 +168,6 @@ func (_m *SharedChannelStore) GetAttachment(fileId string, remoteId string) (*mo
|
||||
func (_m *SharedChannelStore) GetRemote(id string) (*model.SharedChannelRemote, error) {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetRemote")
|
||||
}
|
||||
|
||||
var r0 *model.SharedChannelRemote
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.SharedChannelRemote, error)); ok {
|
||||
@@ -222,10 +194,6 @@ func (_m *SharedChannelStore) GetRemote(id string) (*model.SharedChannelRemote,
|
||||
func (_m *SharedChannelStore) GetRemoteByIds(channelId string, remoteId string) (*model.SharedChannelRemote, error) {
|
||||
ret := _m.Called(channelId, remoteId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetRemoteByIds")
|
||||
}
|
||||
|
||||
var r0 *model.SharedChannelRemote
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.SharedChannelRemote, error)); ok {
|
||||
@@ -252,10 +220,6 @@ func (_m *SharedChannelStore) GetRemoteByIds(channelId string, remoteId string)
|
||||
func (_m *SharedChannelStore) GetRemoteForUser(remoteId string, userId string) (*model.RemoteCluster, error) {
|
||||
ret := _m.Called(remoteId, userId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetRemoteForUser")
|
||||
}
|
||||
|
||||
var r0 *model.RemoteCluster
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.RemoteCluster, error)); ok {
|
||||
@@ -282,10 +246,6 @@ func (_m *SharedChannelStore) GetRemoteForUser(remoteId string, userId string) (
|
||||
func (_m *SharedChannelStore) GetRemotes(opts model.SharedChannelRemoteFilterOpts) ([]*model.SharedChannelRemote, error) {
|
||||
ret := _m.Called(opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetRemotes")
|
||||
}
|
||||
|
||||
var r0 []*model.SharedChannelRemote
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.SharedChannelRemoteFilterOpts) ([]*model.SharedChannelRemote, error)); ok {
|
||||
@@ -312,10 +272,6 @@ func (_m *SharedChannelStore) GetRemotes(opts model.SharedChannelRemoteFilterOpt
|
||||
func (_m *SharedChannelStore) GetRemotesStatus(channelId string) ([]*model.SharedChannelRemoteStatus, error) {
|
||||
ret := _m.Called(channelId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetRemotesStatus")
|
||||
}
|
||||
|
||||
var r0 []*model.SharedChannelRemoteStatus
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.SharedChannelRemoteStatus, error)); ok {
|
||||
@@ -342,10 +298,6 @@ func (_m *SharedChannelStore) GetRemotesStatus(channelId string) ([]*model.Share
|
||||
func (_m *SharedChannelStore) GetSingleUser(userID string, channelID string, remoteID string) (*model.SharedChannelUser, error) {
|
||||
ret := _m.Called(userID, channelID, remoteID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetSingleUser")
|
||||
}
|
||||
|
||||
var r0 *model.SharedChannelUser
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) (*model.SharedChannelUser, error)); ok {
|
||||
@@ -372,10 +324,6 @@ func (_m *SharedChannelStore) GetSingleUser(userID string, channelID string, rem
|
||||
func (_m *SharedChannelStore) GetUsersForSync(filter model.GetUsersForSyncFilter) ([]*model.User, error) {
|
||||
ret := _m.Called(filter)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUsersForSync")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.GetUsersForSyncFilter) ([]*model.User, error)); ok {
|
||||
@@ -402,10 +350,6 @@ func (_m *SharedChannelStore) GetUsersForSync(filter model.GetUsersForSyncFilter
|
||||
func (_m *SharedChannelStore) GetUsersForUser(userID string) ([]*model.SharedChannelUser, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUsersForUser")
|
||||
}
|
||||
|
||||
var r0 []*model.SharedChannelUser
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.SharedChannelUser, error)); ok {
|
||||
@@ -432,10 +376,6 @@ func (_m *SharedChannelStore) GetUsersForUser(userID string) ([]*model.SharedCha
|
||||
func (_m *SharedChannelStore) HasChannel(channelID string) (bool, error) {
|
||||
ret := _m.Called(channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for HasChannel")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (bool, error)); ok {
|
||||
@@ -460,10 +400,6 @@ func (_m *SharedChannelStore) HasChannel(channelID string) (bool, error) {
|
||||
func (_m *SharedChannelStore) HasRemote(channelID string, remoteId string) (bool, error) {
|
||||
ret := _m.Called(channelID, remoteId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for HasRemote")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (bool, error)); ok {
|
||||
@@ -488,10 +424,6 @@ func (_m *SharedChannelStore) HasRemote(channelID string, remoteId string) (bool
|
||||
func (_m *SharedChannelStore) Save(sc *model.SharedChannel) (*model.SharedChannel, error) {
|
||||
ret := _m.Called(sc)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.SharedChannel
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.SharedChannel) (*model.SharedChannel, error)); ok {
|
||||
@@ -518,10 +450,6 @@ func (_m *SharedChannelStore) Save(sc *model.SharedChannel) (*model.SharedChanne
|
||||
func (_m *SharedChannelStore) SaveAttachment(remote *model.SharedChannelAttachment) (*model.SharedChannelAttachment, error) {
|
||||
ret := _m.Called(remote)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveAttachment")
|
||||
}
|
||||
|
||||
var r0 *model.SharedChannelAttachment
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.SharedChannelAttachment) (*model.SharedChannelAttachment, error)); ok {
|
||||
@@ -548,10 +476,6 @@ func (_m *SharedChannelStore) SaveAttachment(remote *model.SharedChannelAttachme
|
||||
func (_m *SharedChannelStore) SaveRemote(remote *model.SharedChannelRemote) (*model.SharedChannelRemote, error) {
|
||||
ret := _m.Called(remote)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveRemote")
|
||||
}
|
||||
|
||||
var r0 *model.SharedChannelRemote
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.SharedChannelRemote) (*model.SharedChannelRemote, error)); ok {
|
||||
@@ -578,10 +502,6 @@ func (_m *SharedChannelStore) SaveRemote(remote *model.SharedChannelRemote) (*mo
|
||||
func (_m *SharedChannelStore) SaveUser(remote *model.SharedChannelUser) (*model.SharedChannelUser, error) {
|
||||
ret := _m.Called(remote)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveUser")
|
||||
}
|
||||
|
||||
var r0 *model.SharedChannelUser
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.SharedChannelUser) (*model.SharedChannelUser, error)); ok {
|
||||
@@ -608,10 +528,6 @@ func (_m *SharedChannelStore) SaveUser(remote *model.SharedChannelUser) (*model.
|
||||
func (_m *SharedChannelStore) Update(sc *model.SharedChannel) (*model.SharedChannel, error) {
|
||||
ret := _m.Called(sc)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
}
|
||||
|
||||
var r0 *model.SharedChannel
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.SharedChannel) (*model.SharedChannel, error)); ok {
|
||||
@@ -638,10 +554,6 @@ func (_m *SharedChannelStore) Update(sc *model.SharedChannel) (*model.SharedChan
|
||||
func (_m *SharedChannelStore) UpdateAttachmentLastSyncAt(id string, syncTime int64) error {
|
||||
ret := _m.Called(id, syncTime)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateAttachmentLastSyncAt")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) error); ok {
|
||||
r0 = rf(id, syncTime)
|
||||
@@ -656,10 +568,6 @@ func (_m *SharedChannelStore) UpdateAttachmentLastSyncAt(id string, syncTime int
|
||||
func (_m *SharedChannelStore) UpdateRemote(remote *model.SharedChannelRemote) (*model.SharedChannelRemote, error) {
|
||||
ret := _m.Called(remote)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateRemote")
|
||||
}
|
||||
|
||||
var r0 *model.SharedChannelRemote
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.SharedChannelRemote) (*model.SharedChannelRemote, error)); ok {
|
||||
@@ -686,10 +594,6 @@ func (_m *SharedChannelStore) UpdateRemote(remote *model.SharedChannelRemote) (*
|
||||
func (_m *SharedChannelStore) UpdateRemoteCursor(id string, cursor model.GetPostsSinceForSyncCursor) error {
|
||||
ret := _m.Called(id, cursor)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateRemoteCursor")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, model.GetPostsSinceForSyncCursor) error); ok {
|
||||
r0 = rf(id, cursor)
|
||||
@@ -704,10 +608,6 @@ func (_m *SharedChannelStore) UpdateRemoteCursor(id string, cursor model.GetPost
|
||||
func (_m *SharedChannelStore) UpdateUserLastSyncAt(userID string, channelID string, remoteID string) error {
|
||||
ret := _m.Called(userID, channelID, remoteID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateUserLastSyncAt")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
|
||||
r0 = rf(userID, channelID, remoteID)
|
||||
@@ -722,10 +622,6 @@ func (_m *SharedChannelStore) UpdateUserLastSyncAt(userID string, channelID stri
|
||||
func (_m *SharedChannelStore) UpsertAttachment(remote *model.SharedChannelAttachment) (string, error) {
|
||||
ret := _m.Called(remote)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpsertAttachment")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.SharedChannelAttachment) (string, error)); ok {
|
||||
@@ -746,12 +642,13 @@ func (_m *SharedChannelStore) UpsertAttachment(remote *model.SharedChannelAttach
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewSharedChannelStore creates a new instance of SharedChannelStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewSharedChannelStore(t interface {
|
||||
type mockConstructorTestingTNewSharedChannelStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *SharedChannelStore {
|
||||
}
|
||||
|
||||
// NewSharedChannelStore creates a new instance of SharedChannelStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewSharedChannelStore(t mockConstructorTestingTNewSharedChannelStore) *SharedChannelStore {
|
||||
mock := &SharedChannelStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type StatusStore struct {
|
||||
func (_m *StatusStore) Get(userID string) (*model.Status, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.Status
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Status, error)); ok {
|
||||
@@ -48,10 +44,6 @@ func (_m *StatusStore) Get(userID string) (*model.Status, error) {
|
||||
func (_m *StatusStore) GetByIds(userIds []string) ([]*model.Status, error) {
|
||||
ret := _m.Called(userIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByIds")
|
||||
}
|
||||
|
||||
var r0 []*model.Status
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string) ([]*model.Status, error)); ok {
|
||||
@@ -78,10 +70,6 @@ func (_m *StatusStore) GetByIds(userIds []string) ([]*model.Status, error) {
|
||||
func (_m *StatusStore) GetTotalActiveUsersCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTotalActiveUsersCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -106,10 +94,6 @@ func (_m *StatusStore) GetTotalActiveUsersCount() (int64, error) {
|
||||
func (_m *StatusStore) ResetAll() error {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ResetAll")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func() error); ok {
|
||||
r0 = rf()
|
||||
@@ -124,10 +108,6 @@ func (_m *StatusStore) ResetAll() error {
|
||||
func (_m *StatusStore) SaveOrUpdate(status *model.Status) error {
|
||||
ret := _m.Called(status)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveOrUpdate")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Status) error); ok {
|
||||
r0 = rf(status)
|
||||
@@ -142,10 +122,6 @@ func (_m *StatusStore) SaveOrUpdate(status *model.Status) error {
|
||||
func (_m *StatusStore) UpdateExpiredDNDStatuses() ([]*model.Status, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateExpiredDNDStatuses")
|
||||
}
|
||||
|
||||
var r0 []*model.Status
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() ([]*model.Status, error)); ok {
|
||||
@@ -172,10 +148,6 @@ func (_m *StatusStore) UpdateExpiredDNDStatuses() ([]*model.Status, error) {
|
||||
func (_m *StatusStore) UpdateLastActivityAt(userID string, lastActivityAt int64) error {
|
||||
ret := _m.Called(userID, lastActivityAt)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateLastActivityAt")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) error); ok {
|
||||
r0 = rf(userID, lastActivityAt)
|
||||
@@ -186,12 +158,13 @@ func (_m *StatusStore) UpdateLastActivityAt(userID string, lastActivityAt int64)
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewStatusStore creates a new instance of StatusStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewStatusStore(t interface {
|
||||
type mockConstructorTestingTNewStatusStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *StatusStore {
|
||||
}
|
||||
|
||||
// NewStatusStore creates a new instance of StatusStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewStatusStore(t mockConstructorTestingTNewStatusStore) *StatusStore {
|
||||
mock := &StatusStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -28,10 +28,6 @@ type Store struct {
|
||||
func (_m *Store) Audit() store.AuditStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Audit")
|
||||
}
|
||||
|
||||
var r0 store.AuditStore
|
||||
if rf, ok := ret.Get(0).(func() store.AuditStore); ok {
|
||||
r0 = rf()
|
||||
@@ -48,10 +44,6 @@ func (_m *Store) Audit() store.AuditStore {
|
||||
func (_m *Store) Bot() store.BotStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Bot")
|
||||
}
|
||||
|
||||
var r0 store.BotStore
|
||||
if rf, ok := ret.Get(0).(func() store.BotStore); ok {
|
||||
r0 = rf()
|
||||
@@ -68,10 +60,6 @@ func (_m *Store) Bot() store.BotStore {
|
||||
func (_m *Store) Channel() store.ChannelStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Channel")
|
||||
}
|
||||
|
||||
var r0 store.ChannelStore
|
||||
if rf, ok := ret.Get(0).(func() store.ChannelStore); ok {
|
||||
r0 = rf()
|
||||
@@ -88,10 +76,6 @@ func (_m *Store) Channel() store.ChannelStore {
|
||||
func (_m *Store) ChannelBookmark() store.ChannelBookmarkStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ChannelBookmark")
|
||||
}
|
||||
|
||||
var r0 store.ChannelBookmarkStore
|
||||
if rf, ok := ret.Get(0).(func() store.ChannelBookmarkStore); ok {
|
||||
r0 = rf()
|
||||
@@ -108,10 +92,6 @@ func (_m *Store) ChannelBookmark() store.ChannelBookmarkStore {
|
||||
func (_m *Store) ChannelMemberHistory() store.ChannelMemberHistoryStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ChannelMemberHistory")
|
||||
}
|
||||
|
||||
var r0 store.ChannelMemberHistoryStore
|
||||
if rf, ok := ret.Get(0).(func() store.ChannelMemberHistoryStore); ok {
|
||||
r0 = rf()
|
||||
@@ -128,10 +108,6 @@ func (_m *Store) ChannelMemberHistory() store.ChannelMemberHistoryStore {
|
||||
func (_m *Store) CheckIntegrity() <-chan model.IntegrityCheckResult {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CheckIntegrity")
|
||||
}
|
||||
|
||||
var r0 <-chan model.IntegrityCheckResult
|
||||
if rf, ok := ret.Get(0).(func() <-chan model.IntegrityCheckResult); ok {
|
||||
r0 = rf()
|
||||
@@ -153,10 +129,6 @@ func (_m *Store) Close() {
|
||||
func (_m *Store) ClusterDiscovery() store.ClusterDiscoveryStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ClusterDiscovery")
|
||||
}
|
||||
|
||||
var r0 store.ClusterDiscoveryStore
|
||||
if rf, ok := ret.Get(0).(func() store.ClusterDiscoveryStore); ok {
|
||||
r0 = rf()
|
||||
@@ -173,10 +145,6 @@ func (_m *Store) ClusterDiscovery() store.ClusterDiscoveryStore {
|
||||
func (_m *Store) Command() store.CommandStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Command")
|
||||
}
|
||||
|
||||
var r0 store.CommandStore
|
||||
if rf, ok := ret.Get(0).(func() store.CommandStore); ok {
|
||||
r0 = rf()
|
||||
@@ -193,10 +161,6 @@ func (_m *Store) Command() store.CommandStore {
|
||||
func (_m *Store) CommandWebhook() store.CommandWebhookStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CommandWebhook")
|
||||
}
|
||||
|
||||
var r0 store.CommandWebhookStore
|
||||
if rf, ok := ret.Get(0).(func() store.CommandWebhookStore); ok {
|
||||
r0 = rf()
|
||||
@@ -213,10 +177,6 @@ func (_m *Store) CommandWebhook() store.CommandWebhookStore {
|
||||
func (_m *Store) Compliance() store.ComplianceStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Compliance")
|
||||
}
|
||||
|
||||
var r0 store.ComplianceStore
|
||||
if rf, ok := ret.Get(0).(func() store.ComplianceStore); ok {
|
||||
r0 = rf()
|
||||
@@ -233,10 +193,6 @@ func (_m *Store) Compliance() store.ComplianceStore {
|
||||
func (_m *Store) Context() context.Context {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Context")
|
||||
}
|
||||
|
||||
var r0 context.Context
|
||||
if rf, ok := ret.Get(0).(func() context.Context); ok {
|
||||
r0 = rf()
|
||||
@@ -253,10 +209,6 @@ func (_m *Store) Context() context.Context {
|
||||
func (_m *Store) DesktopTokens() store.DesktopTokensStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DesktopTokens")
|
||||
}
|
||||
|
||||
var r0 store.DesktopTokensStore
|
||||
if rf, ok := ret.Get(0).(func() store.DesktopTokensStore); ok {
|
||||
r0 = rf()
|
||||
@@ -273,10 +225,6 @@ func (_m *Store) DesktopTokens() store.DesktopTokensStore {
|
||||
func (_m *Store) Draft() store.DraftStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Draft")
|
||||
}
|
||||
|
||||
var r0 store.DraftStore
|
||||
if rf, ok := ret.Get(0).(func() store.DraftStore); ok {
|
||||
r0 = rf()
|
||||
@@ -298,10 +246,6 @@ func (_m *Store) DropAllTables() {
|
||||
func (_m *Store) Emoji() store.EmojiStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Emoji")
|
||||
}
|
||||
|
||||
var r0 store.EmojiStore
|
||||
if rf, ok := ret.Get(0).(func() store.EmojiStore); ok {
|
||||
r0 = rf()
|
||||
@@ -318,10 +262,6 @@ func (_m *Store) Emoji() store.EmojiStore {
|
||||
func (_m *Store) FileInfo() store.FileInfoStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for FileInfo")
|
||||
}
|
||||
|
||||
var r0 store.FileInfoStore
|
||||
if rf, ok := ret.Get(0).(func() store.FileInfoStore); ok {
|
||||
r0 = rf()
|
||||
@@ -338,10 +278,6 @@ func (_m *Store) FileInfo() store.FileInfoStore {
|
||||
func (_m *Store) GetAppliedMigrations() ([]model.AppliedMigration, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAppliedMigrations")
|
||||
}
|
||||
|
||||
var r0 []model.AppliedMigration
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() ([]model.AppliedMigration, error)); ok {
|
||||
@@ -368,10 +304,6 @@ func (_m *Store) GetAppliedMigrations() ([]model.AppliedMigration, error) {
|
||||
func (_m *Store) GetDBSchemaVersion() (int, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetDBSchemaVersion")
|
||||
}
|
||||
|
||||
var r0 int
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int, error)); ok {
|
||||
@@ -396,10 +328,6 @@ func (_m *Store) GetDBSchemaVersion() (int, error) {
|
||||
func (_m *Store) GetDbVersion(numerical bool) (string, error) {
|
||||
ret := _m.Called(numerical)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetDbVersion")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(bool) (string, error)); ok {
|
||||
@@ -424,10 +352,6 @@ func (_m *Store) GetDbVersion(numerical bool) (string, error) {
|
||||
func (_m *Store) GetInternalMasterDB() *sql.DB {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetInternalMasterDB")
|
||||
}
|
||||
|
||||
var r0 *sql.DB
|
||||
if rf, ok := ret.Get(0).(func() *sql.DB); ok {
|
||||
r0 = rf()
|
||||
@@ -444,10 +368,6 @@ func (_m *Store) GetInternalMasterDB() *sql.DB {
|
||||
func (_m *Store) GetInternalReplicaDB() *sql.DB {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetInternalReplicaDB")
|
||||
}
|
||||
|
||||
var r0 *sql.DB
|
||||
if rf, ok := ret.Get(0).(func() *sql.DB); ok {
|
||||
r0 = rf()
|
||||
@@ -464,10 +384,6 @@ func (_m *Store) GetInternalReplicaDB() *sql.DB {
|
||||
func (_m *Store) GetLocalSchemaVersion() (int, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetLocalSchemaVersion")
|
||||
}
|
||||
|
||||
var r0 int
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int, error)); ok {
|
||||
@@ -492,10 +408,6 @@ func (_m *Store) GetLocalSchemaVersion() (int, error) {
|
||||
func (_m *Store) Group() store.GroupStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Group")
|
||||
}
|
||||
|
||||
var r0 store.GroupStore
|
||||
if rf, ok := ret.Get(0).(func() store.GroupStore); ok {
|
||||
r0 = rf()
|
||||
@@ -512,10 +424,6 @@ func (_m *Store) Group() store.GroupStore {
|
||||
func (_m *Store) Job() store.JobStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Job")
|
||||
}
|
||||
|
||||
var r0 store.JobStore
|
||||
if rf, ok := ret.Get(0).(func() store.JobStore); ok {
|
||||
r0 = rf()
|
||||
@@ -532,10 +440,6 @@ func (_m *Store) Job() store.JobStore {
|
||||
func (_m *Store) License() store.LicenseStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for License")
|
||||
}
|
||||
|
||||
var r0 store.LicenseStore
|
||||
if rf, ok := ret.Get(0).(func() store.LicenseStore); ok {
|
||||
r0 = rf()
|
||||
@@ -552,10 +456,6 @@ func (_m *Store) License() store.LicenseStore {
|
||||
func (_m *Store) LinkMetadata() store.LinkMetadataStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for LinkMetadata")
|
||||
}
|
||||
|
||||
var r0 store.LinkMetadataStore
|
||||
if rf, ok := ret.Get(0).(func() store.LinkMetadataStore); ok {
|
||||
r0 = rf()
|
||||
@@ -577,10 +477,6 @@ func (_m *Store) LockToMaster() {
|
||||
func (_m *Store) Logger() mlog.LoggerIFace {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Logger")
|
||||
}
|
||||
|
||||
var r0 mlog.LoggerIFace
|
||||
if rf, ok := ret.Get(0).(func() mlog.LoggerIFace); ok {
|
||||
r0 = rf()
|
||||
@@ -602,10 +498,6 @@ func (_m *Store) MarkSystemRanUnitTests() {
|
||||
func (_m *Store) NotifyAdmin() store.NotifyAdminStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for NotifyAdmin")
|
||||
}
|
||||
|
||||
var r0 store.NotifyAdminStore
|
||||
if rf, ok := ret.Get(0).(func() store.NotifyAdminStore); ok {
|
||||
r0 = rf()
|
||||
@@ -622,10 +514,6 @@ func (_m *Store) NotifyAdmin() store.NotifyAdminStore {
|
||||
func (_m *Store) OAuth() store.OAuthStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for OAuth")
|
||||
}
|
||||
|
||||
var r0 store.OAuthStore
|
||||
if rf, ok := ret.Get(0).(func() store.OAuthStore); ok {
|
||||
r0 = rf()
|
||||
@@ -642,10 +530,6 @@ func (_m *Store) OAuth() store.OAuthStore {
|
||||
func (_m *Store) OutgoingOAuthConnection() store.OutgoingOAuthConnectionStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for OutgoingOAuthConnection")
|
||||
}
|
||||
|
||||
var r0 store.OutgoingOAuthConnectionStore
|
||||
if rf, ok := ret.Get(0).(func() store.OutgoingOAuthConnectionStore); ok {
|
||||
r0 = rf()
|
||||
@@ -662,10 +546,6 @@ func (_m *Store) OutgoingOAuthConnection() store.OutgoingOAuthConnectionStore {
|
||||
func (_m *Store) Plugin() store.PluginStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Plugin")
|
||||
}
|
||||
|
||||
var r0 store.PluginStore
|
||||
if rf, ok := ret.Get(0).(func() store.PluginStore); ok {
|
||||
r0 = rf()
|
||||
@@ -682,10 +562,6 @@ func (_m *Store) Plugin() store.PluginStore {
|
||||
func (_m *Store) Post() store.PostStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Post")
|
||||
}
|
||||
|
||||
var r0 store.PostStore
|
||||
if rf, ok := ret.Get(0).(func() store.PostStore); ok {
|
||||
r0 = rf()
|
||||
@@ -702,10 +578,6 @@ func (_m *Store) Post() store.PostStore {
|
||||
func (_m *Store) PostAcknowledgement() store.PostAcknowledgementStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PostAcknowledgement")
|
||||
}
|
||||
|
||||
var r0 store.PostAcknowledgementStore
|
||||
if rf, ok := ret.Get(0).(func() store.PostAcknowledgementStore); ok {
|
||||
r0 = rf()
|
||||
@@ -722,10 +594,6 @@ func (_m *Store) PostAcknowledgement() store.PostAcknowledgementStore {
|
||||
func (_m *Store) PostPersistentNotification() store.PostPersistentNotificationStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PostPersistentNotification")
|
||||
}
|
||||
|
||||
var r0 store.PostPersistentNotificationStore
|
||||
if rf, ok := ret.Get(0).(func() store.PostPersistentNotificationStore); ok {
|
||||
r0 = rf()
|
||||
@@ -742,10 +610,6 @@ func (_m *Store) PostPersistentNotification() store.PostPersistentNotificationSt
|
||||
func (_m *Store) PostPriority() store.PostPriorityStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PostPriority")
|
||||
}
|
||||
|
||||
var r0 store.PostPriorityStore
|
||||
if rf, ok := ret.Get(0).(func() store.PostPriorityStore); ok {
|
||||
r0 = rf()
|
||||
@@ -762,10 +626,6 @@ func (_m *Store) PostPriority() store.PostPriorityStore {
|
||||
func (_m *Store) Preference() store.PreferenceStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Preference")
|
||||
}
|
||||
|
||||
var r0 store.PreferenceStore
|
||||
if rf, ok := ret.Get(0).(func() store.PreferenceStore); ok {
|
||||
r0 = rf()
|
||||
@@ -782,10 +642,6 @@ func (_m *Store) Preference() store.PreferenceStore {
|
||||
func (_m *Store) ProductNotices() store.ProductNoticesStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ProductNotices")
|
||||
}
|
||||
|
||||
var r0 store.ProductNoticesStore
|
||||
if rf, ok := ret.Get(0).(func() store.ProductNoticesStore); ok {
|
||||
r0 = rf()
|
||||
@@ -802,10 +658,6 @@ func (_m *Store) ProductNotices() store.ProductNoticesStore {
|
||||
func (_m *Store) Reaction() store.ReactionStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Reaction")
|
||||
}
|
||||
|
||||
var r0 store.ReactionStore
|
||||
if rf, ok := ret.Get(0).(func() store.ReactionStore); ok {
|
||||
r0 = rf()
|
||||
@@ -827,10 +679,6 @@ func (_m *Store) RecycleDBConnections(d time.Duration) {
|
||||
func (_m *Store) RemoteCluster() store.RemoteClusterStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoteCluster")
|
||||
}
|
||||
|
||||
var r0 store.RemoteClusterStore
|
||||
if rf, ok := ret.Get(0).(func() store.RemoteClusterStore); ok {
|
||||
r0 = rf()
|
||||
@@ -847,10 +695,6 @@ func (_m *Store) RemoteCluster() store.RemoteClusterStore {
|
||||
func (_m *Store) ReplicaLagAbs() error {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ReplicaLagAbs")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func() error); ok {
|
||||
r0 = rf()
|
||||
@@ -865,10 +709,6 @@ func (_m *Store) ReplicaLagAbs() error {
|
||||
func (_m *Store) ReplicaLagTime() error {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ReplicaLagTime")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func() error); ok {
|
||||
r0 = rf()
|
||||
@@ -883,10 +723,6 @@ func (_m *Store) ReplicaLagTime() error {
|
||||
func (_m *Store) RetentionPolicy() store.RetentionPolicyStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RetentionPolicy")
|
||||
}
|
||||
|
||||
var r0 store.RetentionPolicyStore
|
||||
if rf, ok := ret.Get(0).(func() store.RetentionPolicyStore); ok {
|
||||
r0 = rf()
|
||||
@@ -903,10 +739,6 @@ func (_m *Store) RetentionPolicy() store.RetentionPolicyStore {
|
||||
func (_m *Store) Role() store.RoleStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Role")
|
||||
}
|
||||
|
||||
var r0 store.RoleStore
|
||||
if rf, ok := ret.Get(0).(func() store.RoleStore); ok {
|
||||
r0 = rf()
|
||||
@@ -923,10 +755,6 @@ func (_m *Store) Role() store.RoleStore {
|
||||
func (_m *Store) Scheme() store.SchemeStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Scheme")
|
||||
}
|
||||
|
||||
var r0 store.SchemeStore
|
||||
if rf, ok := ret.Get(0).(func() store.SchemeStore); ok {
|
||||
r0 = rf()
|
||||
@@ -943,10 +771,6 @@ func (_m *Store) Scheme() store.SchemeStore {
|
||||
func (_m *Store) Session() store.SessionStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Session")
|
||||
}
|
||||
|
||||
var r0 store.SessionStore
|
||||
if rf, ok := ret.Get(0).(func() store.SessionStore); ok {
|
||||
r0 = rf()
|
||||
@@ -968,10 +792,6 @@ func (_m *Store) SetContext(_a0 context.Context) {
|
||||
func (_m *Store) SharedChannel() store.SharedChannelStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SharedChannel")
|
||||
}
|
||||
|
||||
var r0 store.SharedChannelStore
|
||||
if rf, ok := ret.Get(0).(func() store.SharedChannelStore); ok {
|
||||
r0 = rf()
|
||||
@@ -988,10 +808,6 @@ func (_m *Store) SharedChannel() store.SharedChannelStore {
|
||||
func (_m *Store) Status() store.StatusStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Status")
|
||||
}
|
||||
|
||||
var r0 store.StatusStore
|
||||
if rf, ok := ret.Get(0).(func() store.StatusStore); ok {
|
||||
r0 = rf()
|
||||
@@ -1008,10 +824,6 @@ func (_m *Store) Status() store.StatusStore {
|
||||
func (_m *Store) System() store.SystemStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for System")
|
||||
}
|
||||
|
||||
var r0 store.SystemStore
|
||||
if rf, ok := ret.Get(0).(func() store.SystemStore); ok {
|
||||
r0 = rf()
|
||||
@@ -1028,10 +840,6 @@ func (_m *Store) System() store.SystemStore {
|
||||
func (_m *Store) Team() store.TeamStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Team")
|
||||
}
|
||||
|
||||
var r0 store.TeamStore
|
||||
if rf, ok := ret.Get(0).(func() store.TeamStore); ok {
|
||||
r0 = rf()
|
||||
@@ -1048,10 +856,6 @@ func (_m *Store) Team() store.TeamStore {
|
||||
func (_m *Store) TermsOfService() store.TermsOfServiceStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for TermsOfService")
|
||||
}
|
||||
|
||||
var r0 store.TermsOfServiceStore
|
||||
if rf, ok := ret.Get(0).(func() store.TermsOfServiceStore); ok {
|
||||
r0 = rf()
|
||||
@@ -1068,10 +872,6 @@ func (_m *Store) TermsOfService() store.TermsOfServiceStore {
|
||||
func (_m *Store) Thread() store.ThreadStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Thread")
|
||||
}
|
||||
|
||||
var r0 store.ThreadStore
|
||||
if rf, ok := ret.Get(0).(func() store.ThreadStore); ok {
|
||||
r0 = rf()
|
||||
@@ -1088,10 +888,6 @@ func (_m *Store) Thread() store.ThreadStore {
|
||||
func (_m *Store) Token() store.TokenStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Token")
|
||||
}
|
||||
|
||||
var r0 store.TokenStore
|
||||
if rf, ok := ret.Get(0).(func() store.TokenStore); ok {
|
||||
r0 = rf()
|
||||
@@ -1108,10 +904,6 @@ func (_m *Store) Token() store.TokenStore {
|
||||
func (_m *Store) TotalMasterDbConnections() int {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for TotalMasterDbConnections")
|
||||
}
|
||||
|
||||
var r0 int
|
||||
if rf, ok := ret.Get(0).(func() int); ok {
|
||||
r0 = rf()
|
||||
@@ -1126,10 +918,6 @@ func (_m *Store) TotalMasterDbConnections() int {
|
||||
func (_m *Store) TotalReadDbConnections() int {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for TotalReadDbConnections")
|
||||
}
|
||||
|
||||
var r0 int
|
||||
if rf, ok := ret.Get(0).(func() int); ok {
|
||||
r0 = rf()
|
||||
@@ -1144,10 +932,6 @@ func (_m *Store) TotalReadDbConnections() int {
|
||||
func (_m *Store) TotalSearchDbConnections() int {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for TotalSearchDbConnections")
|
||||
}
|
||||
|
||||
var r0 int
|
||||
if rf, ok := ret.Get(0).(func() int); ok {
|
||||
r0 = rf()
|
||||
@@ -1162,10 +946,6 @@ func (_m *Store) TotalSearchDbConnections() int {
|
||||
func (_m *Store) TrueUpReview() store.TrueUpReviewStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for TrueUpReview")
|
||||
}
|
||||
|
||||
var r0 store.TrueUpReviewStore
|
||||
if rf, ok := ret.Get(0).(func() store.TrueUpReviewStore); ok {
|
||||
r0 = rf()
|
||||
@@ -1187,10 +967,6 @@ func (_m *Store) UnlockFromMaster() {
|
||||
func (_m *Store) UploadSession() store.UploadSessionStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UploadSession")
|
||||
}
|
||||
|
||||
var r0 store.UploadSessionStore
|
||||
if rf, ok := ret.Get(0).(func() store.UploadSessionStore); ok {
|
||||
r0 = rf()
|
||||
@@ -1207,10 +983,6 @@ func (_m *Store) UploadSession() store.UploadSessionStore {
|
||||
func (_m *Store) User() store.UserStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for User")
|
||||
}
|
||||
|
||||
var r0 store.UserStore
|
||||
if rf, ok := ret.Get(0).(func() store.UserStore); ok {
|
||||
r0 = rf()
|
||||
@@ -1227,10 +999,6 @@ func (_m *Store) User() store.UserStore {
|
||||
func (_m *Store) UserAccessToken() store.UserAccessTokenStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UserAccessToken")
|
||||
}
|
||||
|
||||
var r0 store.UserAccessTokenStore
|
||||
if rf, ok := ret.Get(0).(func() store.UserAccessTokenStore); ok {
|
||||
r0 = rf()
|
||||
@@ -1247,10 +1015,6 @@ func (_m *Store) UserAccessToken() store.UserAccessTokenStore {
|
||||
func (_m *Store) UserTermsOfService() store.UserTermsOfServiceStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UserTermsOfService")
|
||||
}
|
||||
|
||||
var r0 store.UserTermsOfServiceStore
|
||||
if rf, ok := ret.Get(0).(func() store.UserTermsOfServiceStore); ok {
|
||||
r0 = rf()
|
||||
@@ -1267,10 +1031,6 @@ func (_m *Store) UserTermsOfService() store.UserTermsOfServiceStore {
|
||||
func (_m *Store) Webhook() store.WebhookStore {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Webhook")
|
||||
}
|
||||
|
||||
var r0 store.WebhookStore
|
||||
if rf, ok := ret.Get(0).(func() store.WebhookStore); ok {
|
||||
r0 = rf()
|
||||
@@ -1283,12 +1043,13 @@ func (_m *Store) Webhook() store.WebhookStore {
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewStore(t interface {
|
||||
type mockConstructorTestingTNewStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *Store {
|
||||
}
|
||||
|
||||
// NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewStore(t mockConstructorTestingTNewStore) *Store {
|
||||
mock := &Store{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type SystemStore struct {
|
||||
func (_m *SystemStore) Get() (model.StringMap, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 model.StringMap
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (model.StringMap, error)); ok {
|
||||
@@ -48,10 +44,6 @@ func (_m *SystemStore) Get() (model.StringMap, error) {
|
||||
func (_m *SystemStore) GetByName(name string) (*model.System, error) {
|
||||
ret := _m.Called(name)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByName")
|
||||
}
|
||||
|
||||
var r0 *model.System
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.System, error)); ok {
|
||||
@@ -78,10 +70,6 @@ func (_m *SystemStore) GetByName(name string) (*model.System, error) {
|
||||
func (_m *SystemStore) InsertIfExists(system *model.System) (*model.System, error) {
|
||||
ret := _m.Called(system)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for InsertIfExists")
|
||||
}
|
||||
|
||||
var r0 *model.System
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.System) (*model.System, error)); ok {
|
||||
@@ -108,10 +96,6 @@ func (_m *SystemStore) InsertIfExists(system *model.System) (*model.System, erro
|
||||
func (_m *SystemStore) PermanentDeleteByName(name string) (*model.System, error) {
|
||||
ret := _m.Called(name)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteByName")
|
||||
}
|
||||
|
||||
var r0 *model.System
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.System, error)); ok {
|
||||
@@ -138,10 +122,6 @@ func (_m *SystemStore) PermanentDeleteByName(name string) (*model.System, error)
|
||||
func (_m *SystemStore) Save(system *model.System) error {
|
||||
ret := _m.Called(system)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.System) error); ok {
|
||||
r0 = rf(system)
|
||||
@@ -156,10 +136,6 @@ func (_m *SystemStore) Save(system *model.System) error {
|
||||
func (_m *SystemStore) SaveOrUpdate(system *model.System) error {
|
||||
ret := _m.Called(system)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveOrUpdate")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.System) error); ok {
|
||||
r0 = rf(system)
|
||||
@@ -174,10 +150,6 @@ func (_m *SystemStore) SaveOrUpdate(system *model.System) error {
|
||||
func (_m *SystemStore) Update(system *model.System) error {
|
||||
ret := _m.Called(system)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.System) error); ok {
|
||||
r0 = rf(system)
|
||||
@@ -188,12 +160,13 @@ func (_m *SystemStore) Update(system *model.System) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewSystemStore creates a new instance of SystemStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewSystemStore(t interface {
|
||||
type mockConstructorTestingTNewSystemStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *SystemStore {
|
||||
}
|
||||
|
||||
// NewSystemStore creates a new instance of SystemStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewSystemStore(t mockConstructorTestingTNewSystemStore) *SystemStore {
|
||||
mock := &SystemStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -19,10 +19,6 @@ type TeamStore struct {
|
||||
func (_m *TeamStore) AnalyticsGetTeamCountForScheme(schemeID string) (int64, error) {
|
||||
ret := _m.Called(schemeID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsGetTeamCountForScheme")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int64, error)); ok {
|
||||
@@ -47,10 +43,6 @@ func (_m *TeamStore) AnalyticsGetTeamCountForScheme(schemeID string) (int64, err
|
||||
func (_m *TeamStore) AnalyticsTeamCount(opts *model.TeamSearch) (int64, error) {
|
||||
ret := _m.Called(opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsTeamCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.TeamSearch) (int64, error)); ok {
|
||||
@@ -75,10 +67,6 @@ func (_m *TeamStore) AnalyticsTeamCount(opts *model.TeamSearch) (int64, error) {
|
||||
func (_m *TeamStore) ClearAllCustomRoleAssignments() error {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ClearAllCustomRoleAssignments")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func() error); ok {
|
||||
r0 = rf()
|
||||
@@ -98,10 +86,6 @@ func (_m *TeamStore) ClearCaches() {
|
||||
func (_m *TeamStore) Get(id string) (*model.Team, error) {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Team, error)); ok {
|
||||
@@ -128,10 +112,6 @@ func (_m *TeamStore) Get(id string) (*model.Team, error) {
|
||||
func (_m *TeamStore) GetActiveMemberCount(teamID string, restrictions *model.ViewUsersRestrictions) (int64, error) {
|
||||
ret := _m.Called(teamID, restrictions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetActiveMemberCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, *model.ViewUsersRestrictions) (int64, error)); ok {
|
||||
@@ -156,10 +136,6 @@ func (_m *TeamStore) GetActiveMemberCount(teamID string, restrictions *model.Vie
|
||||
func (_m *TeamStore) GetAll() ([]*model.Team, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAll")
|
||||
}
|
||||
|
||||
var r0 []*model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() ([]*model.Team, error)); ok {
|
||||
@@ -186,10 +162,6 @@ func (_m *TeamStore) GetAll() ([]*model.Team, error) {
|
||||
func (_m *TeamStore) GetAllForExportAfter(limit int, afterID string) ([]*model.TeamForExport, error) {
|
||||
ret := _m.Called(limit, afterID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllForExportAfter")
|
||||
}
|
||||
|
||||
var r0 []*model.TeamForExport
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, string) ([]*model.TeamForExport, error)); ok {
|
||||
@@ -216,10 +188,6 @@ func (_m *TeamStore) GetAllForExportAfter(limit int, afterID string) ([]*model.T
|
||||
func (_m *TeamStore) GetAllPage(offset int, limit int, opts *model.TeamSearch) ([]*model.Team, error) {
|
||||
ret := _m.Called(offset, limit, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllPage")
|
||||
}
|
||||
|
||||
var r0 []*model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, int, *model.TeamSearch) ([]*model.Team, error)); ok {
|
||||
@@ -246,10 +214,6 @@ func (_m *TeamStore) GetAllPage(offset int, limit int, opts *model.TeamSearch) (
|
||||
func (_m *TeamStore) GetAllPrivateTeamListing() ([]*model.Team, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllPrivateTeamListing")
|
||||
}
|
||||
|
||||
var r0 []*model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() ([]*model.Team, error)); ok {
|
||||
@@ -276,10 +240,6 @@ func (_m *TeamStore) GetAllPrivateTeamListing() ([]*model.Team, error) {
|
||||
func (_m *TeamStore) GetAllTeamListing() ([]*model.Team, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllTeamListing")
|
||||
}
|
||||
|
||||
var r0 []*model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() ([]*model.Team, error)); ok {
|
||||
@@ -306,10 +266,6 @@ func (_m *TeamStore) GetAllTeamListing() ([]*model.Team, error) {
|
||||
func (_m *TeamStore) GetByEmptyInviteID() ([]*model.Team, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByEmptyInviteID")
|
||||
}
|
||||
|
||||
var r0 []*model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() ([]*model.Team, error)); ok {
|
||||
@@ -336,10 +292,6 @@ func (_m *TeamStore) GetByEmptyInviteID() ([]*model.Team, error) {
|
||||
func (_m *TeamStore) GetByInviteId(inviteID string) (*model.Team, error) {
|
||||
ret := _m.Called(inviteID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByInviteId")
|
||||
}
|
||||
|
||||
var r0 *model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Team, error)); ok {
|
||||
@@ -366,10 +318,6 @@ func (_m *TeamStore) GetByInviteId(inviteID string) (*model.Team, error) {
|
||||
func (_m *TeamStore) GetByName(name string) (*model.Team, error) {
|
||||
ret := _m.Called(name)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByName")
|
||||
}
|
||||
|
||||
var r0 *model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Team, error)); ok {
|
||||
@@ -396,10 +344,6 @@ func (_m *TeamStore) GetByName(name string) (*model.Team, error) {
|
||||
func (_m *TeamStore) GetByNames(name []string) ([]*model.Team, error) {
|
||||
ret := _m.Called(name)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByNames")
|
||||
}
|
||||
|
||||
var r0 []*model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string) ([]*model.Team, error)); ok {
|
||||
@@ -426,10 +370,6 @@ func (_m *TeamStore) GetByNames(name []string) ([]*model.Team, error) {
|
||||
func (_m *TeamStore) GetChannelUnreadsForAllTeams(excludeTeamID string, userID string) ([]*model.ChannelUnread, error) {
|
||||
ret := _m.Called(excludeTeamID, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetChannelUnreadsForAllTeams")
|
||||
}
|
||||
|
||||
var r0 []*model.ChannelUnread
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) ([]*model.ChannelUnread, error)); ok {
|
||||
@@ -456,10 +396,6 @@ func (_m *TeamStore) GetChannelUnreadsForAllTeams(excludeTeamID string, userID s
|
||||
func (_m *TeamStore) GetChannelUnreadsForTeam(teamID string, userID string) ([]*model.ChannelUnread, error) {
|
||||
ret := _m.Called(teamID, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetChannelUnreadsForTeam")
|
||||
}
|
||||
|
||||
var r0 []*model.ChannelUnread
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) ([]*model.ChannelUnread, error)); ok {
|
||||
@@ -486,10 +422,6 @@ func (_m *TeamStore) GetChannelUnreadsForTeam(teamID string, userID string) ([]*
|
||||
func (_m *TeamStore) GetCommonTeamIDsForMultipleUsers(userIDs []string) ([]string, error) {
|
||||
ret := _m.Called(userIDs)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetCommonTeamIDsForMultipleUsers")
|
||||
}
|
||||
|
||||
var r0 []string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string) ([]string, error)); ok {
|
||||
@@ -516,10 +448,6 @@ func (_m *TeamStore) GetCommonTeamIDsForMultipleUsers(userIDs []string) ([]strin
|
||||
func (_m *TeamStore) GetCommonTeamIDsForTwoUsers(userID string, otherUserID string) ([]string, error) {
|
||||
ret := _m.Called(userID, otherUserID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetCommonTeamIDsForTwoUsers")
|
||||
}
|
||||
|
||||
var r0 []string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) ([]string, error)); ok {
|
||||
@@ -546,10 +474,6 @@ func (_m *TeamStore) GetCommonTeamIDsForTwoUsers(userID string, otherUserID stri
|
||||
func (_m *TeamStore) GetMany(ids []string) ([]*model.Team, error) {
|
||||
ret := _m.Called(ids)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMany")
|
||||
}
|
||||
|
||||
var r0 []*model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string) ([]*model.Team, error)); ok {
|
||||
@@ -576,10 +500,6 @@ func (_m *TeamStore) GetMany(ids []string) ([]*model.Team, error) {
|
||||
func (_m *TeamStore) GetMember(c request.CTX, teamID string, userID string) (*model.TeamMember, error) {
|
||||
ret := _m.Called(c, teamID, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMember")
|
||||
}
|
||||
|
||||
var r0 *model.TeamMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, string) (*model.TeamMember, error)); ok {
|
||||
@@ -606,10 +526,6 @@ func (_m *TeamStore) GetMember(c request.CTX, teamID string, userID string) (*mo
|
||||
func (_m *TeamStore) GetMembers(teamID string, offset int, limit int, teamMembersGetOptions *model.TeamMembersGetOptions) ([]*model.TeamMember, error) {
|
||||
ret := _m.Called(teamID, offset, limit, teamMembersGetOptions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMembers")
|
||||
}
|
||||
|
||||
var r0 []*model.TeamMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int, *model.TeamMembersGetOptions) ([]*model.TeamMember, error)); ok {
|
||||
@@ -636,10 +552,6 @@ func (_m *TeamStore) GetMembers(teamID string, offset int, limit int, teamMember
|
||||
func (_m *TeamStore) GetMembersByIds(teamID string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, error) {
|
||||
ret := _m.Called(teamID, userIds, restrictions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMembersByIds")
|
||||
}
|
||||
|
||||
var r0 []*model.TeamMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string, *model.ViewUsersRestrictions) ([]*model.TeamMember, error)); ok {
|
||||
@@ -666,10 +578,6 @@ func (_m *TeamStore) GetMembersByIds(teamID string, userIds []string, restrictio
|
||||
func (_m *TeamStore) GetTeamMembersForExport(userID string) ([]*model.TeamMemberForExport, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTeamMembersForExport")
|
||||
}
|
||||
|
||||
var r0 []*model.TeamMemberForExport
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.TeamMemberForExport, error)); ok {
|
||||
@@ -696,10 +604,6 @@ func (_m *TeamStore) GetTeamMembersForExport(userID string) ([]*model.TeamMember
|
||||
func (_m *TeamStore) GetTeamsByScheme(schemeID string, offset int, limit int) ([]*model.Team, error) {
|
||||
ret := _m.Called(schemeID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTeamsByScheme")
|
||||
}
|
||||
|
||||
var r0 []*model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.Team, error)); ok {
|
||||
@@ -726,10 +630,6 @@ func (_m *TeamStore) GetTeamsByScheme(schemeID string, offset int, limit int) ([
|
||||
func (_m *TeamStore) GetTeamsByUserId(userID string) ([]*model.Team, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTeamsByUserId")
|
||||
}
|
||||
|
||||
var r0 []*model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.Team, error)); ok {
|
||||
@@ -756,10 +656,6 @@ func (_m *TeamStore) GetTeamsByUserId(userID string) ([]*model.Team, error) {
|
||||
func (_m *TeamStore) GetTeamsForUser(c request.CTX, userID string, excludeTeamID string, includeDeleted bool) ([]*model.TeamMember, error) {
|
||||
ret := _m.Called(c, userID, excludeTeamID, includeDeleted)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTeamsForUser")
|
||||
}
|
||||
|
||||
var r0 []*model.TeamMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, string, bool) ([]*model.TeamMember, error)); ok {
|
||||
@@ -786,10 +682,6 @@ func (_m *TeamStore) GetTeamsForUser(c request.CTX, userID string, excludeTeamID
|
||||
func (_m *TeamStore) GetTeamsForUserWithPagination(userID string, page int, perPage int) ([]*model.TeamMember, error) {
|
||||
ret := _m.Called(userID, page, perPage)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTeamsForUserWithPagination")
|
||||
}
|
||||
|
||||
var r0 []*model.TeamMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.TeamMember, error)); ok {
|
||||
@@ -816,10 +708,6 @@ func (_m *TeamStore) GetTeamsForUserWithPagination(userID string, page int, perP
|
||||
func (_m *TeamStore) GetTotalMemberCount(teamID string, restrictions *model.ViewUsersRestrictions) (int64, error) {
|
||||
ret := _m.Called(teamID, restrictions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTotalMemberCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, *model.ViewUsersRestrictions) (int64, error)); ok {
|
||||
@@ -844,10 +732,6 @@ func (_m *TeamStore) GetTotalMemberCount(teamID string, restrictions *model.View
|
||||
func (_m *TeamStore) GetUserTeamIds(userID string, allowFromCache bool) ([]string, error) {
|
||||
ret := _m.Called(userID, allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUserTeamIds")
|
||||
}
|
||||
|
||||
var r0 []string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) ([]string, error)); ok {
|
||||
@@ -874,10 +758,6 @@ func (_m *TeamStore) GetUserTeamIds(userID string, allowFromCache bool) ([]strin
|
||||
func (_m *TeamStore) GroupSyncedTeamCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GroupSyncedTeamCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -907,10 +787,6 @@ func (_m *TeamStore) InvalidateAllTeamIdsForUser(userID string) {
|
||||
func (_m *TeamStore) MigrateTeamMembers(fromTeamID string, fromUserID string) (map[string]string, error) {
|
||||
ret := _m.Called(fromTeamID, fromUserID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for MigrateTeamMembers")
|
||||
}
|
||||
|
||||
var r0 map[string]string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (map[string]string, error)); ok {
|
||||
@@ -937,10 +813,6 @@ func (_m *TeamStore) MigrateTeamMembers(fromTeamID string, fromUserID string) (m
|
||||
func (_m *TeamStore) PermanentDelete(teamID string) error {
|
||||
ret := _m.Called(teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDelete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(teamID)
|
||||
@@ -955,10 +827,6 @@ func (_m *TeamStore) PermanentDelete(teamID string) error {
|
||||
func (_m *TeamStore) RemoveAllMembersByTeam(teamID string) error {
|
||||
ret := _m.Called(teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveAllMembersByTeam")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(teamID)
|
||||
@@ -973,10 +841,6 @@ func (_m *TeamStore) RemoveAllMembersByTeam(teamID string) error {
|
||||
func (_m *TeamStore) RemoveAllMembersByUser(ctx request.CTX, userID string) error {
|
||||
ret := _m.Called(ctx, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveAllMembersByUser")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) error); ok {
|
||||
r0 = rf(ctx, userID)
|
||||
@@ -991,10 +855,6 @@ func (_m *TeamStore) RemoveAllMembersByUser(ctx request.CTX, userID string) erro
|
||||
func (_m *TeamStore) RemoveMember(rctx request.CTX, teamID string, userID string) error {
|
||||
ret := _m.Called(rctx, teamID, userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveMember")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, string) error); ok {
|
||||
r0 = rf(rctx, teamID, userID)
|
||||
@@ -1009,10 +869,6 @@ func (_m *TeamStore) RemoveMember(rctx request.CTX, teamID string, userID string
|
||||
func (_m *TeamStore) RemoveMembers(rctx request.CTX, teamID string, userIds []string) error {
|
||||
ret := _m.Called(rctx, teamID, userIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveMembers")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, []string) error); ok {
|
||||
r0 = rf(rctx, teamID, userIds)
|
||||
@@ -1027,10 +883,6 @@ func (_m *TeamStore) RemoveMembers(rctx request.CTX, teamID string, userIds []st
|
||||
func (_m *TeamStore) ResetAllTeamSchemes() error {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ResetAllTeamSchemes")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func() error); ok {
|
||||
r0 = rf()
|
||||
@@ -1045,10 +897,6 @@ func (_m *TeamStore) ResetAllTeamSchemes() error {
|
||||
func (_m *TeamStore) Save(team *model.Team) (*model.Team, error) {
|
||||
ret := _m.Called(team)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Team) (*model.Team, error)); ok {
|
||||
@@ -1075,10 +923,6 @@ func (_m *TeamStore) Save(team *model.Team) (*model.Team, error) {
|
||||
func (_m *TeamStore) SaveMember(rctx request.CTX, member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, error) {
|
||||
ret := _m.Called(rctx, member, maxUsersPerTeam)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveMember")
|
||||
}
|
||||
|
||||
var r0 *model.TeamMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, *model.TeamMember, int) (*model.TeamMember, error)); ok {
|
||||
@@ -1105,10 +949,6 @@ func (_m *TeamStore) SaveMember(rctx request.CTX, member *model.TeamMember, maxU
|
||||
func (_m *TeamStore) SaveMultipleMembers(members []*model.TeamMember, maxUsersPerTeam int) ([]*model.TeamMember, error) {
|
||||
ret := _m.Called(members, maxUsersPerTeam)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveMultipleMembers")
|
||||
}
|
||||
|
||||
var r0 []*model.TeamMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]*model.TeamMember, int) ([]*model.TeamMember, error)); ok {
|
||||
@@ -1135,10 +975,6 @@ func (_m *TeamStore) SaveMultipleMembers(members []*model.TeamMember, maxUsersPe
|
||||
func (_m *TeamStore) SearchAll(opts *model.TeamSearch) ([]*model.Team, error) {
|
||||
ret := _m.Called(opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SearchAll")
|
||||
}
|
||||
|
||||
var r0 []*model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.TeamSearch) ([]*model.Team, error)); ok {
|
||||
@@ -1165,10 +1001,6 @@ func (_m *TeamStore) SearchAll(opts *model.TeamSearch) ([]*model.Team, error) {
|
||||
func (_m *TeamStore) SearchAllPaged(opts *model.TeamSearch) ([]*model.Team, int64, error) {
|
||||
ret := _m.Called(opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SearchAllPaged")
|
||||
}
|
||||
|
||||
var r0 []*model.Team
|
||||
var r1 int64
|
||||
var r2 error
|
||||
@@ -1202,10 +1034,6 @@ func (_m *TeamStore) SearchAllPaged(opts *model.TeamSearch) ([]*model.Team, int6
|
||||
func (_m *TeamStore) SearchOpen(opts *model.TeamSearch) ([]*model.Team, error) {
|
||||
ret := _m.Called(opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SearchOpen")
|
||||
}
|
||||
|
||||
var r0 []*model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.TeamSearch) ([]*model.Team, error)); ok {
|
||||
@@ -1232,10 +1060,6 @@ func (_m *TeamStore) SearchOpen(opts *model.TeamSearch) ([]*model.Team, error) {
|
||||
func (_m *TeamStore) SearchPrivate(opts *model.TeamSearch) ([]*model.Team, error) {
|
||||
ret := _m.Called(opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SearchPrivate")
|
||||
}
|
||||
|
||||
var r0 []*model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.TeamSearch) ([]*model.Team, error)); ok {
|
||||
@@ -1262,10 +1086,6 @@ func (_m *TeamStore) SearchPrivate(opts *model.TeamSearch) ([]*model.Team, error
|
||||
func (_m *TeamStore) Update(team *model.Team) (*model.Team, error) {
|
||||
ret := _m.Called(team)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
}
|
||||
|
||||
var r0 *model.Team
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Team) (*model.Team, error)); ok {
|
||||
@@ -1292,10 +1112,6 @@ func (_m *TeamStore) Update(team *model.Team) (*model.Team, error) {
|
||||
func (_m *TeamStore) UpdateLastTeamIconUpdate(teamID string, curTime int64) error {
|
||||
ret := _m.Called(teamID, curTime)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateLastTeamIconUpdate")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) error); ok {
|
||||
r0 = rf(teamID, curTime)
|
||||
@@ -1310,10 +1126,6 @@ func (_m *TeamStore) UpdateLastTeamIconUpdate(teamID string, curTime int64) erro
|
||||
func (_m *TeamStore) UpdateMember(rctx request.CTX, member *model.TeamMember) (*model.TeamMember, error) {
|
||||
ret := _m.Called(rctx, member)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateMember")
|
||||
}
|
||||
|
||||
var r0 *model.TeamMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, *model.TeamMember) (*model.TeamMember, error)); ok {
|
||||
@@ -1340,10 +1152,6 @@ func (_m *TeamStore) UpdateMember(rctx request.CTX, member *model.TeamMember) (*
|
||||
func (_m *TeamStore) UpdateMembersRole(teamID string, userIDs []string) error {
|
||||
ret := _m.Called(teamID, userIDs)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateMembersRole")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) error); ok {
|
||||
r0 = rf(teamID, userIDs)
|
||||
@@ -1358,10 +1166,6 @@ func (_m *TeamStore) UpdateMembersRole(teamID string, userIDs []string) error {
|
||||
func (_m *TeamStore) UpdateMultipleMembers(members []*model.TeamMember) ([]*model.TeamMember, error) {
|
||||
ret := _m.Called(members)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateMultipleMembers")
|
||||
}
|
||||
|
||||
var r0 []*model.TeamMember
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]*model.TeamMember) ([]*model.TeamMember, error)); ok {
|
||||
@@ -1388,10 +1192,6 @@ func (_m *TeamStore) UpdateMultipleMembers(members []*model.TeamMember) ([]*mode
|
||||
func (_m *TeamStore) UserBelongsToTeams(userID string, teamIds []string) (bool, error) {
|
||||
ret := _m.Called(userID, teamIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UserBelongsToTeams")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) (bool, error)); ok {
|
||||
@@ -1412,12 +1212,13 @@ func (_m *TeamStore) UserBelongsToTeams(userID string, teamIds []string) (bool,
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewTeamStore creates a new instance of TeamStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewTeamStore(t interface {
|
||||
type mockConstructorTestingTNewTeamStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *TeamStore {
|
||||
}
|
||||
|
||||
// NewTeamStore creates a new instance of TeamStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewTeamStore(t mockConstructorTestingTNewTeamStore) *TeamStore {
|
||||
mock := &TeamStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type TermsOfServiceStore struct {
|
||||
func (_m *TermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, error) {
|
||||
ret := _m.Called(id, allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.TermsOfService
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) (*model.TermsOfService, error)); ok {
|
||||
@@ -48,10 +44,6 @@ func (_m *TermsOfServiceStore) Get(id string, allowFromCache bool) (*model.Terms
|
||||
func (_m *TermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, error) {
|
||||
ret := _m.Called(allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetLatest")
|
||||
}
|
||||
|
||||
var r0 *model.TermsOfService
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(bool) (*model.TermsOfService, error)); ok {
|
||||
@@ -78,10 +70,6 @@ func (_m *TermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfSer
|
||||
func (_m *TermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, error) {
|
||||
ret := _m.Called(termsOfService)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.TermsOfService
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.TermsOfService) (*model.TermsOfService, error)); ok {
|
||||
@@ -104,12 +92,13 @@ func (_m *TermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*mode
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewTermsOfServiceStore creates a new instance of TermsOfServiceStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewTermsOfServiceStore(t interface {
|
||||
type mockConstructorTestingTNewTermsOfServiceStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *TermsOfServiceStore {
|
||||
}
|
||||
|
||||
// NewTermsOfServiceStore creates a new instance of TermsOfServiceStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewTermsOfServiceStore(t mockConstructorTestingTNewTermsOfServiceStore) *TermsOfServiceStore {
|
||||
mock := &TermsOfServiceStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -19,10 +19,6 @@ type ThreadStore struct {
|
||||
func (_m *ThreadStore) DeleteMembershipForUser(userId string, postID string) error {
|
||||
ret := _m.Called(userId, postID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteMembershipForUser")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(userId, postID)
|
||||
@@ -37,10 +33,6 @@ func (_m *ThreadStore) DeleteMembershipForUser(userId string, postID string) err
|
||||
func (_m *ThreadStore) DeleteMembershipsForChannel(userID string, channelID string) error {
|
||||
ret := _m.Called(userID, channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteMembershipsForChannel")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(userID, channelID)
|
||||
@@ -55,10 +47,6 @@ func (_m *ThreadStore) DeleteMembershipsForChannel(userID string, channelID stri
|
||||
func (_m *ThreadStore) DeleteOrphanedRows(limit int) (int64, error) {
|
||||
ret := _m.Called(limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteOrphanedRows")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int) (int64, error)); ok {
|
||||
@@ -83,10 +71,6 @@ func (_m *ThreadStore) DeleteOrphanedRows(limit int) (int64, error) {
|
||||
func (_m *ThreadStore) Get(id string) (*model.Thread, error) {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.Thread
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Thread, error)); ok {
|
||||
@@ -113,10 +97,6 @@ func (_m *ThreadStore) Get(id string) (*model.Thread, error) {
|
||||
func (_m *ThreadStore) GetMembershipForUser(userId string, postID string) (*model.ThreadMembership, error) {
|
||||
ret := _m.Called(userId, postID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMembershipForUser")
|
||||
}
|
||||
|
||||
var r0 *model.ThreadMembership
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (*model.ThreadMembership, error)); ok {
|
||||
@@ -143,10 +123,6 @@ func (_m *ThreadStore) GetMembershipForUser(userId string, postID string) (*mode
|
||||
func (_m *ThreadStore) GetMembershipsForUser(userId string, teamID string) ([]*model.ThreadMembership, error) {
|
||||
ret := _m.Called(userId, teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMembershipsForUser")
|
||||
}
|
||||
|
||||
var r0 []*model.ThreadMembership
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) ([]*model.ThreadMembership, error)); ok {
|
||||
@@ -173,10 +149,6 @@ func (_m *ThreadStore) GetMembershipsForUser(userId string, teamID string) ([]*m
|
||||
func (_m *ThreadStore) GetTeamsUnreadForUser(userID string, teamIDs []string, includeUrgentMentionCount bool) (map[string]*model.TeamUnread, error) {
|
||||
ret := _m.Called(userID, teamIDs, includeUrgentMentionCount)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTeamsUnreadForUser")
|
||||
}
|
||||
|
||||
var r0 map[string]*model.TeamUnread
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string, bool) (map[string]*model.TeamUnread, error)); ok {
|
||||
@@ -203,10 +175,6 @@ func (_m *ThreadStore) GetTeamsUnreadForUser(userID string, teamIDs []string, in
|
||||
func (_m *ThreadStore) GetThreadFollowers(threadID string, fetchOnlyActive bool) ([]string, error) {
|
||||
ret := _m.Called(threadID, fetchOnlyActive)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetThreadFollowers")
|
||||
}
|
||||
|
||||
var r0 []string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) ([]string, error)); ok {
|
||||
@@ -233,10 +201,6 @@ func (_m *ThreadStore) GetThreadFollowers(threadID string, fetchOnlyActive bool)
|
||||
func (_m *ThreadStore) GetThreadForUser(threadMembership *model.ThreadMembership, extended bool, postPriorityIsEnabled bool) (*model.ThreadResponse, error) {
|
||||
ret := _m.Called(threadMembership, extended, postPriorityIsEnabled)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetThreadForUser")
|
||||
}
|
||||
|
||||
var r0 *model.ThreadResponse
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.ThreadMembership, bool, bool) (*model.ThreadResponse, error)); ok {
|
||||
@@ -263,10 +227,6 @@ func (_m *ThreadStore) GetThreadForUser(threadMembership *model.ThreadMembership
|
||||
func (_m *ThreadStore) GetThreadUnreadReplyCount(threadMembership *model.ThreadMembership) (int64, error) {
|
||||
ret := _m.Called(threadMembership)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetThreadUnreadReplyCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.ThreadMembership) (int64, error)); ok {
|
||||
@@ -291,10 +251,6 @@ func (_m *ThreadStore) GetThreadUnreadReplyCount(threadMembership *model.ThreadM
|
||||
func (_m *ThreadStore) GetThreadsForUser(userId string, teamID string, opts model.GetUserThreadsOpts) ([]*model.ThreadResponse, error) {
|
||||
ret := _m.Called(userId, teamID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetThreadsForUser")
|
||||
}
|
||||
|
||||
var r0 []*model.ThreadResponse
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) ([]*model.ThreadResponse, error)); ok {
|
||||
@@ -321,10 +277,6 @@ func (_m *ThreadStore) GetThreadsForUser(userId string, teamID string, opts mode
|
||||
func (_m *ThreadStore) GetTotalThreads(userId string, teamID string, opts model.GetUserThreadsOpts) (int64, error) {
|
||||
ret := _m.Called(userId, teamID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTotalThreads")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) (int64, error)); ok {
|
||||
@@ -349,10 +301,6 @@ func (_m *ThreadStore) GetTotalThreads(userId string, teamID string, opts model.
|
||||
func (_m *ThreadStore) GetTotalUnreadMentions(userId string, teamID string, opts model.GetUserThreadsOpts) (int64, error) {
|
||||
ret := _m.Called(userId, teamID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTotalUnreadMentions")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) (int64, error)); ok {
|
||||
@@ -377,10 +325,6 @@ func (_m *ThreadStore) GetTotalUnreadMentions(userId string, teamID string, opts
|
||||
func (_m *ThreadStore) GetTotalUnreadThreads(userId string, teamID string, opts model.GetUserThreadsOpts) (int64, error) {
|
||||
ret := _m.Called(userId, teamID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTotalUnreadThreads")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) (int64, error)); ok {
|
||||
@@ -405,10 +349,6 @@ func (_m *ThreadStore) GetTotalUnreadThreads(userId string, teamID string, opts
|
||||
func (_m *ThreadStore) GetTotalUnreadUrgentMentions(userId string, teamID string, opts model.GetUserThreadsOpts) (int64, error) {
|
||||
ret := _m.Called(userId, teamID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTotalUnreadUrgentMentions")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, model.GetUserThreadsOpts) (int64, error)); ok {
|
||||
@@ -433,10 +373,6 @@ func (_m *ThreadStore) GetTotalUnreadUrgentMentions(userId string, teamID string
|
||||
func (_m *ThreadStore) MaintainMembership(userID string, postID string, opts store.ThreadMembershipOpts) (*model.ThreadMembership, error) {
|
||||
ret := _m.Called(userID, postID, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for MaintainMembership")
|
||||
}
|
||||
|
||||
var r0 *model.ThreadMembership
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, store.ThreadMembershipOpts) (*model.ThreadMembership, error)); ok {
|
||||
@@ -463,10 +399,6 @@ func (_m *ThreadStore) MaintainMembership(userID string, postID string, opts sto
|
||||
func (_m *ThreadStore) MarkAllAsRead(userID string, threadIds []string) error {
|
||||
ret := _m.Called(userID, threadIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for MarkAllAsRead")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) error); ok {
|
||||
r0 = rf(userID, threadIds)
|
||||
@@ -481,10 +413,6 @@ func (_m *ThreadStore) MarkAllAsRead(userID string, threadIds []string) error {
|
||||
func (_m *ThreadStore) MarkAllAsReadByChannels(userID string, channelIDs []string) error {
|
||||
ret := _m.Called(userID, channelIDs)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for MarkAllAsReadByChannels")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) error); ok {
|
||||
r0 = rf(userID, channelIDs)
|
||||
@@ -499,10 +427,6 @@ func (_m *ThreadStore) MarkAllAsReadByChannels(userID string, channelIDs []strin
|
||||
func (_m *ThreadStore) MarkAllAsReadByTeam(userID string, teamID string) error {
|
||||
ret := _m.Called(userID, teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for MarkAllAsReadByTeam")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(userID, teamID)
|
||||
@@ -517,10 +441,6 @@ func (_m *ThreadStore) MarkAllAsReadByTeam(userID string, teamID string) error {
|
||||
func (_m *ThreadStore) MarkAsRead(userID string, threadID string, timestamp int64) error {
|
||||
ret := _m.Called(userID, threadID, timestamp)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for MarkAsRead")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, int64) error); ok {
|
||||
r0 = rf(userID, threadID, timestamp)
|
||||
@@ -535,10 +455,6 @@ func (_m *ThreadStore) MarkAsRead(userID string, threadID string, timestamp int6
|
||||
func (_m *ThreadStore) PermanentDeleteBatchForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, cursor model.RetentionPolicyCursor) (int64, model.RetentionPolicyCursor, error) {
|
||||
ret := _m.Called(now, globalPolicyEndTime, limit, cursor)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteBatchForRetentionPolicies")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 model.RetentionPolicyCursor
|
||||
var r2 error
|
||||
@@ -570,10 +486,6 @@ func (_m *ThreadStore) PermanentDeleteBatchForRetentionPolicies(now int64, globa
|
||||
func (_m *ThreadStore) PermanentDeleteBatchThreadMembershipsForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, cursor model.RetentionPolicyCursor) (int64, model.RetentionPolicyCursor, error) {
|
||||
ret := _m.Called(now, globalPolicyEndTime, limit, cursor)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteBatchThreadMembershipsForRetentionPolicies")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 model.RetentionPolicyCursor
|
||||
var r2 error
|
||||
@@ -605,10 +517,6 @@ func (_m *ThreadStore) PermanentDeleteBatchThreadMembershipsForRetentionPolicies
|
||||
func (_m *ThreadStore) UpdateMembership(membership *model.ThreadMembership) (*model.ThreadMembership, error) {
|
||||
ret := _m.Called(membership)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateMembership")
|
||||
}
|
||||
|
||||
var r0 *model.ThreadMembership
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.ThreadMembership) (*model.ThreadMembership, error)); ok {
|
||||
@@ -631,12 +539,13 @@ func (_m *ThreadStore) UpdateMembership(membership *model.ThreadMembership) (*mo
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewThreadStore creates a new instance of ThreadStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewThreadStore(t interface {
|
||||
type mockConstructorTestingTNewThreadStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *ThreadStore {
|
||||
}
|
||||
|
||||
// NewThreadStore creates a new instance of ThreadStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewThreadStore(t mockConstructorTestingTNewThreadStore) *ThreadStore {
|
||||
mock := &ThreadStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -23,10 +23,6 @@ func (_m *TokenStore) Cleanup(expiryTime int64) {
|
||||
func (_m *TokenStore) Delete(token string) error {
|
||||
ret := _m.Called(token)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(token)
|
||||
@@ -41,10 +37,6 @@ func (_m *TokenStore) Delete(token string) error {
|
||||
func (_m *TokenStore) GetAllTokensByType(tokenType string) ([]*model.Token, error) {
|
||||
ret := _m.Called(tokenType)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllTokensByType")
|
||||
}
|
||||
|
||||
var r0 []*model.Token
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.Token, error)); ok {
|
||||
@@ -71,10 +63,6 @@ func (_m *TokenStore) GetAllTokensByType(tokenType string) ([]*model.Token, erro
|
||||
func (_m *TokenStore) GetByToken(token string) (*model.Token, error) {
|
||||
ret := _m.Called(token)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByToken")
|
||||
}
|
||||
|
||||
var r0 *model.Token
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.Token, error)); ok {
|
||||
@@ -101,10 +89,6 @@ func (_m *TokenStore) GetByToken(token string) (*model.Token, error) {
|
||||
func (_m *TokenStore) RemoveAllTokensByType(tokenType string) error {
|
||||
ret := _m.Called(tokenType)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveAllTokensByType")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(tokenType)
|
||||
@@ -119,10 +103,6 @@ func (_m *TokenStore) RemoveAllTokensByType(tokenType string) error {
|
||||
func (_m *TokenStore) Save(recovery *model.Token) error {
|
||||
ret := _m.Called(recovery)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Token) error); ok {
|
||||
r0 = rf(recovery)
|
||||
@@ -133,12 +113,13 @@ func (_m *TokenStore) Save(recovery *model.Token) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewTokenStore creates a new instance of TokenStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewTokenStore(t interface {
|
||||
type mockConstructorTestingTNewTokenStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *TokenStore {
|
||||
}
|
||||
|
||||
// NewTokenStore creates a new instance of TokenStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewTokenStore(t mockConstructorTestingTNewTokenStore) *TokenStore {
|
||||
mock := &TokenStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type TrueUpReviewStore struct {
|
||||
func (_m *TrueUpReviewStore) CreateTrueUpReviewStatusRecord(reviewStatus *model.TrueUpReviewStatus) (*model.TrueUpReviewStatus, error) {
|
||||
ret := _m.Called(reviewStatus)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CreateTrueUpReviewStatusRecord")
|
||||
}
|
||||
|
||||
var r0 *model.TrueUpReviewStatus
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.TrueUpReviewStatus) (*model.TrueUpReviewStatus, error)); ok {
|
||||
@@ -48,10 +44,6 @@ func (_m *TrueUpReviewStore) CreateTrueUpReviewStatusRecord(reviewStatus *model.
|
||||
func (_m *TrueUpReviewStore) GetTrueUpReviewStatus(dueDate int64) (*model.TrueUpReviewStatus, error) {
|
||||
ret := _m.Called(dueDate)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTrueUpReviewStatus")
|
||||
}
|
||||
|
||||
var r0 *model.TrueUpReviewStatus
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64) (*model.TrueUpReviewStatus, error)); ok {
|
||||
@@ -78,10 +70,6 @@ func (_m *TrueUpReviewStore) GetTrueUpReviewStatus(dueDate int64) (*model.TrueUp
|
||||
func (_m *TrueUpReviewStore) Update(reviewStatus *model.TrueUpReviewStatus) (*model.TrueUpReviewStatus, error) {
|
||||
ret := _m.Called(reviewStatus)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
}
|
||||
|
||||
var r0 *model.TrueUpReviewStatus
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.TrueUpReviewStatus) (*model.TrueUpReviewStatus, error)); ok {
|
||||
@@ -104,12 +92,13 @@ func (_m *TrueUpReviewStore) Update(reviewStatus *model.TrueUpReviewStatus) (*mo
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewTrueUpReviewStore creates a new instance of TrueUpReviewStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewTrueUpReviewStore(t interface {
|
||||
type mockConstructorTestingTNewTrueUpReviewStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *TrueUpReviewStore {
|
||||
}
|
||||
|
||||
// NewTrueUpReviewStore creates a new instance of TrueUpReviewStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewTrueUpReviewStore(t mockConstructorTestingTNewTrueUpReviewStore) *TrueUpReviewStore {
|
||||
mock := &TrueUpReviewStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -19,10 +19,6 @@ type UploadSessionStore struct {
|
||||
func (_m *UploadSessionStore) Delete(id string) error {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(id)
|
||||
@@ -37,10 +33,6 @@ func (_m *UploadSessionStore) Delete(id string) error {
|
||||
func (_m *UploadSessionStore) Get(c request.CTX, id string) (*model.UploadSession, error) {
|
||||
ret := _m.Called(c, id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.UploadSession
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) (*model.UploadSession, error)); ok {
|
||||
@@ -67,10 +59,6 @@ func (_m *UploadSessionStore) Get(c request.CTX, id string) (*model.UploadSessio
|
||||
func (_m *UploadSessionStore) GetForUser(userID string) ([]*model.UploadSession, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetForUser")
|
||||
}
|
||||
|
||||
var r0 []*model.UploadSession
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.UploadSession, error)); ok {
|
||||
@@ -97,10 +85,6 @@ func (_m *UploadSessionStore) GetForUser(userID string) ([]*model.UploadSession,
|
||||
func (_m *UploadSessionStore) Save(session *model.UploadSession) (*model.UploadSession, error) {
|
||||
ret := _m.Called(session)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.UploadSession
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.UploadSession) (*model.UploadSession, error)); ok {
|
||||
@@ -127,10 +111,6 @@ func (_m *UploadSessionStore) Save(session *model.UploadSession) (*model.UploadS
|
||||
func (_m *UploadSessionStore) Update(session *model.UploadSession) error {
|
||||
ret := _m.Called(session)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.UploadSession) error); ok {
|
||||
r0 = rf(session)
|
||||
@@ -141,12 +121,13 @@ func (_m *UploadSessionStore) Update(session *model.UploadSession) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewUploadSessionStore creates a new instance of UploadSessionStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewUploadSessionStore(t interface {
|
||||
type mockConstructorTestingTNewUploadSessionStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *UploadSessionStore {
|
||||
}
|
||||
|
||||
// NewUploadSessionStore creates a new instance of UploadSessionStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewUploadSessionStore(t mockConstructorTestingTNewUploadSessionStore) *UploadSessionStore {
|
||||
mock := &UploadSessionStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type UserAccessTokenStore struct {
|
||||
func (_m *UserAccessTokenStore) Delete(tokenID string) error {
|
||||
ret := _m.Called(tokenID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(tokenID)
|
||||
@@ -36,10 +32,6 @@ func (_m *UserAccessTokenStore) Delete(tokenID string) error {
|
||||
func (_m *UserAccessTokenStore) DeleteAllForUser(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteAllForUser")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userID)
|
||||
@@ -54,10 +46,6 @@ func (_m *UserAccessTokenStore) DeleteAllForUser(userID string) error {
|
||||
func (_m *UserAccessTokenStore) Get(tokenID string) (*model.UserAccessToken, error) {
|
||||
ret := _m.Called(tokenID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.UserAccessToken
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.UserAccessToken, error)); ok {
|
||||
@@ -84,10 +72,6 @@ func (_m *UserAccessTokenStore) Get(tokenID string) (*model.UserAccessToken, err
|
||||
func (_m *UserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, error) {
|
||||
ret := _m.Called(offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAll")
|
||||
}
|
||||
|
||||
var r0 []*model.UserAccessToken
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, int) ([]*model.UserAccessToken, error)); ok {
|
||||
@@ -114,10 +98,6 @@ func (_m *UserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAcce
|
||||
func (_m *UserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, error) {
|
||||
ret := _m.Called(tokenString)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByToken")
|
||||
}
|
||||
|
||||
var r0 *model.UserAccessToken
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.UserAccessToken, error)); ok {
|
||||
@@ -144,10 +124,6 @@ func (_m *UserAccessTokenStore) GetByToken(tokenString string) (*model.UserAcces
|
||||
func (_m *UserAccessTokenStore) GetByUser(userID string, page int, perPage int) ([]*model.UserAccessToken, error) {
|
||||
ret := _m.Called(userID, page, perPage)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByUser")
|
||||
}
|
||||
|
||||
var r0 []*model.UserAccessToken
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.UserAccessToken, error)); ok {
|
||||
@@ -174,10 +150,6 @@ func (_m *UserAccessTokenStore) GetByUser(userID string, page int, perPage int)
|
||||
func (_m *UserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, error) {
|
||||
ret := _m.Called(token)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.UserAccessToken
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.UserAccessToken) (*model.UserAccessToken, error)); ok {
|
||||
@@ -204,10 +176,6 @@ func (_m *UserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserA
|
||||
func (_m *UserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, error) {
|
||||
ret := _m.Called(term)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Search")
|
||||
}
|
||||
|
||||
var r0 []*model.UserAccessToken
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.UserAccessToken, error)); ok {
|
||||
@@ -234,10 +202,6 @@ func (_m *UserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, e
|
||||
func (_m *UserAccessTokenStore) UpdateTokenDisable(tokenID string) error {
|
||||
ret := _m.Called(tokenID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateTokenDisable")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(tokenID)
|
||||
@@ -252,10 +216,6 @@ func (_m *UserAccessTokenStore) UpdateTokenDisable(tokenID string) error {
|
||||
func (_m *UserAccessTokenStore) UpdateTokenEnable(tokenID string) error {
|
||||
ret := _m.Called(tokenID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateTokenEnable")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(tokenID)
|
||||
@@ -266,12 +226,13 @@ func (_m *UserAccessTokenStore) UpdateTokenEnable(tokenID string) error {
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewUserAccessTokenStore creates a new instance of UserAccessTokenStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewUserAccessTokenStore(t interface {
|
||||
type mockConstructorTestingTNewUserAccessTokenStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *UserAccessTokenStore {
|
||||
}
|
||||
|
||||
// NewUserAccessTokenStore creates a new instance of UserAccessTokenStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewUserAccessTokenStore(t mockConstructorTestingTNewUserAccessTokenStore) *UserAccessTokenStore {
|
||||
mock := &UserAccessTokenStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -24,10 +24,6 @@ type UserStore struct {
|
||||
func (_m *UserStore) AnalyticsActiveCount(timestamp int64, options model.UserCountOptions) (int64, error) {
|
||||
ret := _m.Called(timestamp, options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsActiveCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64, model.UserCountOptions) (int64, error)); ok {
|
||||
@@ -52,10 +48,6 @@ func (_m *UserStore) AnalyticsActiveCount(timestamp int64, options model.UserCou
|
||||
func (_m *UserStore) AnalyticsActiveCountForPeriod(startTime int64, endTime int64, options model.UserCountOptions) (int64, error) {
|
||||
ret := _m.Called(startTime, endTime, options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsActiveCountForPeriod")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64, int64, model.UserCountOptions) (int64, error)); ok {
|
||||
@@ -80,10 +72,6 @@ func (_m *UserStore) AnalyticsActiveCountForPeriod(startTime int64, endTime int6
|
||||
func (_m *UserStore) AnalyticsGetExternalUsers(hostDomain string) (bool, error) {
|
||||
ret := _m.Called(hostDomain)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsGetExternalUsers")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (bool, error)); ok {
|
||||
@@ -108,10 +96,6 @@ func (_m *UserStore) AnalyticsGetExternalUsers(hostDomain string) (bool, error)
|
||||
func (_m *UserStore) AnalyticsGetGuestCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsGetGuestCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -136,10 +120,6 @@ func (_m *UserStore) AnalyticsGetGuestCount() (int64, error) {
|
||||
func (_m *UserStore) AnalyticsGetInactiveUsersCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsGetInactiveUsersCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -164,10 +144,6 @@ func (_m *UserStore) AnalyticsGetInactiveUsersCount() (int64, error) {
|
||||
func (_m *UserStore) AnalyticsGetSystemAdminCount() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsGetSystemAdminCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -192,10 +168,6 @@ func (_m *UserStore) AnalyticsGetSystemAdminCount() (int64, error) {
|
||||
func (_m *UserStore) AutocompleteUsersInChannel(rctx request.CTX, teamID string, channelID string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, error) {
|
||||
ret := _m.Called(rctx, teamID, channelID, term, options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AutocompleteUsersInChannel")
|
||||
}
|
||||
|
||||
var r0 *model.UserAutocompleteInChannel
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, string, string, *model.UserSearchOptions) (*model.UserAutocompleteInChannel, error)); ok {
|
||||
@@ -222,10 +194,6 @@ func (_m *UserStore) AutocompleteUsersInChannel(rctx request.CTX, teamID string,
|
||||
func (_m *UserStore) ClearAllCustomRoleAssignments() error {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ClearAllCustomRoleAssignments")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func() error); ok {
|
||||
r0 = rf()
|
||||
@@ -245,10 +213,6 @@ func (_m *UserStore) ClearCaches() {
|
||||
func (_m *UserStore) Count(options model.UserCountOptions) (int64, error) {
|
||||
ret := _m.Called(options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Count")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(model.UserCountOptions) (int64, error)); ok {
|
||||
@@ -273,10 +237,6 @@ func (_m *UserStore) Count(options model.UserCountOptions) (int64, error) {
|
||||
func (_m *UserStore) DeactivateGuests() ([]string, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeactivateGuests")
|
||||
}
|
||||
|
||||
var r0 []string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() ([]string, error)); ok {
|
||||
@@ -303,10 +263,6 @@ func (_m *UserStore) DeactivateGuests() ([]string, error) {
|
||||
func (_m *UserStore) DemoteUserToGuest(userID string) (*model.User, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DemoteUserToGuest")
|
||||
}
|
||||
|
||||
var r0 *model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.User, error)); ok {
|
||||
@@ -333,10 +289,6 @@ func (_m *UserStore) DemoteUserToGuest(userID string) (*model.User, error) {
|
||||
func (_m *UserStore) Get(ctx context.Context, id string) (*model.User, error) {
|
||||
ret := _m.Called(ctx, id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Get")
|
||||
}
|
||||
|
||||
var r0 *model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(context.Context, string) (*model.User, error)); ok {
|
||||
@@ -363,10 +315,6 @@ func (_m *UserStore) Get(ctx context.Context, id string) (*model.User, error) {
|
||||
func (_m *UserStore) GetAll() ([]*model.User, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAll")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() ([]*model.User, error)); ok {
|
||||
@@ -393,10 +341,6 @@ func (_m *UserStore) GetAll() ([]*model.User, error) {
|
||||
func (_m *UserStore) GetAllAfter(limit int, afterID string) ([]*model.User, error) {
|
||||
ret := _m.Called(limit, afterID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllAfter")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, string) ([]*model.User, error)); ok {
|
||||
@@ -423,10 +367,6 @@ func (_m *UserStore) GetAllAfter(limit int, afterID string) ([]*model.User, erro
|
||||
func (_m *UserStore) GetAllNotInAuthService(authServices []string) ([]*model.User, error) {
|
||||
ret := _m.Called(authServices)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllNotInAuthService")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string) ([]*model.User, error)); ok {
|
||||
@@ -453,10 +393,6 @@ func (_m *UserStore) GetAllNotInAuthService(authServices []string) ([]*model.Use
|
||||
func (_m *UserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, error) {
|
||||
ret := _m.Called(options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllProfiles")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.UserGetOptions) ([]*model.User, error)); ok {
|
||||
@@ -483,10 +419,6 @@ func (_m *UserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.Use
|
||||
func (_m *UserStore) GetAllProfilesInChannel(ctx context.Context, channelID string, allowFromCache bool) (map[string]*model.User, error) {
|
||||
ret := _m.Called(ctx, channelID, allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllProfilesInChannel")
|
||||
}
|
||||
|
||||
var r0 map[string]*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(context.Context, string, bool) (map[string]*model.User, error)); ok {
|
||||
@@ -513,10 +445,6 @@ func (_m *UserStore) GetAllProfilesInChannel(ctx context.Context, channelID stri
|
||||
func (_m *UserStore) GetAllUsingAuthService(authService string) ([]*model.User, error) {
|
||||
ret := _m.Called(authService)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllUsingAuthService")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.User, error)); ok {
|
||||
@@ -543,10 +471,6 @@ func (_m *UserStore) GetAllUsingAuthService(authService string) ([]*model.User,
|
||||
func (_m *UserStore) GetAnyUnreadPostCountForChannel(userID string, channelID string) (int64, error) {
|
||||
ret := _m.Called(userID, channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAnyUnreadPostCountForChannel")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (int64, error)); ok {
|
||||
@@ -571,10 +495,6 @@ func (_m *UserStore) GetAnyUnreadPostCountForChannel(userID string, channelID st
|
||||
func (_m *UserStore) GetByAuth(authData *string, authService string) (*model.User, error) {
|
||||
ret := _m.Called(authData, authService)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByAuth")
|
||||
}
|
||||
|
||||
var r0 *model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*string, string) (*model.User, error)); ok {
|
||||
@@ -601,10 +521,6 @@ func (_m *UserStore) GetByAuth(authData *string, authService string) (*model.Use
|
||||
func (_m *UserStore) GetByEmail(email string) (*model.User, error) {
|
||||
ret := _m.Called(email)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByEmail")
|
||||
}
|
||||
|
||||
var r0 *model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.User, error)); ok {
|
||||
@@ -631,10 +547,6 @@ func (_m *UserStore) GetByEmail(email string) (*model.User, error) {
|
||||
func (_m *UserStore) GetByRemoteID(remoteID string) (*model.User, error) {
|
||||
ret := _m.Called(remoteID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByRemoteID")
|
||||
}
|
||||
|
||||
var r0 *model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.User, error)); ok {
|
||||
@@ -661,10 +573,6 @@ func (_m *UserStore) GetByRemoteID(remoteID string) (*model.User, error) {
|
||||
func (_m *UserStore) GetByUsername(username string) (*model.User, error) {
|
||||
ret := _m.Called(username)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByUsername")
|
||||
}
|
||||
|
||||
var r0 *model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.User, error)); ok {
|
||||
@@ -691,10 +599,6 @@ func (_m *UserStore) GetByUsername(username string) (*model.User, error) {
|
||||
func (_m *UserStore) GetChannelGroupUsers(channelID string) ([]*model.User, error) {
|
||||
ret := _m.Called(channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetChannelGroupUsers")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.User, error)); ok {
|
||||
@@ -721,10 +625,6 @@ func (_m *UserStore) GetChannelGroupUsers(channelID string) ([]*model.User, erro
|
||||
func (_m *UserStore) GetEtagForAllProfiles() string {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetEtagForAllProfiles")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
if rf, ok := ret.Get(0).(func() string); ok {
|
||||
r0 = rf()
|
||||
@@ -739,10 +639,6 @@ func (_m *UserStore) GetEtagForAllProfiles() string {
|
||||
func (_m *UserStore) GetEtagForProfiles(teamID string) string {
|
||||
ret := _m.Called(teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetEtagForProfiles")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
if rf, ok := ret.Get(0).(func(string) string); ok {
|
||||
r0 = rf(teamID)
|
||||
@@ -757,10 +653,6 @@ func (_m *UserStore) GetEtagForProfiles(teamID string) string {
|
||||
func (_m *UserStore) GetEtagForProfilesNotInTeam(teamID string) string {
|
||||
ret := _m.Called(teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetEtagForProfilesNotInTeam")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
if rf, ok := ret.Get(0).(func(string) string); ok {
|
||||
r0 = rf(teamID)
|
||||
@@ -775,10 +667,6 @@ func (_m *UserStore) GetEtagForProfilesNotInTeam(teamID string) string {
|
||||
func (_m *UserStore) GetForLogin(loginID string, allowSignInWithUsername bool, allowSignInWithEmail bool) (*model.User, error) {
|
||||
ret := _m.Called(loginID, allowSignInWithUsername, allowSignInWithEmail)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetForLogin")
|
||||
}
|
||||
|
||||
var r0 *model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool, bool) (*model.User, error)); ok {
|
||||
@@ -805,10 +693,6 @@ func (_m *UserStore) GetForLogin(loginID string, allowSignInWithUsername bool, a
|
||||
func (_m *UserStore) GetKnownUsers(userID string) ([]string, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetKnownUsers")
|
||||
}
|
||||
|
||||
var r0 []string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]string, error)); ok {
|
||||
@@ -835,10 +719,6 @@ func (_m *UserStore) GetKnownUsers(userID string) ([]string, error) {
|
||||
func (_m *UserStore) GetMany(ctx context.Context, ids []string) ([]*model.User, error) {
|
||||
ret := _m.Called(ctx, ids)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetMany")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(context.Context, []string) ([]*model.User, error)); ok {
|
||||
@@ -865,10 +745,6 @@ func (_m *UserStore) GetMany(ctx context.Context, ids []string) ([]*model.User,
|
||||
func (_m *UserStore) GetNewUsersForTeam(teamID string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error) {
|
||||
ret := _m.Called(teamID, offset, limit, viewRestrictions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetNewUsersForTeam")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int, *model.ViewUsersRestrictions) ([]*model.User, error)); ok {
|
||||
@@ -895,10 +771,6 @@ func (_m *UserStore) GetNewUsersForTeam(teamID string, offset int, limit int, vi
|
||||
func (_m *UserStore) GetProfileByGroupChannelIdsForUser(userID string, channelIds []string) (map[string][]*model.User, error) {
|
||||
ret := _m.Called(userID, channelIds)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetProfileByGroupChannelIdsForUser")
|
||||
}
|
||||
|
||||
var r0 map[string][]*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string) (map[string][]*model.User, error)); ok {
|
||||
@@ -925,10 +797,6 @@ func (_m *UserStore) GetProfileByGroupChannelIdsForUser(userID string, channelId
|
||||
func (_m *UserStore) GetProfileByIds(ctx context.Context, userIds []string, options *store.UserGetByIdsOpts, allowFromCache bool) ([]*model.User, error) {
|
||||
ret := _m.Called(ctx, userIds, options, allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetProfileByIds")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(context.Context, []string, *store.UserGetByIdsOpts, bool) ([]*model.User, error)); ok {
|
||||
@@ -955,10 +823,6 @@ func (_m *UserStore) GetProfileByIds(ctx context.Context, userIds []string, opti
|
||||
func (_m *UserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, error) {
|
||||
ret := _m.Called(options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetProfiles")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.UserGetOptions) ([]*model.User, error)); ok {
|
||||
@@ -985,10 +849,6 @@ func (_m *UserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User,
|
||||
func (_m *UserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error) {
|
||||
ret := _m.Called(usernames, viewRestrictions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetProfilesByUsernames")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]string, *model.ViewUsersRestrictions) ([]*model.User, error)); ok {
|
||||
@@ -1015,10 +875,6 @@ func (_m *UserStore) GetProfilesByUsernames(usernames []string, viewRestrictions
|
||||
func (_m *UserStore) GetProfilesInChannel(options *model.UserGetOptions) ([]*model.User, error) {
|
||||
ret := _m.Called(options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetProfilesInChannel")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.UserGetOptions) ([]*model.User, error)); ok {
|
||||
@@ -1045,10 +901,6 @@ func (_m *UserStore) GetProfilesInChannel(options *model.UserGetOptions) ([]*mod
|
||||
func (_m *UserStore) GetProfilesInChannelByAdmin(options *model.UserGetOptions) ([]*model.User, error) {
|
||||
ret := _m.Called(options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetProfilesInChannelByAdmin")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.UserGetOptions) ([]*model.User, error)); ok {
|
||||
@@ -1075,10 +927,6 @@ func (_m *UserStore) GetProfilesInChannelByAdmin(options *model.UserGetOptions)
|
||||
func (_m *UserStore) GetProfilesInChannelByStatus(options *model.UserGetOptions) ([]*model.User, error) {
|
||||
ret := _m.Called(options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetProfilesInChannelByStatus")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.UserGetOptions) ([]*model.User, error)); ok {
|
||||
@@ -1105,10 +953,6 @@ func (_m *UserStore) GetProfilesInChannelByStatus(options *model.UserGetOptions)
|
||||
func (_m *UserStore) GetProfilesNotInChannel(teamID string, channelId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error) {
|
||||
ret := _m.Called(teamID, channelId, groupConstrained, offset, limit, viewRestrictions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetProfilesNotInChannel")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, bool, int, int, *model.ViewUsersRestrictions) ([]*model.User, error)); ok {
|
||||
@@ -1135,10 +979,6 @@ func (_m *UserStore) GetProfilesNotInChannel(teamID string, channelId string, gr
|
||||
func (_m *UserStore) GetProfilesNotInTeam(teamID string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error) {
|
||||
ret := _m.Called(teamID, groupConstrained, offset, limit, viewRestrictions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetProfilesNotInTeam")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool, int, int, *model.ViewUsersRestrictions) ([]*model.User, error)); ok {
|
||||
@@ -1165,10 +1005,6 @@ func (_m *UserStore) GetProfilesNotInTeam(teamID string, groupConstrained bool,
|
||||
func (_m *UserStore) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, error) {
|
||||
ret := _m.Called(options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetProfilesWithoutTeam")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.UserGetOptions) ([]*model.User, error)); ok {
|
||||
@@ -1195,10 +1031,6 @@ func (_m *UserStore) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*m
|
||||
func (_m *UserStore) GetRecentlyActiveUsersForTeam(teamID string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error) {
|
||||
ret := _m.Called(teamID, offset, limit, viewRestrictions)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetRecentlyActiveUsersForTeam")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int, *model.ViewUsersRestrictions) ([]*model.User, error)); ok {
|
||||
@@ -1225,10 +1057,6 @@ func (_m *UserStore) GetRecentlyActiveUsersForTeam(teamID string, offset int, li
|
||||
func (_m *UserStore) GetSystemAdminProfiles() (map[string]*model.User, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetSystemAdminProfiles")
|
||||
}
|
||||
|
||||
var r0 map[string]*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (map[string]*model.User, error)); ok {
|
||||
@@ -1255,10 +1083,6 @@ func (_m *UserStore) GetSystemAdminProfiles() (map[string]*model.User, error) {
|
||||
func (_m *UserStore) GetTeamGroupUsers(teamID string) ([]*model.User, error) {
|
||||
ret := _m.Called(teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetTeamGroupUsers")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.User, error)); ok {
|
||||
@@ -1285,10 +1109,6 @@ func (_m *UserStore) GetTeamGroupUsers(teamID string) ([]*model.User, error) {
|
||||
func (_m *UserStore) GetUnreadCount(userID string, isCRTEnabled bool) (int64, error) {
|
||||
ret := _m.Called(userID, isCRTEnabled)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUnreadCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) (int64, error)); ok {
|
||||
@@ -1313,10 +1133,6 @@ func (_m *UserStore) GetUnreadCount(userID string, isCRTEnabled bool) (int64, er
|
||||
func (_m *UserStore) GetUnreadCountForChannel(userID string, channelID string) (int64, error) {
|
||||
ret := _m.Called(userID, channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUnreadCountForChannel")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (int64, error)); ok {
|
||||
@@ -1341,10 +1157,6 @@ func (_m *UserStore) GetUnreadCountForChannel(userID string, channelID string) (
|
||||
func (_m *UserStore) GetUserCountForReport(filter *model.UserReportOptions) (int64, error) {
|
||||
ret := _m.Called(filter)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUserCountForReport")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.UserReportOptions) (int64, error)); ok {
|
||||
@@ -1369,10 +1181,6 @@ func (_m *UserStore) GetUserCountForReport(filter *model.UserReportOptions) (int
|
||||
func (_m *UserStore) GetUserReport(filter *model.UserReportOptions) ([]*model.UserReportQuery, error) {
|
||||
ret := _m.Called(filter)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUserReport")
|
||||
}
|
||||
|
||||
var r0 []*model.UserReportQuery
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.UserReportOptions) ([]*model.UserReportQuery, error)); ok {
|
||||
@@ -1399,10 +1207,6 @@ func (_m *UserStore) GetUserReport(filter *model.UserReportOptions) ([]*model.Us
|
||||
func (_m *UserStore) GetUsersBatchForIndexing(startTime int64, startFileID string, limit int) ([]*model.UserForIndexing, error) {
|
||||
ret := _m.Called(startTime, startFileID, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUsersBatchForIndexing")
|
||||
}
|
||||
|
||||
var r0 []*model.UserForIndexing
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int64, string, int) ([]*model.UserForIndexing, error)); ok {
|
||||
@@ -1429,10 +1233,6 @@ func (_m *UserStore) GetUsersBatchForIndexing(startTime int64, startFileID strin
|
||||
func (_m *UserStore) GetUsersWithInvalidEmails(page int, perPage int, restrictedDomains string) ([]*model.User, error) {
|
||||
ret := _m.Called(page, perPage, restrictedDomains)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUsersWithInvalidEmails")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, int, string) ([]*model.User, error)); ok {
|
||||
@@ -1459,10 +1259,6 @@ func (_m *UserStore) GetUsersWithInvalidEmails(page int, perPage int, restricted
|
||||
func (_m *UserStore) InferSystemInstallDate() (int64, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for InferSystemInstallDate")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (int64, error)); ok {
|
||||
@@ -1487,10 +1283,6 @@ func (_m *UserStore) InferSystemInstallDate() (int64, error) {
|
||||
func (_m *UserStore) InsertUsers(users []*model.User) error {
|
||||
ret := _m.Called(users)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for InsertUsers")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func([]*model.User) error); ok {
|
||||
r0 = rf(users)
|
||||
@@ -1520,10 +1312,6 @@ func (_m *UserStore) InvalidateProfilesInChannelCacheByUser(userID string) {
|
||||
func (_m *UserStore) IsEmpty(excludeBots bool) (bool, error) {
|
||||
ret := _m.Called(excludeBots)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for IsEmpty")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(bool) (bool, error)); ok {
|
||||
@@ -1548,10 +1336,6 @@ func (_m *UserStore) IsEmpty(excludeBots bool) (bool, error) {
|
||||
func (_m *UserStore) PermanentDelete(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDelete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userID)
|
||||
@@ -1566,10 +1350,6 @@ func (_m *UserStore) PermanentDelete(userID string) error {
|
||||
func (_m *UserStore) PromoteGuestToUser(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PromoteGuestToUser")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userID)
|
||||
@@ -1584,10 +1364,6 @@ func (_m *UserStore) PromoteGuestToUser(userID string) error {
|
||||
func (_m *UserStore) RefreshPostStatsForUsers() error {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RefreshPostStatsForUsers")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func() error); ok {
|
||||
r0 = rf()
|
||||
@@ -1602,10 +1378,6 @@ func (_m *UserStore) RefreshPostStatsForUsers() error {
|
||||
func (_m *UserStore) ResetAuthDataToEmailForUsers(service string, userIDs []string, includeDeleted bool, dryRun bool) (int, error) {
|
||||
ret := _m.Called(service, userIDs, includeDeleted, dryRun)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ResetAuthDataToEmailForUsers")
|
||||
}
|
||||
|
||||
var r0 int
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, []string, bool, bool) (int, error)); ok {
|
||||
@@ -1630,10 +1402,6 @@ func (_m *UserStore) ResetAuthDataToEmailForUsers(service string, userIDs []stri
|
||||
func (_m *UserStore) ResetLastPictureUpdate(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ResetLastPictureUpdate")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userID)
|
||||
@@ -1648,10 +1416,6 @@ func (_m *UserStore) ResetLastPictureUpdate(userID string) error {
|
||||
func (_m *UserStore) Save(rctx request.CTX, user *model.User) (*model.User, error) {
|
||||
ret := _m.Called(rctx, user)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, *model.User) (*model.User, error)); ok {
|
||||
@@ -1678,10 +1442,6 @@ func (_m *UserStore) Save(rctx request.CTX, user *model.User) (*model.User, erro
|
||||
func (_m *UserStore) Search(rctx request.CTX, teamID string, term string, options *model.UserSearchOptions) ([]*model.User, error) {
|
||||
ret := _m.Called(rctx, teamID, term, options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Search")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, string, *model.UserSearchOptions) ([]*model.User, error)); ok {
|
||||
@@ -1708,10 +1468,6 @@ func (_m *UserStore) Search(rctx request.CTX, teamID string, term string, option
|
||||
func (_m *UserStore) SearchInChannel(channelID string, term string, options *model.UserSearchOptions) ([]*model.User, error) {
|
||||
ret := _m.Called(channelID, term, options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SearchInChannel")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, *model.UserSearchOptions) ([]*model.User, error)); ok {
|
||||
@@ -1738,10 +1494,6 @@ func (_m *UserStore) SearchInChannel(channelID string, term string, options *mod
|
||||
func (_m *UserStore) SearchInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, error) {
|
||||
ret := _m.Called(groupID, term, options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SearchInGroup")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, *model.UserSearchOptions) ([]*model.User, error)); ok {
|
||||
@@ -1768,10 +1520,6 @@ func (_m *UserStore) SearchInGroup(groupID string, term string, options *model.U
|
||||
func (_m *UserStore) SearchNotInChannel(teamID string, channelID string, term string, options *model.UserSearchOptions) ([]*model.User, error) {
|
||||
ret := _m.Called(teamID, channelID, term, options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SearchNotInChannel")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, *model.UserSearchOptions) ([]*model.User, error)); ok {
|
||||
@@ -1798,10 +1546,6 @@ func (_m *UserStore) SearchNotInChannel(teamID string, channelID string, term st
|
||||
func (_m *UserStore) SearchNotInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, error) {
|
||||
ret := _m.Called(groupID, term, options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SearchNotInGroup")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, *model.UserSearchOptions) ([]*model.User, error)); ok {
|
||||
@@ -1828,10 +1572,6 @@ func (_m *UserStore) SearchNotInGroup(groupID string, term string, options *mode
|
||||
func (_m *UserStore) SearchNotInTeam(notInTeamID string, term string, options *model.UserSearchOptions) ([]*model.User, error) {
|
||||
ret := _m.Called(notInTeamID, term, options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SearchNotInTeam")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, *model.UserSearchOptions) ([]*model.User, error)); ok {
|
||||
@@ -1858,10 +1598,6 @@ func (_m *UserStore) SearchNotInTeam(notInTeamID string, term string, options *m
|
||||
func (_m *UserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, error) {
|
||||
ret := _m.Called(term, options)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SearchWithoutTeam")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, *model.UserSearchOptions) ([]*model.User, error)); ok {
|
||||
@@ -1888,10 +1624,6 @@ func (_m *UserStore) SearchWithoutTeam(term string, options *model.UserSearchOpt
|
||||
func (_m *UserStore) Update(rctx request.CTX, user *model.User, allowRoleUpdate bool) (*model.UserUpdate, error) {
|
||||
ret := _m.Called(rctx, user, allowRoleUpdate)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Update")
|
||||
}
|
||||
|
||||
var r0 *model.UserUpdate
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, *model.User, bool) (*model.UserUpdate, error)); ok {
|
||||
@@ -1918,10 +1650,6 @@ func (_m *UserStore) Update(rctx request.CTX, user *model.User, allowRoleUpdate
|
||||
func (_m *UserStore) UpdateAuthData(userID string, service string, authData *string, email string, resetMfa bool) (string, error) {
|
||||
ret := _m.Called(userID, service, authData, email, resetMfa)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateAuthData")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, *string, string, bool) (string, error)); ok {
|
||||
@@ -1946,10 +1674,6 @@ func (_m *UserStore) UpdateAuthData(userID string, service string, authData *str
|
||||
func (_m *UserStore) UpdateFailedPasswordAttempts(userID string, attempts int) error {
|
||||
ret := _m.Called(userID, attempts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateFailedPasswordAttempts")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, int) error); ok {
|
||||
r0 = rf(userID, attempts)
|
||||
@@ -1964,10 +1688,6 @@ func (_m *UserStore) UpdateFailedPasswordAttempts(userID string, attempts int) e
|
||||
func (_m *UserStore) UpdateLastLogin(userID string, lastLogin int64) error {
|
||||
ret := _m.Called(userID, lastLogin)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateLastLogin")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) error); ok {
|
||||
r0 = rf(userID, lastLogin)
|
||||
@@ -1982,10 +1702,6 @@ func (_m *UserStore) UpdateLastLogin(userID string, lastLogin int64) error {
|
||||
func (_m *UserStore) UpdateLastPictureUpdate(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateLastPictureUpdate")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userID)
|
||||
@@ -2000,10 +1716,6 @@ func (_m *UserStore) UpdateLastPictureUpdate(userID string) error {
|
||||
func (_m *UserStore) UpdateMfaActive(userID string, active bool) error {
|
||||
ret := _m.Called(userID, active)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateMfaActive")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) error); ok {
|
||||
r0 = rf(userID, active)
|
||||
@@ -2018,10 +1730,6 @@ func (_m *UserStore) UpdateMfaActive(userID string, active bool) error {
|
||||
func (_m *UserStore) UpdateMfaSecret(userID string, secret string) error {
|
||||
ret := _m.Called(userID, secret)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateMfaSecret")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(userID, secret)
|
||||
@@ -2036,10 +1744,6 @@ func (_m *UserStore) UpdateMfaSecret(userID string, secret string) error {
|
||||
func (_m *UserStore) UpdateNotifyProps(userID string, props map[string]string) error {
|
||||
ret := _m.Called(userID, props)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateNotifyProps")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, map[string]string) error); ok {
|
||||
r0 = rf(userID, props)
|
||||
@@ -2054,10 +1758,6 @@ func (_m *UserStore) UpdateNotifyProps(userID string, props map[string]string) e
|
||||
func (_m *UserStore) UpdatePassword(userID string, newPassword string) error {
|
||||
ret := _m.Called(userID, newPassword)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdatePassword")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(userID, newPassword)
|
||||
@@ -2072,10 +1772,6 @@ func (_m *UserStore) UpdatePassword(userID string, newPassword string) error {
|
||||
func (_m *UserStore) UpdateUpdateAt(userID string) (int64, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateUpdateAt")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int64, error)); ok {
|
||||
@@ -2100,10 +1796,6 @@ func (_m *UserStore) UpdateUpdateAt(userID string) (int64, error) {
|
||||
func (_m *UserStore) VerifyEmail(userID string, email string) (string, error) {
|
||||
ret := _m.Called(userID, email)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for VerifyEmail")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) (string, error)); ok {
|
||||
@@ -2124,12 +1816,13 @@ func (_m *UserStore) VerifyEmail(userID string, email string) (string, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewUserStore creates a new instance of UserStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewUserStore(t interface {
|
||||
type mockConstructorTestingTNewUserStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *UserStore {
|
||||
}
|
||||
|
||||
// NewUserStore creates a new instance of UserStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewUserStore(t mockConstructorTestingTNewUserStore) *UserStore {
|
||||
mock := &UserStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type UserTermsOfServiceStore struct {
|
||||
func (_m *UserTermsOfServiceStore) Delete(userID string, termsOfServiceId string) error {
|
||||
ret := _m.Called(userID, termsOfServiceId)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Delete")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(userID, termsOfServiceId)
|
||||
@@ -36,10 +32,6 @@ func (_m *UserTermsOfServiceStore) Delete(userID string, termsOfServiceId string
|
||||
func (_m *UserTermsOfServiceStore) GetByUser(userID string) (*model.UserTermsOfService, error) {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetByUser")
|
||||
}
|
||||
|
||||
var r0 *model.UserTermsOfService
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.UserTermsOfService, error)); ok {
|
||||
@@ -66,10 +58,6 @@ func (_m *UserTermsOfServiceStore) GetByUser(userID string) (*model.UserTermsOfS
|
||||
func (_m *UserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, error) {
|
||||
ret := _m.Called(userTermsOfService)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Save")
|
||||
}
|
||||
|
||||
var r0 *model.UserTermsOfService
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.UserTermsOfService) (*model.UserTermsOfService, error)); ok {
|
||||
@@ -92,12 +80,13 @@ func (_m *UserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfSer
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewUserTermsOfServiceStore creates a new instance of UserTermsOfServiceStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewUserTermsOfServiceStore(t interface {
|
||||
type mockConstructorTestingTNewUserTermsOfServiceStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *UserTermsOfServiceStore {
|
||||
}
|
||||
|
||||
// NewUserTermsOfServiceStore creates a new instance of UserTermsOfServiceStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewUserTermsOfServiceStore(t mockConstructorTestingTNewUserTermsOfServiceStore) *UserTermsOfServiceStore {
|
||||
mock := &UserTermsOfServiceStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make store-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type WebhookStore struct {
|
||||
func (_m *WebhookStore) AnalyticsIncomingCount(teamID string) (int64, error) {
|
||||
ret := _m.Called(teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsIncomingCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int64, error)); ok {
|
||||
@@ -46,10 +42,6 @@ func (_m *WebhookStore) AnalyticsIncomingCount(teamID string) (int64, error) {
|
||||
func (_m *WebhookStore) AnalyticsOutgoingCount(teamID string) (int64, error) {
|
||||
ret := _m.Called(teamID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AnalyticsOutgoingCount")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int64, error)); ok {
|
||||
@@ -79,10 +71,6 @@ func (_m *WebhookStore) ClearCaches() {
|
||||
func (_m *WebhookStore) DeleteIncoming(webhookID string, timestamp int64) error {
|
||||
ret := _m.Called(webhookID, timestamp)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteIncoming")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) error); ok {
|
||||
r0 = rf(webhookID, timestamp)
|
||||
@@ -97,10 +85,6 @@ func (_m *WebhookStore) DeleteIncoming(webhookID string, timestamp int64) error
|
||||
func (_m *WebhookStore) DeleteOutgoing(webhookID string, timestamp int64) error {
|
||||
ret := _m.Called(webhookID, timestamp)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DeleteOutgoing")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, int64) error); ok {
|
||||
r0 = rf(webhookID, timestamp)
|
||||
@@ -115,10 +99,6 @@ func (_m *WebhookStore) DeleteOutgoing(webhookID string, timestamp int64) error
|
||||
func (_m *WebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, error) {
|
||||
ret := _m.Called(id, allowFromCache)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetIncoming")
|
||||
}
|
||||
|
||||
var r0 *model.IncomingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, bool) (*model.IncomingWebhook, error)); ok {
|
||||
@@ -145,10 +125,6 @@ func (_m *WebhookStore) GetIncoming(id string, allowFromCache bool) (*model.Inco
|
||||
func (_m *WebhookStore) GetIncomingByChannel(channelID string) ([]*model.IncomingWebhook, error) {
|
||||
ret := _m.Called(channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetIncomingByChannel")
|
||||
}
|
||||
|
||||
var r0 []*model.IncomingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]*model.IncomingWebhook, error)); ok {
|
||||
@@ -175,10 +151,6 @@ func (_m *WebhookStore) GetIncomingByChannel(channelID string) ([]*model.Incomin
|
||||
func (_m *WebhookStore) GetIncomingByTeam(teamID string, offset int, limit int) ([]*model.IncomingWebhook, error) {
|
||||
ret := _m.Called(teamID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetIncomingByTeam")
|
||||
}
|
||||
|
||||
var r0 []*model.IncomingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.IncomingWebhook, error)); ok {
|
||||
@@ -205,10 +177,6 @@ func (_m *WebhookStore) GetIncomingByTeam(teamID string, offset int, limit int)
|
||||
func (_m *WebhookStore) GetIncomingByTeamByUser(teamID string, userID string, offset int, limit int) ([]*model.IncomingWebhook, error) {
|
||||
ret := _m.Called(teamID, userID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetIncomingByTeamByUser")
|
||||
}
|
||||
|
||||
var r0 []*model.IncomingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, int, int) ([]*model.IncomingWebhook, error)); ok {
|
||||
@@ -235,10 +203,6 @@ func (_m *WebhookStore) GetIncomingByTeamByUser(teamID string, userID string, of
|
||||
func (_m *WebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, error) {
|
||||
ret := _m.Called(offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetIncomingList")
|
||||
}
|
||||
|
||||
var r0 []*model.IncomingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, int) ([]*model.IncomingWebhook, error)); ok {
|
||||
@@ -265,10 +229,6 @@ func (_m *WebhookStore) GetIncomingList(offset int, limit int) ([]*model.Incomin
|
||||
func (_m *WebhookStore) GetIncomingListByUser(userID string, offset int, limit int) ([]*model.IncomingWebhook, error) {
|
||||
ret := _m.Called(userID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetIncomingListByUser")
|
||||
}
|
||||
|
||||
var r0 []*model.IncomingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.IncomingWebhook, error)); ok {
|
||||
@@ -295,10 +255,6 @@ func (_m *WebhookStore) GetIncomingListByUser(userID string, offset int, limit i
|
||||
func (_m *WebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, error) {
|
||||
ret := _m.Called(id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetOutgoing")
|
||||
}
|
||||
|
||||
var r0 *model.OutgoingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (*model.OutgoingWebhook, error)); ok {
|
||||
@@ -325,10 +281,6 @@ func (_m *WebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, error) {
|
||||
func (_m *WebhookStore) GetOutgoingByChannel(channelID string, offset int, limit int) ([]*model.OutgoingWebhook, error) {
|
||||
ret := _m.Called(channelID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetOutgoingByChannel")
|
||||
}
|
||||
|
||||
var r0 []*model.OutgoingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.OutgoingWebhook, error)); ok {
|
||||
@@ -355,10 +307,6 @@ func (_m *WebhookStore) GetOutgoingByChannel(channelID string, offset int, limit
|
||||
func (_m *WebhookStore) GetOutgoingByChannelByUser(channelID string, userID string, offset int, limit int) ([]*model.OutgoingWebhook, error) {
|
||||
ret := _m.Called(channelID, userID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetOutgoingByChannelByUser")
|
||||
}
|
||||
|
||||
var r0 []*model.OutgoingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, int, int) ([]*model.OutgoingWebhook, error)); ok {
|
||||
@@ -385,10 +333,6 @@ func (_m *WebhookStore) GetOutgoingByChannelByUser(channelID string, userID stri
|
||||
func (_m *WebhookStore) GetOutgoingByTeam(teamID string, offset int, limit int) ([]*model.OutgoingWebhook, error) {
|
||||
ret := _m.Called(teamID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetOutgoingByTeam")
|
||||
}
|
||||
|
||||
var r0 []*model.OutgoingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.OutgoingWebhook, error)); ok {
|
||||
@@ -415,10 +359,6 @@ func (_m *WebhookStore) GetOutgoingByTeam(teamID string, offset int, limit int)
|
||||
func (_m *WebhookStore) GetOutgoingByTeamByUser(teamID string, userID string, offset int, limit int) ([]*model.OutgoingWebhook, error) {
|
||||
ret := _m.Called(teamID, userID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetOutgoingByTeamByUser")
|
||||
}
|
||||
|
||||
var r0 []*model.OutgoingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, string, int, int) ([]*model.OutgoingWebhook, error)); ok {
|
||||
@@ -445,10 +385,6 @@ func (_m *WebhookStore) GetOutgoingByTeamByUser(teamID string, userID string, of
|
||||
func (_m *WebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, error) {
|
||||
ret := _m.Called(offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetOutgoingList")
|
||||
}
|
||||
|
||||
var r0 []*model.OutgoingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(int, int) ([]*model.OutgoingWebhook, error)); ok {
|
||||
@@ -475,10 +411,6 @@ func (_m *WebhookStore) GetOutgoingList(offset int, limit int) ([]*model.Outgoin
|
||||
func (_m *WebhookStore) GetOutgoingListByUser(userID string, offset int, limit int) ([]*model.OutgoingWebhook, error) {
|
||||
ret := _m.Called(userID, offset, limit)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetOutgoingListByUser")
|
||||
}
|
||||
|
||||
var r0 []*model.OutgoingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) ([]*model.OutgoingWebhook, error)); ok {
|
||||
@@ -510,10 +442,6 @@ func (_m *WebhookStore) InvalidateWebhookCache(webhook string) {
|
||||
func (_m *WebhookStore) PermanentDeleteIncomingByChannel(channelID string) error {
|
||||
ret := _m.Called(channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteIncomingByChannel")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(channelID)
|
||||
@@ -528,10 +456,6 @@ func (_m *WebhookStore) PermanentDeleteIncomingByChannel(channelID string) error
|
||||
func (_m *WebhookStore) PermanentDeleteIncomingByUser(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteIncomingByUser")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userID)
|
||||
@@ -546,10 +470,6 @@ func (_m *WebhookStore) PermanentDeleteIncomingByUser(userID string) error {
|
||||
func (_m *WebhookStore) PermanentDeleteOutgoingByChannel(channelID string) error {
|
||||
ret := _m.Called(channelID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteOutgoingByChannel")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(channelID)
|
||||
@@ -564,10 +484,6 @@ func (_m *WebhookStore) PermanentDeleteOutgoingByChannel(channelID string) error
|
||||
func (_m *WebhookStore) PermanentDeleteOutgoingByUser(userID string) error {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for PermanentDeleteOutgoingByUser")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userID)
|
||||
@@ -582,10 +498,6 @@ func (_m *WebhookStore) PermanentDeleteOutgoingByUser(userID string) error {
|
||||
func (_m *WebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, error) {
|
||||
ret := _m.Called(webhook)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveIncoming")
|
||||
}
|
||||
|
||||
var r0 *model.IncomingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.IncomingWebhook) (*model.IncomingWebhook, error)); ok {
|
||||
@@ -612,10 +524,6 @@ func (_m *WebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.Inc
|
||||
func (_m *WebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, error) {
|
||||
ret := _m.Called(webhook)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SaveOutgoing")
|
||||
}
|
||||
|
||||
var r0 *model.OutgoingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.OutgoingWebhook) (*model.OutgoingWebhook, error)); ok {
|
||||
@@ -642,10 +550,6 @@ func (_m *WebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.Out
|
||||
func (_m *WebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, error) {
|
||||
ret := _m.Called(webhook)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateIncoming")
|
||||
}
|
||||
|
||||
var r0 *model.IncomingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.IncomingWebhook) (*model.IncomingWebhook, error)); ok {
|
||||
@@ -672,10 +576,6 @@ func (_m *WebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.I
|
||||
func (_m *WebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, error) {
|
||||
ret := _m.Called(hook)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for UpdateOutgoing")
|
||||
}
|
||||
|
||||
var r0 *model.OutgoingWebhook
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(*model.OutgoingWebhook) (*model.OutgoingWebhook, error)); ok {
|
||||
@@ -698,12 +598,13 @@ func (_m *WebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.Outg
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewWebhookStore creates a new instance of WebhookStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewWebhookStore(t interface {
|
||||
type mockConstructorTestingTNewWebhookStore interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *WebhookStore {
|
||||
}
|
||||
|
||||
// NewWebhookStore creates a new instance of WebhookStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewWebhookStore(t mockConstructorTestingTNewWebhookStore) *WebhookStore {
|
||||
mock := &WebhookStore{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make misc-mocks`.
|
||||
|
||||
@@ -18,10 +18,6 @@ type LicenseValidatorIface struct {
|
||||
func (_m *LicenseValidatorIface) LicenseFromBytes(licenseBytes []byte) (*model.License, *model.AppError) {
|
||||
ret := _m.Called(licenseBytes)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for LicenseFromBytes")
|
||||
}
|
||||
|
||||
var r0 *model.License
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func([]byte) (*model.License, *model.AppError)); ok {
|
||||
@@ -50,10 +46,6 @@ func (_m *LicenseValidatorIface) LicenseFromBytes(licenseBytes []byte) (*model.L
|
||||
func (_m *LicenseValidatorIface) ValidateLicense(signed []byte) (string, error) {
|
||||
ret := _m.Called(signed)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ValidateLicense")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]byte) (string, error)); ok {
|
||||
@@ -74,12 +66,13 @@ func (_m *LicenseValidatorIface) ValidateLicense(signed []byte) (string, error)
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewLicenseValidatorIface creates a new instance of LicenseValidatorIface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewLicenseValidatorIface(t interface {
|
||||
type mockConstructorTestingTNewLicenseValidatorIface interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *LicenseValidatorIface {
|
||||
}
|
||||
|
||||
// NewLicenseValidatorIface creates a new instance of LicenseValidatorIface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewLicenseValidatorIface(t mockConstructorTestingTNewLicenseValidatorIface) *LicenseValidatorIface {
|
||||
mock := &LicenseValidatorIface{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user