MCPcopy
hub / github.com/rclone/rclone / TestServerSideMoveWithFilter

Function TestServerSideMoveWithFilter

fs/sync/sync_test.go:1916–1926  ·  view source on GitHub ↗

Test a server-side move if possible, or the backup path if not

(t *testing.T)

Source from the content-addressed store, hash-verified

1914
1915// Test a server-side move if possible, or the backup path if not
1916func TestServerSideMoveWithFilter(t *testing.T) {
1917 ctx := context.Background()
1918 r := fstest.NewRun(t)
1919
1920 fi, err := filter.NewFilter(nil)
1921 require.NoError(t, err)
1922 fi.Opt.MinSize = 40
1923 ctx = filter.ReplaceConfig(ctx, fi)
1924
1925 testServerSideMove(ctx, t, r, true, false)
1926}
1927
1928// Test a server-side move if possible
1929func TestServerSideMoveDeleteEmptySourceDirs(t *testing.T) {

Callers

nothing calls this directly

Calls 4

NewRunFunction · 0.92
NewFilterFunction · 0.92
ReplaceConfigFunction · 0.92
testServerSideMoveFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…