1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-11 02:13:41 +09:00

GO-2269: Fix tests

This commit is contained in:
Sergey 2023-10-27 19:23:11 +05:00
parent cfac0c6125
commit 5b3d713869
No known key found for this signature in database
GPG key ID: 3B6BEF79160221C6
20 changed files with 158 additions and 158 deletions

View file

@ -60,6 +60,8 @@ packages:
TechSpace:
github.com/anyproto/anytype-heart/space:
interfaces:
Service:
Space:
bundledObjectsInstaller:
config:
dir: "{{.InterfaceDir}}"

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package mock_getblock
@ -78,13 +78,12 @@ func (_c *MockObjectGetter_GetObject_Call) RunAndReturn(run func(context.Context
return _c
}
type mockConstructorTestingTNewMockObjectGetter interface {
// NewMockObjectGetter creates a new instance of MockObjectGetter. 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 NewMockObjectGetter(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockObjectGetter creates a new instance of MockObjectGetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockObjectGetter(t mockConstructorTestingTNewMockObjectGetter) *MockObjectGetter {
}) *MockObjectGetter {
mock := &MockObjectGetter{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package mock_converter
@ -125,13 +125,12 @@ func (_c *MockConverter_Name_Call) RunAndReturn(run func() string) *MockConverte
return _c
}
type mockConstructorTestingTNewMockConverter interface {
// NewMockConverter creates a new instance of MockConverter. 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 NewMockConverter(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockConverter creates a new instance of MockConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockConverter(t mockConstructorTestingTNewMockConverter) *MockConverter {
}) *MockConverter {
mock := &MockConverter{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.30.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package mock_creator

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package mock_objectcache
@ -625,13 +625,12 @@ func (_c *MockCache_Remove_Call) RunAndReturn(run func(context.Context, string)
return _c
}
type mockConstructorTestingTNewMockCache interface {
// NewMockCache creates a new instance of MockCache. 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 NewMockCache(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockCache creates a new instance of MockCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockCache(t mockConstructorTestingTNewMockCache) *MockCache {
}) *MockCache {
mock := &MockCache{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package mock_restriction
@ -206,13 +206,12 @@ func (_c *MockService_Name_Call) RunAndReturn(run func() string) *MockService_Na
return _c
}
type mockConstructorTestingTNewMockService interface {
// NewMockService creates a new instance of MockService. 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 NewMockService(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockService creates a new instance of MockService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockService(t mockConstructorTestingTNewMockService) *MockService {
}) *MockService {
mock := &MockService{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package mock_event
@ -249,13 +249,12 @@ func (_c *MockSender_SendToSession_Call) RunAndReturn(run func(string, *pb.Event
return _c
}
type mockConstructorTestingTNewMockSender interface {
// NewMockSender creates a new instance of MockSender. 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 NewMockSender(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockSender creates a new instance of MockSender. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockSender(t mockConstructorTestingTNewMockSender) *MockSender {
}) *MockSender {
mock := &MockSender{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package mock_filesync
@ -807,13 +807,12 @@ func (_c *MockFileSync_SyncStatus_Call) RunAndReturn(run func() (filesync.SyncSt
return _c
}
type mockConstructorTestingTNewMockFileSync interface {
// NewMockFileSync creates a new instance of MockFileSync. 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 NewMockFileSync(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockFileSync creates a new instance of MockFileSync. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockFileSync(t mockConstructorTestingTNewMockFileSync) *MockFileSync {
}) *MockFileSync {
mock := &MockFileSync{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package mock_indexer
@ -326,6 +326,48 @@ func (_c *MockIndexer_ReindexSpace_Call) RunAndReturn(run func(space.Space) erro
return _c
}
// RemoveIndexes provides a mock function with given fields: spaceId
func (_m *MockIndexer) RemoveIndexes(spaceId string) error {
ret := _m.Called(spaceId)
var r0 error
if rf, ok := ret.Get(0).(func(string) error); ok {
r0 = rf(spaceId)
} else {
r0 = ret.Error(0)
}
return r0
}
// MockIndexer_RemoveIndexes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveIndexes'
type MockIndexer_RemoveIndexes_Call struct {
*mock.Call
}
// RemoveIndexes is a helper method to define mock.On call
// - spaceId string
func (_e *MockIndexer_Expecter) RemoveIndexes(spaceId interface{}) *MockIndexer_RemoveIndexes_Call {
return &MockIndexer_RemoveIndexes_Call{Call: _e.mock.On("RemoveIndexes", spaceId)}
}
func (_c *MockIndexer_RemoveIndexes_Call) Run(run func(spaceId string)) *MockIndexer_RemoveIndexes_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(string))
})
return _c
}
func (_c *MockIndexer_RemoveIndexes_Call) Return(err error) *MockIndexer_RemoveIndexes_Call {
_c.Call.Return(err)
return _c
}
func (_c *MockIndexer_RemoveIndexes_Call) RunAndReturn(run func(string) error) *MockIndexer_RemoveIndexes_Call {
_c.Call.Return(run)
return _c
}
// Run provides a mock function with given fields: ctx
func (_m *MockIndexer) Run(ctx context.Context) error {
ret := _m.Called(ctx)
@ -409,13 +451,12 @@ func (_c *MockIndexer_StartFullTextIndex_Call) RunAndReturn(run func() error) *M
return _c
}
type mockConstructorTestingTNewMockIndexer interface {
// NewMockIndexer creates a new instance of MockIndexer. 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 NewMockIndexer(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockIndexer creates a new instance of MockIndexer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockIndexer(t mockConstructorTestingTNewMockIndexer) *MockIndexer {
}) *MockIndexer {
mock := &MockIndexer{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package mock_subscription
@ -115,13 +115,12 @@ func (_c *MockCollectionService_UnsubscribeFromCollection_Call) RunAndReturn(run
return _c
}
type mockConstructorTestingTNewMockCollectionService interface {
// NewMockCollectionService creates a new instance of MockCollectionService. 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 NewMockCollectionService(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockCollectionService creates a new instance of MockCollectionService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockCollectionService(t mockConstructorTestingTNewMockCollectionService) *MockCollectionService {
}) *MockCollectionService {
mock := &MockCollectionService{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package mock_wallet
@ -404,13 +404,12 @@ func (_c *MockWallet_RootPath_Call) RunAndReturn(run func() string) *MockWallet_
return _c
}
type mockConstructorTestingTNewMockWallet interface {
// NewMockWallet creates a new instance of MockWallet. 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 NewMockWallet(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockWallet creates a new instance of MockWallet. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockWallet(t mockConstructorTestingTNewMockWallet) *MockWallet {
}) *MockWallet {
mock := &MockWallet{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package mock_core
@ -272,13 +272,12 @@ func (_c *MockService_Stop_Call) RunAndReturn(run func() error) *MockService_Sto
return _c
}
type mockConstructorTestingTNewMockService interface {
// NewMockService creates a new instance of MockService. 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 NewMockService(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockService creates a new instance of MockService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockService(t mockConstructorTestingTNewMockService) *MockService {
}) *MockService {
mock := &MockService{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package database
@ -134,13 +134,12 @@ func (_c *MockObjectStore_QueryRaw_Call) RunAndReturn(run func(*Filters, int, in
return _c
}
type mockConstructorTestingTNewMockObjectStore interface {
// NewMockObjectStore creates a new instance of MockObjectStore. 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 NewMockObjectStore(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockObjectStore creates a new instance of MockObjectStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockObjectStore(t mockConstructorTestingTNewMockObjectStore) *MockObjectStore {
}) *MockObjectStore {
mock := &MockObjectStore{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package space
@ -173,13 +173,12 @@ func (_c *MockbundledObjectsInstaller_Name_Call) RunAndReturn(run func() string)
return _c
}
type mockConstructorTestingTNewMockbundledObjectsInstaller interface {
// NewMockbundledObjectsInstaller creates a new instance of MockbundledObjectsInstaller. 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 NewMockbundledObjectsInstaller(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockbundledObjectsInstaller creates a new instance of MockbundledObjectsInstaller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockbundledObjectsInstaller(t mockConstructorTestingTNewMockbundledObjectsInstaller) *MockbundledObjectsInstaller {
}) *MockbundledObjectsInstaller {
mock := &MockbundledObjectsInstaller{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package space
@ -144,13 +144,12 @@ func (_c *MockisNewAccount_Name_Call) RunAndReturn(run func() string) *MockisNew
return _c
}
type mockConstructorTestingTNewMockisNewAccount interface {
// NewMockisNewAccount creates a new instance of MockisNewAccount. 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 NewMockisNewAccount(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockisNewAccount creates a new instance of MockisNewAccount. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockisNewAccount(t mockConstructorTestingTNewMockisNewAccount) *MockisNewAccount {
}) *MockisNewAccount {
mock := &MockisNewAccount{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package mock_spacecore
@ -126,27 +126,17 @@ func (_c *MockSpaceCoreService_Create_Call) RunAndReturn(run func(context.Contex
}
// Delete provides a mock function with given fields: ctx, spaceID
func (_m *MockSpaceCoreService) Delete(ctx context.Context, spaceID string) (spacecore.NetworkStatus, error) {
func (_m *MockSpaceCoreService) Delete(ctx context.Context, spaceID string) error {
ret := _m.Called(ctx, spaceID)
var r0 spacecore.NetworkStatus
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, string) (spacecore.NetworkStatus, error)); ok {
return rf(ctx, spaceID)
}
if rf, ok := ret.Get(0).(func(context.Context, string) spacecore.NetworkStatus); ok {
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
r0 = rf(ctx, spaceID)
} else {
r0 = ret.Get(0).(spacecore.NetworkStatus)
r0 = ret.Error(0)
}
if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
r1 = rf(ctx, spaceID)
} else {
r1 = ret.Error(1)
}
return r0, r1
return r0
}
// MockSpaceCoreService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
@ -168,12 +158,12 @@ func (_c *MockSpaceCoreService_Delete_Call) Run(run func(ctx context.Context, sp
return _c
}
func (_c *MockSpaceCoreService_Delete_Call) Return(payload spacecore.NetworkStatus, err error) *MockSpaceCoreService_Delete_Call {
_c.Call.Return(payload, err)
func (_c *MockSpaceCoreService_Delete_Call) Return(err error) *MockSpaceCoreService_Delete_Call {
_c.Call.Return(err)
return _c
}
func (_c *MockSpaceCoreService_Delete_Call) RunAndReturn(run func(context.Context, string) (spacecore.NetworkStatus, error)) *MockSpaceCoreService_Delete_Call {
func (_c *MockSpaceCoreService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *MockSpaceCoreService_Delete_Call {
_c.Call.Return(run)
return _c
}
@ -424,49 +414,6 @@ func (_c *MockSpaceCoreService_Name_Call) RunAndReturn(run func() string) *MockS
return _c
}
// RevertDeletion provides a mock function with given fields: ctx, spaceID
func (_m *MockSpaceCoreService) RevertDeletion(ctx context.Context, spaceID string) error {
ret := _m.Called(ctx, spaceID)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
r0 = rf(ctx, spaceID)
} else {
r0 = ret.Error(0)
}
return r0
}
// MockSpaceCoreService_RevertDeletion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevertDeletion'
type MockSpaceCoreService_RevertDeletion_Call struct {
*mock.Call
}
// RevertDeletion is a helper method to define mock.On call
// - ctx context.Context
// - spaceID string
func (_e *MockSpaceCoreService_Expecter) RevertDeletion(ctx interface{}, spaceID interface{}) *MockSpaceCoreService_RevertDeletion_Call {
return &MockSpaceCoreService_RevertDeletion_Call{Call: _e.mock.On("RevertDeletion", ctx, spaceID)}
}
func (_c *MockSpaceCoreService_RevertDeletion_Call) Run(run func(ctx context.Context, spaceID string)) *MockSpaceCoreService_RevertDeletion_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(context.Context), args[1].(string))
})
return _c
}
func (_c *MockSpaceCoreService_RevertDeletion_Call) Return(err error) *MockSpaceCoreService_RevertDeletion_Call {
_c.Call.Return(err)
return _c
}
func (_c *MockSpaceCoreService_RevertDeletion_Call) RunAndReturn(run func(context.Context, string) error) *MockSpaceCoreService_RevertDeletion_Call {
_c.Call.Return(run)
return _c
}
// Run provides a mock function with given fields: ctx
func (_m *MockSpaceCoreService) Run(ctx context.Context) error {
ret := _m.Called(ctx)
@ -552,13 +499,12 @@ func (_c *MockSpaceCoreService_StreamPool_Call) RunAndReturn(run func() streampo
return _c
}
type mockConstructorTestingTNewMockSpaceCoreService interface {
// NewMockSpaceCoreService creates a new instance of MockSpaceCoreService. 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 NewMockSpaceCoreService(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockSpaceCoreService creates a new instance of MockSpaceCoreService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockSpaceCoreService(t mockConstructorTestingTNewMockSpaceCoreService) *MockSpaceCoreService {
}) *MockSpaceCoreService {
mock := &MockSpaceCoreService{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package mock_typeprovider
@ -247,13 +247,12 @@ func (_c *MockSmartBlockTypeProvider_Type_Call) RunAndReturn(run func(string, st
return _c
}
type mockConstructorTestingTNewMockSmartBlockTypeProvider interface {
// NewMockSmartBlockTypeProvider creates a new instance of MockSmartBlockTypeProvider. 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 NewMockSmartBlockTypeProvider(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockSmartBlockTypeProvider creates a new instance of MockSmartBlockTypeProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockSmartBlockTypeProvider(t mockConstructorTestingTNewMockSmartBlockTypeProvider) *MockSmartBlockTypeProvider {
}) *MockSmartBlockTypeProvider {
mock := &MockSmartBlockTypeProvider{}
mock.Mock.Test(t)

View file

@ -1,4 +1,4 @@
// Code generated by mockery v2.26.1. DO NOT EDIT.
// Code generated by mockery v2.35.2. DO NOT EDIT.
package mock_techspace
@ -390,13 +390,12 @@ func (_c *MockTechSpace_TechSpaceId_Call) RunAndReturn(run func() string) *MockT
return _c
}
type mockConstructorTestingTNewMockTechSpace interface {
// NewMockTechSpace creates a new instance of MockTechSpace. 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 NewMockTechSpace(t interface {
mock.TestingT
Cleanup(func())
}
// NewMockTechSpace creates a new instance of MockTechSpace. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockTechSpace(t mockConstructorTestingTNewMockTechSpace) *MockTechSpace {
}) *MockTechSpace {
mock := &MockTechSpace{}
mock.Mock.Test(t)

View file

@ -6,10 +6,13 @@ import (
"github.com/anyproto/any-sync/app"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"go.uber.org/mock/gomock"
"github.com/anyproto/anytype-heart/core/anytype/config"
"github.com/anyproto/anytype-heart/pkg/lib/localstore/addr"
"github.com/anyproto/anytype-heart/pkg/lib/localstore/objectstore/mock_objectstore"
"github.com/anyproto/anytype-heart/space/mock_space"
"github.com/anyproto/anytype-heart/tests/testutil"
"github.com/anyproto/anytype-heart/util/testMock/mockSource"
)
@ -22,6 +25,13 @@ func Test_registerBuiltin(t *testing.T) {
sourceService.EXPECT().NewStaticSource(gomock.Any(), gomock.Any(), gomock.Any(), nil).AnyTimes()
sourceService.EXPECT().RegisterStaticSource(gomock.Any()).AnyTimes()
marketplaceSpace := mock_space.NewMockSpace(t)
marketplaceSpace.EXPECT().Id().Return(addr.AnytypeMarketplaceWorkspace)
marketplaceSpace.EXPECT().Do(mock.Anything, mock.Anything).Return(nil)
spaceService := mock_space.NewMockService(t)
spaceService.EXPECT().Get(mock.Anything, addr.AnytypeMarketplaceWorkspace).Return(marketplaceSpace, nil)
objectStore := mock_objectstore.NewMockObjectStore(t)
builtInTemplates := New()
@ -29,6 +39,7 @@ func Test_registerBuiltin(t *testing.T) {
ctx := context.Background()
a := new(app.App)
a.Register(testutil.PrepareMock(ctx, a, sourceService))
a.Register(testutil.PrepareMock(ctx, a, spaceService))
a.Register(builtInTemplates)
a.Register(config.New())
a.Register(testutil.PrepareMock(ctx, a, objectStore))

View file

@ -127,6 +127,20 @@ func (mr *MockFileServiceMockRecorder) FileOffload(arg0, arg1, arg2 any) *gomock
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FileOffload", reflect.TypeOf((*MockFileService)(nil).FileOffload), arg0, arg1, arg2)
}
// FilesSpaceOffload mocks base method.
func (m *MockFileService) FilesSpaceOffload(arg0 context.Context, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FilesSpaceOffload", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// FilesSpaceOffload indicates an expected call of FilesSpaceOffload.
func (mr *MockFileServiceMockRecorder) FilesSpaceOffload(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FilesSpaceOffload", reflect.TypeOf((*MockFileService)(nil).FilesSpaceOffload), arg0, arg1)
}
// GetSpaceUsage mocks base method.
func (m *MockFileService) GetSpaceUsage(arg0 context.Context, arg1 string) (*pb.RpcFileSpaceUsageResponseUsage, error) {
m.ctrl.T.Helper()