MCPcopy
hub / github.com/rclone/rclone / TestBisyncLocalRemote

Function TestBisyncLocalRemote

cmd/bisync/bisync_test.go:262–272  ·  view source on GitHub ↗

Path1 is local, Path2 is remote

(t *testing.T)

Source from the content-addressed store, hash-verified

260
261// Path1 is local, Path2 is remote
262func TestBisyncLocalRemote(t *testing.T) {
263 if *fstest.RemoteName == *argRemote2 {
264 t.Skip("path1 and path2 are the same remote")
265 }
266 _, remote, cleanup, err := fstest.RandomRemote()
267 fs.Logf(nil, "remote: %v", remote)
268 require.NoError(t, err)
269 defer cleanup()
270 ctx, _ := fs.AddConfig(context.TODO())
271 testBisync(ctx, t, *argRemote2, remote)
272}
273
274// Path1 and Path2 are both different directories on remote
275// (useful for testing server-side copy/move)

Callers

nothing calls this directly

Calls 4

RandomRemoteFunction · 0.92
LogfFunction · 0.92
AddConfigFunction · 0.92
testBisyncFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…