Skip to content
Snippets Groups Projects
Commit eef25526 authored by ko_oler's avatar ko_oler
Browse files

правки по ПР

parent 21bc128a
No related branches found
No related tags found
No related merge requests found
// Code generated by mockery v2.7.4. DO NOT EDIT.
package mocks
import (
context "context"
file "git.perx.ru/perxis/perxis-go/pkg/files"
mock "github.com/stretchr/testify/mock"
)
// FileService is an autogenerated mock type for the FileService type
type FileService struct {
mock.Mock
}
// AbortUpload provides a mock function with given fields: ctx, upload
func (_m *FileService) AbortUpload(ctx context.Context, upload *file.MultipartUpload) error {
ret := _m.Called(ctx, upload)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, *file.MultipartUpload) error); ok {
r0 = rf(ctx, upload)
} else {
r0 = ret.Error(0)
}
return r0
}
// CompleteUpload provides a mock function with given fields: ctx, upload
func (_m *FileService) CompleteUpload(ctx context.Context, upload *file.MultipartUpload) (*file.MultipartUpload, error) {
ret := _m.Called(ctx, upload)
var r0 *file.MultipartUpload
if rf, ok := ret.Get(0).(func(context.Context, *file.MultipartUpload) *file.MultipartUpload); ok {
r0 = rf(ctx, upload)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*file.MultipartUpload)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, *file.MultipartUpload) error); ok {
r1 = rf(ctx, upload)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// DeleteFile provides a mock function with given fields: ctx, _a1
func (_m *FileService) DeleteFile(ctx context.Context, _a1 *file.File) error {
ret := _m.Called(ctx, _a1)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, *file.File) error); ok {
r0 = rf(ctx, _a1)
} else {
r0 = ret.Error(0)
}
return r0
}
// GetFile provides a mock function with given fields: ctx, _a1
func (_m *FileService) GetFile(ctx context.Context, _a1 *file.File) (*file.File, error) {
ret := _m.Called(ctx, _a1)
var r0 *file.File
if rf, ok := ret.Get(0).(func(context.Context, *file.File) *file.File); ok {
r0 = rf(ctx, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*file.File)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, *file.File) error); ok {
r1 = rf(ctx, _a1)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// MoveUpload provides a mock function with given fields: ctx, upload
func (_m *FileService) MoveUpload(ctx context.Context, upload *file.MultipartUpload) (*file.File, error) {
ret := _m.Called(ctx, upload)
var r0 *file.File
if rf, ok := ret.Get(0).(func(context.Context, *file.MultipartUpload) *file.File); ok {
r0 = rf(ctx, upload)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*file.File)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, *file.MultipartUpload) error); ok {
r1 = rf(ctx, upload)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// StartUpload provides a mock function with given fields: ctx, upload
func (_m *FileService) StartUpload(ctx context.Context, upload *file.MultipartUpload) (*file.MultipartUpload, error) {
ret := _m.Called(ctx, upload)
var r0 *file.MultipartUpload
if rf, ok := ret.Get(0).(func(context.Context, *file.MultipartUpload) *file.MultipartUpload); ok {
r0 = rf(ctx, upload)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*file.MultipartUpload)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, *file.MultipartUpload) error); ok {
r1 = rf(ctx, upload)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Upload provides a mock function with given fields: ctx, _a1
func (_m *FileService) Upload(ctx context.Context, _a1 *file.File) (*file.Upload, error) {
ret := _m.Called(ctx, _a1)
var r0 *file.Upload
if rf, ok := ret.Get(0).(func(context.Context, *file.File) *file.Upload); ok {
r0 = rf(ctx, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*file.Upload)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, *file.File) error); ok {
r1 = rf(ctx, _a1)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Code generated by mockery v2.7.4. DO NOT EDIT.
package mocks
import (
files "git.perx.ru/perxis/perxis-go/pkg/files"
mock "github.com/stretchr/testify/mock"
)
// Middleware is an autogenerated mock type for the Middleware type
type Middleware struct {
mock.Mock
}
// Execute provides a mock function with given fields: _a0
func (_m *Middleware) Execute(_a0 files.Files) files.Files {
ret := _m.Called(_a0)
var r0 files.Files
if rf, ok := ret.Get(0).(func(files.Files) files.Files); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(files.Files)
}
}
return r0
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment