MCPcopy
hub / github.com/rclone/rclone / TestBisyncRemoteLocal

Function TestBisyncRemoteLocal

cmd/bisync/bisync_test.go:249–259  ·  view source on GitHub ↗

Path1 is remote, Path2 is local

(t *testing.T)

Source from the content-addressed store, hash-verified

247
248// Path1 is remote, Path2 is local
249func TestBisyncRemoteLocal(t *testing.T) {
250 if *fstest.RemoteName == *argRemote2 {
251 t.Skip("path1 and path2 are the same remote")
252 }
253 _, remote, cleanup, err := fstest.RandomRemote()
254 fs.Logf(nil, "remote: %v", remote)
255 require.NoError(t, err)
256 defer cleanup()
257 ctx, _ := fs.AddConfig(context.TODO())
258 testBisync(ctx, t, remote, *argRemote2)
259}
260
261// Path1 is local, Path2 is remote
262func TestBisyncLocalRemote(t *testing.T) {

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…