MCPcopy
hub / github.com/pimutils/vdirsyncer / sync

Function sync

tests/unit/sync/test_sync.py:19–25  ·  view source on GitHub ↗
(a, b, status, *args, **kwargs)

Source from the content-addressed store, hash-verified

17
18
19def sync(a, b, status, *args, **kwargs):
20 new_status = SqliteStatus(':memory:')
21 new_status.load_legacy_status(status)
22 rv = _sync(a, b, new_status, *args, **kwargs)
23 status.clear()
24 status.update(new_status.to_legacy_status())
25 return rv
26
27
28def empty_storage(x):

Callers 15

test_irrelevant_statusFunction · 0.70
test_missing_statusFunction · 0.70
test_partial_sync_errorFunction · 0.70
test_partial_sync_ignoreFunction · 0.70
test_upload_and_updateFunction · 0.70
test_deletionFunction · 0.70
test_insert_hashFunction · 0.70
test_already_syncedFunction · 0.70

Calls 4

SqliteStatusClass · 0.90
load_legacy_statusMethod · 0.80
to_legacy_statusMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected