MCPcopy
hub / github.com/rclone/rclone / TestFileRemove

Function TestFileRemove

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

Source from the content-addressed store, hash-verified

248}
249
250func TestFileRemove(t *testing.T) {
251 r, vfs, file, _ := fileCreate(t, vfscommon.CacheModeOff)
252
253 err := file.Remove()
254 require.NoError(t, err)
255
256 r.CheckRemoteItems(t)
257
258 vfs.Opt.ReadOnly = true
259 err = file.Remove()
260 assert.Equal(t, EROFS, err)
261}
262
263func TestFileRemoveAll(t *testing.T) {
264 r, vfs, file, _ := fileCreate(t, vfscommon.CacheModeOff)

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…