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

fix

parent 46afe20f
No related branches found
No related tags found
No related merge requests found
// 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
}
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