github.com/vnforks/kid/v5@v5.22.1-0.20200408055009-b89d99c65676/einterfaces/mocks/MessageExportInterface.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 // Regenerate this file using `make einterfaces-mocks`. 4 5 package mocks 6 7 import ( 8 context "context" 9 10 mock "github.com/stretchr/testify/mock" 11 12 model "github.com/vnforks/kid/v5/model" 13 ) 14 15 // MessageExportInterface is an autogenerated mock type for the MessageExportInterface type 16 type MessageExportInterface struct { 17 mock.Mock 18 } 19 20 // RunExport provides a mock function with given fields: format, since 21 func (_m *MessageExportInterface) RunExport(format string, since int64) *model.AppError { 22 ret := _m.Called(format, since) 23 24 var r0 *model.AppError 25 if rf, ok := ret.Get(0).(func(string, int64) *model.AppError); ok { 26 r0 = rf(format, since) 27 } else { 28 if ret.Get(0) != nil { 29 r0 = ret.Get(0).(*model.AppError) 30 } 31 } 32 33 return r0 34 } 35 36 // StartSynchronizeJob provides a mock function with given fields: ctx, exportFromTimestamp 37 func (_m *MessageExportInterface) StartSynchronizeJob(ctx context.Context, exportFromTimestamp int64) (*model.Job, *model.AppError) { 38 ret := _m.Called(ctx, exportFromTimestamp) 39 40 var r0 *model.Job 41 if rf, ok := ret.Get(0).(func(context.Context, int64) *model.Job); ok { 42 r0 = rf(ctx, exportFromTimestamp) 43 } else { 44 if ret.Get(0) != nil { 45 r0 = ret.Get(0).(*model.Job) 46 } 47 } 48 49 var r1 *model.AppError 50 if rf, ok := ret.Get(1).(func(context.Context, int64) *model.AppError); ok { 51 r1 = rf(ctx, exportFromTimestamp) 52 } else { 53 if ret.Get(1) != nil { 54 r1 = ret.Get(1).(*model.AppError) 55 } 56 } 57 58 return r0, r1 59 }