Revert "MM-57759: Bump mockery to version 2.42.2 to support go 1.22^" (#26772)

Этот коммит содержится в:
Agniva De Sarker
2024-04-12 19:01:24 +05:30
коммит произвёл GitHub
родитель c76a58b4b8
Коммит cd3b5b46e1
84 изменённых файлов: 504 добавлений и 5378 удалений

Просмотреть файл

@@ -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 {