MCPcopy
hub / github.com/rclone/rclone / TestFileRemoveAll

Function TestFileRemoveAll

vfs/file_test.go:263–274  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

261}
262
263func TestFileRemoveAll(t *testing.T) {
264 r, vfs, file, _ := fileCreate(t, vfscommon.CacheModeOff)
265
266 err := file.RemoveAll()
267 require.NoError(t, err)
268
269 r.CheckRemoteItems(t)
270
271 vfs.Opt.ReadOnly = true
272 err = file.RemoveAll()
273 assert.Equal(t, EROFS, err)
274}
275
276func TestFileOpen(t *testing.T) {
277 _, _, file, _ := fileCreate(t, vfscommon.CacheModeOff)

Callers

nothing calls this directly

Calls 4

fileCreateFunction · 0.85
CheckRemoteItemsMethod · 0.80
RemoveAllMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…