feat: add checksum-aware incremental sync

This commit is contained in:
2026-08-08 20:27:26 +02:00
parent e8e9436879
commit 2450b90dd0
20 changed files with 189 additions and 25 deletions
+5
View File
@@ -35,6 +35,10 @@ static void test_xxhash32_different_data() {
EXPECT_TRUE(ha != hb);
}
static void test_xxhash64_different_data() {
EXPECT_TRUE(delta_xxhash64("AAAA", 4) != delta_xxhash64("BBBB", 4));
}
static void test_signature_roundtrip() {
char old_data[4096];
for (int i = 0; i < 4096; i++)
@@ -328,6 +332,7 @@ void test_delta() {
test_adler32_different_data();
test_xxhash32_basic();
test_xxhash32_different_data();
test_xxhash64_different_data();
test_signature_roundtrip();
test_delta_identical_files();
test_delta_small_edit();