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 einterfaces-mocks`.
@@ -19,10 +19,6 @@ type NotificationInterface struct {
func (_m *NotificationInterface) CheckLicense() *model.AppError {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for CheckLicense")
}
var r0 *model.AppError
if rf, ok := ret.Get(0).(func() *model.AppError); ok {
r0 = rf()
@@ -39,10 +35,6 @@ func (_m *NotificationInterface) CheckLicense() *model.AppError {
func (_m *NotificationInterface) GetNotificationMessage(c request.CTX, ack *model.PushNotificationAck, userID string) (*model.PushNotification, *model.AppError) {
ret := _m.Called(c, ack, userID)
if len(ret) == 0 {
panic("no return value specified for GetNotificationMessage")
}
var r0 *model.PushNotification
var r1 *model.AppError
if rf, ok := ret.Get(0).(func(request.CTX, *model.PushNotificationAck, string) (*model.PushNotification, *model.AppError)); ok {
@@ -67,12 +59,13 @@ func (_m *NotificationInterface) GetNotificationMessage(c request.CTX, ack *mode
return r0, r1
}
// NewNotificationInterface creates a new instance of NotificationInterface. 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 NewNotificationInterface(t interface {
type mockConstructorTestingTNewNotificationInterface interface {
mock.TestingT
Cleanup(func())
}) *NotificationInterface {
}
// NewNotificationInterface creates a new instance of NotificationInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewNotificationInterface(t mockConstructorTestingTNewNotificationInterface) *NotificationInterface {
mock := &NotificationInterface{}
mock.Mock.Test(t)