MCPcopy
hub / github.com/rclone/rclone / CheckListingWithPrecision

Function CheckListingWithPrecision

fstest/fstest.go:337–339  ·  view source on GitHub ↗

CheckListingWithPrecision checks the fs to see if it has the expected contents with the given precision. If expectedDirs is non nil then we check those too. Note that no directories returned is also OK as some remotes don't return directories.

(t *testing.T, f fs.Fs, items []Item, expectedDirs []string, precision time.Duration)

Source from the content-addressed store, hash-verified

335// directories returned is also OK as some remotes don't return
336// directories.
337func CheckListingWithPrecision(t *testing.T, f fs.Fs, items []Item, expectedDirs []string, precision time.Duration) {
338 CheckListingWithRoot(t, f, "", items, expectedDirs, precision)
339}
340
341// CheckListing checks the fs to see if it has the expected contents
342func CheckListing(t *testing.T, f fs.Fs, items []Item) {

Callers 15

TestSymlinkFunction · 0.92
testFileRenameFunction · 0.92
TestDirMkdirFunction · 0.92
TestDirMkdirSubFunction · 0.92
TestDirRemoveFunction · 0.92
TestDirRemoveAllFunction · 0.92
TestDirRemoveNameFunction · 0.92
TestDirRenameFunction · 0.92
TestRWFileHandleWriteAtFunction · 0.92

Calls 1

CheckListingWithRootFunction · 0.85

Tested by 15

TestSymlinkFunction · 0.74
testFileRenameFunction · 0.74
TestDirMkdirFunction · 0.74
TestDirMkdirSubFunction · 0.74
TestDirRemoveFunction · 0.74
TestDirRemoveAllFunction · 0.74
TestDirRemoveNameFunction · 0.74
TestDirRenameFunction · 0.74
TestRWFileHandleWriteAtFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…