foldertest

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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

func (*FakeFolderStore) GetFolders

func (_m *FakeFolderStore) GetFolders(ctx context.Context, orgID int64, uids []string) (map[string]*folder.Folder, error)

GetFolders provides a mock function with given fields: ctx, orgID, uids

type FakeService

type FakeService struct {
	ExpectedFolders          []*folder.Folder
	ExpectedFolder           *folder.Folder
	ExpectedError            error
	ExpectedDescendantCounts map[string]int64
}

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) GetDescendantCounts

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) RegisterService

func (s *FakeService) RegisterService(service folder.RegistryService) error

func (*FakeService) Update

Jump to

Keyboard shortcuts

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