MCPcopy
hub / github.com/rclone/rclone / TestCaseInsensitiveMoveFileDryRun

Function TestCaseInsensitiveMoveFileDryRun

fs/operations/operations_test.go:1041–1056  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1039}
1040
1041func TestCaseInsensitiveMoveFileDryRun(t *testing.T) {
1042 ctx := context.Background()
1043 ctx, ci := fs.AddConfig(ctx)
1044 r := fstest.NewRun(t)
1045 if !r.Fremote.Features().CaseInsensitive {
1046 return
1047 }
1048
1049 file1 := r.WriteObject(ctx, "hello", "world", t1)
1050 r.CheckRemoteItems(t, file1)
1051
1052 ci.DryRun = true
1053 err := operations.MoveFile(ctx, r.Fremote, r.Fremote, "HELLO", file1.Path)
1054 require.NoError(t, err)
1055 r.CheckRemoteItems(t, file1)
1056}
1057
1058func TestMoveFileBackupDir(t *testing.T) {
1059 ctx := context.Background()

Callers

nothing calls this directly

Calls 6

WriteObjectMethod · 0.95
CheckRemoteItemsMethod · 0.95
AddConfigFunction · 0.92
NewRunFunction · 0.92
MoveFileFunction · 0.92
FeaturesMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…