Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestEnv ¶
type TestEnv struct { Root string Fs storage.FS Tree *tree.Tree Permissions *mocks.PermissionsChecker Blobstore *treemocks.Blobstore Owner *userpb.User Lookup *decomposedfs.Lookup Ctx context.Context }
TestEnv represents a test environment for unit tests.
func NewTestEnv ¶
NewTestEnv prepares a test environment on disk The storage contains some directories and a file:
/dir1/ /dir1/file1 /dir1/subdir1/
func (*TestEnv) CreateTestDir ¶
CreateTestDir create a directory and returns a corresponding Node.
Click to show internal directories.
Click to hide internal directories.