diff --git a/pkg/collections/mocks/Storage.go b/pkg/collections/mocks/Storage.go deleted file mode 100644 index e219e50c4e5122158c1f7dfb5bb88ff1f93d0641..0000000000000000000000000000000000000000 --- a/pkg/collections/mocks/Storage.go +++ /dev/null @@ -1,155 +0,0 @@ -// Code generated by mockery v2.10.4. DO NOT EDIT. - -package mocks - -import ( - context "context" - - collections "git.perx.ru/perxis/perxis-go/pkg/collections" - - mock "github.com/stretchr/testify/mock" -) - -// Storage is an autogenerated mock type for the Storage type -type Storage struct { - mock.Mock -} - -// Create provides a mock function with given fields: ctx, coll -func (_m *Storage) Create(ctx context.Context, coll *collections.Collection) (*collections.Collection, error) { - ret := _m.Called(ctx, coll) - - var r0 *collections.Collection - if rf, ok := ret.Get(0).(func(context.Context, *collections.Collection) *collections.Collection); ok { - r0 = rf(ctx, coll) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*collections.Collection) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *collections.Collection) error); ok { - r1 = rf(ctx, coll) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// Delete provides a mock function with given fields: ctx, spaceId, envId, collectionId -func (_m *Storage) Delete(ctx context.Context, spaceId string, envId string, collectionId string) error { - ret := _m.Called(ctx, spaceId, envId, collectionId) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, string, string, string) error); ok { - r0 = rf(ctx, spaceId, envId, collectionId) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// Get provides a mock function with given fields: ctx, spaceId, envId, collectionId -func (_m *Storage) Get(ctx context.Context, spaceId string, envId string, collectionId string) (*collections.Collection, error) { - ret := _m.Called(ctx, spaceId, envId, collectionId) - - var r0 *collections.Collection - if rf, ok := ret.Get(0).(func(context.Context, string, string, string) *collections.Collection); ok { - r0 = rf(ctx, spaceId, envId, collectionId) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*collections.Collection) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, string) error); ok { - r1 = rf(ctx, spaceId, envId, collectionId) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// Init provides a mock function with given fields: ctx, spaceID, envID -func (_m *Storage) Init(ctx context.Context, spaceID string, envID string) error { - ret := _m.Called(ctx, spaceID, envID) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok { - r0 = rf(ctx, spaceID, envID) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// List provides a mock function with given fields: ctx, spaceId, envId, filter -func (_m *Storage) List(ctx context.Context, spaceId string, envId string, filter *collections.Filter) ([]*collections.Collection, error) { - ret := _m.Called(ctx, spaceId, envId, filter) - - var r0 []*collections.Collection - if rf, ok := ret.Get(0).(func(context.Context, string, string, *collections.Filter) []*collections.Collection); ok { - r0 = rf(ctx, spaceId, envId, filter) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]*collections.Collection) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, *collections.Filter) error); ok { - r1 = rf(ctx, spaceId, envId, filter) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// Reset provides a mock function with given fields: ctx, spaceId, envId -func (_m *Storage) Reset(ctx context.Context, spaceId string, envId string) error { - ret := _m.Called(ctx, spaceId, envId) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok { - r0 = rf(ctx, spaceId, envId) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// Update provides a mock function with given fields: ctx, coll -func (_m *Storage) Update(ctx context.Context, coll *collections.Collection) (int, int, error) { - ret := _m.Called(ctx, coll) - - var r0 int - if rf, ok := ret.Get(0).(func(context.Context, *collections.Collection) int); ok { - r0 = rf(ctx, coll) - } else { - r0 = ret.Get(0).(int) - } - - var r1 int - if rf, ok := ret.Get(1).(func(context.Context, *collections.Collection) int); ok { - r1 = rf(ctx, coll) - } else { - r1 = ret.Get(1).(int) - } - - var r2 error - if rf, ok := ret.Get(2).(func(context.Context, *collections.Collection) error); ok { - r2 = rf(ctx, coll) - } else { - r2 = ret.Error(2) - } - - return r0, r1, r2 -}