From 41543e6a616df3fbd96ecc9c5069a9a07f76da15 Mon Sep 17 00:00:00 2001 From: Anton Sattarov <dirty.mew@gmail.com> Date: Thu, 26 Dec 2024 12:46:47 +0100 Subject: [PATCH] regen mocks --- perxis-proto | 2 +- pkg/files/mocks/Downloader.go | 2 +- pkg/files/mocks/Files.go | 32 +++++++++++++++++++++++++++++++- pkg/files/mocks/Middleware.go | 2 +- pkg/files/mocks/Storage.go | 2 +- pkg/files/mocks/Uploader.go | 2 +- pkg/files/mocks/spaceGetter.go | 4 ++-- 7 files changed, 38 insertions(+), 8 deletions(-) diff --git a/perxis-proto b/perxis-proto index 278f919c..0627c9f8 160000 --- a/perxis-proto +++ b/perxis-proto @@ -1 +1 @@ -Subproject commit 278f919cda5b9d9aac548f1714213eaf52c28d7f +Subproject commit 0627c9f829178bc6de2623a0b6d42964c44de496 diff --git a/pkg/files/mocks/Downloader.go b/pkg/files/mocks/Downloader.go index 4105337e..ee33624e 100644 --- a/pkg/files/mocks/Downloader.go +++ b/pkg/files/mocks/Downloader.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.49.0. DO NOT EDIT. package mocks diff --git a/pkg/files/mocks/Files.go b/pkg/files/mocks/Files.go index e4f8c664..c0f0f807 100644 --- a/pkg/files/mocks/Files.go +++ b/pkg/files/mocks/Files.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.49.0. DO NOT EDIT. package mocks @@ -140,6 +140,36 @@ func (_m *Files) MoveUpload(ctx context.Context, upload *files.MultipartUpload) return r0, r1 } +// SaveFile provides a mock function with given fields: ctx, file +func (_m *Files) SaveFile(ctx context.Context, file *files.File) (*files.File, error) { + ret := _m.Called(ctx, file) + + if len(ret) == 0 { + panic("no return value specified for SaveFile") + } + + var r0 *files.File + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *files.File) (*files.File, error)); ok { + return rf(ctx, file) + } + if rf, ok := ret.Get(0).(func(context.Context, *files.File) *files.File); ok { + r0 = rf(ctx, file) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*files.File) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *files.File) error); ok { + r1 = rf(ctx, file) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // StartUpload provides a mock function with given fields: ctx, upload func (_m *Files) StartUpload(ctx context.Context, upload *files.MultipartUpload) (*files.MultipartUpload, error) { ret := _m.Called(ctx, upload) diff --git a/pkg/files/mocks/Middleware.go b/pkg/files/mocks/Middleware.go index fb16e0e7..ea08f381 100644 --- a/pkg/files/mocks/Middleware.go +++ b/pkg/files/mocks/Middleware.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.49.0. DO NOT EDIT. package mocks diff --git a/pkg/files/mocks/Storage.go b/pkg/files/mocks/Storage.go index 02467f93..239f94f3 100644 --- a/pkg/files/mocks/Storage.go +++ b/pkg/files/mocks/Storage.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.49.0. DO NOT EDIT. package mocks diff --git a/pkg/files/mocks/Uploader.go b/pkg/files/mocks/Uploader.go index 2a7c6cbc..82709644 100644 --- a/pkg/files/mocks/Uploader.go +++ b/pkg/files/mocks/Uploader.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.49.0. DO NOT EDIT. package mocks diff --git a/pkg/files/mocks/spaceGetter.go b/pkg/files/mocks/spaceGetter.go index b56dbea6..658b7209 100644 --- a/pkg/files/mocks/spaceGetter.go +++ b/pkg/files/mocks/spaceGetter.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.50.0. DO NOT EDIT. +// Code generated by mockery v2.49.0. DO NOT EDIT. package mocks @@ -9,7 +9,7 @@ type SpaceGetter struct { mock.Mock } -// GetSpaceID provides a mock function with no fields +// GetSpaceID provides a mock function with given fields: func (_m *SpaceGetter) GetSpaceID() string { ret := _m.Called() -- GitLab