MCPcopy
hub / github.com/rclone/rclone / dirCreate

Function dirCreate

vfs/dir_test.go:22–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20)
21
22func dirCreate(t *testing.T) (r *fstest.Run, vfs *VFS, dir *Dir, item fstest.Item) {
23 r, vfs = newTestVFS(t)
24
25 file1 := r.WriteObject(context.Background(), "dir/file1", "file1 contents", t1)
26 r.CheckRemoteItems(t, file1)
27
28 node, err := vfs.Stat("dir")
29 require.NoError(t, err)
30 require.True(t, node.IsDir())
31
32 return r, vfs, node.(*Dir), file1
33}
34
35func TestDirMethods(t *testing.T) {
36 _, vfs, dir, _ := dirCreate(t)

Callers 15

TestDirHandleMethodsFunction · 0.85
TestDirMethodsFunction · 0.85
TestDirForgetAllFunction · 0.85
TestDirForgetPathFunction · 0.85
TestDirWalkFunction · 0.85
TestDirSetModTimeFunction · 0.85
TestDirStatFunction · 0.85
TestDirOpenFunction · 0.85
TestDirCreateFunction · 0.85
TestDirMkdirFunction · 0.85
TestDirMkdirSubFunction · 0.85

Calls 5

newTestVFSFunction · 0.85
WriteObjectMethod · 0.80
CheckRemoteItemsMethod · 0.80
StatMethod · 0.65
IsDirMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…