mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* add warning count as return value * add warning count as return value * fix file name * update mock * add setting warning to db * replace wrongly removed string * add dummy function to see if it will build * remove dummy function Co-authored-by: mattermod <mattermod@users.noreply.github.com>
67 lines
1.6 KiB
Go
67 lines
1.6 KiB
Go
// Code generated by mockery v1.0.0. DO NOT EDIT.
|
|
|
|
// Regenerate this file using `make einterfaces-mocks`.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
context "context"
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
|
|
model "github.com/mattermost/mattermost-server/v5/model"
|
|
)
|
|
|
|
// MessageExportInterface is an autogenerated mock type for the MessageExportInterface type
|
|
type MessageExportInterface struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// RunExport provides a mock function with given fields: format, since
|
|
func (_m *MessageExportInterface) RunExport(format string, since int64) (int64, *model.AppError) {
|
|
ret := _m.Called(format, since)
|
|
|
|
var r0 int64
|
|
if rf, ok := ret.Get(0).(func(string, int64) int64); ok {
|
|
r0 = rf(format, since)
|
|
} else {
|
|
r0 = ret.Get(0).(int64)
|
|
}
|
|
|
|
var r1 *model.AppError
|
|
if rf, ok := ret.Get(1).(func(string, int64) *model.AppError); ok {
|
|
r1 = rf(format, since)
|
|
} else {
|
|
if ret.Get(1) != nil {
|
|
r1 = ret.Get(1).(*model.AppError)
|
|
}
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// StartSynchronizeJob provides a mock function with given fields: ctx, exportFromTimestamp
|
|
func (_m *MessageExportInterface) StartSynchronizeJob(ctx context.Context, exportFromTimestamp int64) (*model.Job, *model.AppError) {
|
|
ret := _m.Called(ctx, exportFromTimestamp)
|
|
|
|
var r0 *model.Job
|
|
if rf, ok := ret.Get(0).(func(context.Context, int64) *model.Job); ok {
|
|
r0 = rf(ctx, exportFromTimestamp)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*model.Job)
|
|
}
|
|
}
|
|
|
|
var r1 *model.AppError
|
|
if rf, ok := ret.Get(1).(func(context.Context, int64) *model.AppError); ok {
|
|
r1 = rf(ctx, exportFromTimestamp)
|
|
} else {
|
|
if ret.Get(1) != nil {
|
|
r1 = ret.Get(1).(*model.AppError)
|
|
}
|
|
}
|
|
|
|
return r0, r1
|
|
}
|