MCPcopy Index your code
hub / github.com/rclone/rclone / toyFileTransfers

Function toyFileTransfers

fs/sync/sync_test.go:1710–1717  ·  view source on GitHub ↗
(r *fstest.Run)

Source from the content-addressed store, hash-verified

1708}
1709
1710func toyFileTransfers(r *fstest.Run) int64 {
1711 remote := r.Fremote.Name()
1712 transfers := 1
1713 if strings.HasPrefix(remote, "TestChunker") && strings.HasSuffix(remote, "S3") {
1714 transfers++ // Extra Copy because S3 emulates Move as Copy+Delete.
1715 }
1716 return int64(transfers)
1717}
1718
1719// Test a server-side move if possible, or the backup path if not
1720func testServerSideMove(ctx context.Context, t *testing.T, r *fstest.Run, withFilter, testDeleteEmptyDirs bool) {

Callers 6

TestSyncBasedOnCheckSumFunction · 0.85
TestSyncSizeOnlyFunction · 0.85
TestSyncIgnoreSizeFunction · 0.85
TestSyncIgnoreTimesFunction · 0.85
TestSyncUTFNormFunction · 0.85

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…