MCPcopy
hub / github.com/rclone/rclone / TestBisyncRemoteRemote

Function TestBisyncRemoteRemote

cmd/bisync/bisync_test.go:276–283  ·  view source on GitHub ↗

Path1 and Path2 are both different directories on remote (useful for testing server-side copy/move)

(t *testing.T)

Source from the content-addressed store, hash-verified

274// Path1 and Path2 are both different directories on remote
275// (useful for testing server-side copy/move)
276func TestBisyncRemoteRemote(t *testing.T) {
277 _, remote, cleanup, err := fstest.RandomRemote()
278 fs.Logf(nil, "remote: %v", remote)
279 require.NoError(t, err)
280 defer cleanup()
281 ctx, _ := fs.AddConfig(context.TODO())
282 testBisync(ctx, t, remote, remote)
283}
284
285// make sure rc can cope with running concurrent jobs
286func TestBisyncConcurrent(t *testing.T) {

Callers 1

testParallelFunction · 0.85

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…