mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-11 23:03:45 -05:00
* Revert "Revert "MM-57759: Bump mockery to version 2.42.2 to support go 1.22^" (#26772)"
This reverts commit cd3b5b46e1.
* Added the hooks.go file changes as well
```release-note
NONE
```
92 lines
2.6 KiB
Go
92 lines
2.6 KiB
Go
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
|
|
|
// Regenerate this file using `make einterfaces-mocks`.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
model "github.com/mattermost/mattermost/server/public/model"
|
|
request "github.com/mattermost/mattermost/server/public/shared/request"
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// MessageExportInterface is an autogenerated mock type for the MessageExportInterface type
|
|
type MessageExportInterface struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// RunExport provides a mock function with given fields: c, format, since, limit
|
|
func (_m *MessageExportInterface) RunExport(c request.CTX, format string, since int64, limit int) (int64, *model.AppError) {
|
|
ret := _m.Called(c, format, since, limit)
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for RunExport")
|
|
}
|
|
|
|
var r0 int64
|
|
var r1 *model.AppError
|
|
if rf, ok := ret.Get(0).(func(request.CTX, string, int64, int) (int64, *model.AppError)); ok {
|
|
return rf(c, format, since, limit)
|
|
}
|
|
if rf, ok := ret.Get(0).(func(request.CTX, string, int64, int) int64); ok {
|
|
r0 = rf(c, format, since, limit)
|
|
} else {
|
|
r0 = ret.Get(0).(int64)
|
|
}
|
|
|
|
if rf, ok := ret.Get(1).(func(request.CTX, string, int64, int) *model.AppError); ok {
|
|
r1 = rf(c, format, since, limit)
|
|
} else {
|
|
if ret.Get(1) != nil {
|
|
r1 = ret.Get(1).(*model.AppError)
|
|
}
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// StartSynchronizeJob provides a mock function with given fields: c, exportFromTimestamp
|
|
func (_m *MessageExportInterface) StartSynchronizeJob(c request.CTX, exportFromTimestamp int64) (*model.Job, *model.AppError) {
|
|
ret := _m.Called(c, exportFromTimestamp)
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for StartSynchronizeJob")
|
|
}
|
|
|
|
var r0 *model.Job
|
|
var r1 *model.AppError
|
|
if rf, ok := ret.Get(0).(func(request.CTX, int64) (*model.Job, *model.AppError)); ok {
|
|
return rf(c, exportFromTimestamp)
|
|
}
|
|
if rf, ok := ret.Get(0).(func(request.CTX, int64) *model.Job); ok {
|
|
r0 = rf(c, exportFromTimestamp)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*model.Job)
|
|
}
|
|
}
|
|
|
|
if rf, ok := ret.Get(1).(func(request.CTX, int64) *model.AppError); ok {
|
|
r1 = rf(c, exportFromTimestamp)
|
|
} else {
|
|
if ret.Get(1) != nil {
|
|
r1 = ret.Get(1).(*model.AppError)
|
|
}
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// NewMessageExportInterface creates a new instance of MessageExportInterface. 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 NewMessageExportInterface(t interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}) *MessageExportInterface {
|
|
mock := &MessageExportInterface{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|