foldertest

package
v0.0.0-cloud Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeFolderStore

type FakeFolderStore struct {
	mock.Mock
}

FakeFolderStore is an autogenerated mock type for the FolderStore type

func NewFakeFolderStore

func NewFakeFolderStore(t mockConstructorTestingTNewFakeFolderStore) *FakeFolderStore

NewFakeFolderStore creates a new instance of FakeFolderStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FakeFolderStore) GetFolderByID

func (_m *FakeFolderStore) GetFolderByID(ctx context.Context, orgID int64, id int64) (*folder.Folder, error)

GetFolderByID provides a mock function with given fields: ctx, orgID, id

func (*FakeFolderStore) GetFolderByTitle

func (_m *FakeFolderStore) GetFolderByTitle(ctx context.Context, orgID int64, title string) (*folder.Folder, error)

GetFolderByTitle provides a mock function with given fields: ctx, orgID, title

func (*FakeFolderStore) GetFolderByUID

func (_m *FakeFolderStore) GetFolderByUID(ctx context.Context, orgID int64, uid string) (*folder.Folder, error)

GetFolderByUID provides a mock function with given fields: ctx, orgID, uid

type FakeService

type FakeService struct {
	ExpectedFolders []*folder.Folder
	ExpectedFolder  *folder.Folder
	ExpectedError   error
}

func NewFakeService

func NewFakeService() *FakeService

func (*FakeService) Create

func (*FakeService) Delete

func (*FakeService) Get

func (*FakeService) GetChildren

func (s *FakeService) GetChildren(ctx context.Context, cmd *folder.GetChildrenQuery) ([]*folder.Folder, error)

func (*FakeService) GetParents

func (s *FakeService) GetParents(ctx context.Context, q folder.GetParentsQuery) ([]*folder.Folder, error)

func (*FakeService) MakeUserAdmin

func (s *FakeService) MakeUserAdmin(ctx context.Context, orgID int64, userID, folderID int64, setViewAndEditPermissions bool) error

func (*FakeService) Move

func (*FakeService) Update

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL