aboutsummaryrefslogtreecommitdiff
path: root/repo_test.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-08-30 14:23:28 +0200
committern-peugnet <n.peugnet@free.fr>2021-08-30 14:23:28 +0200
commitea34c64c5cd6d62af487a0db62bd64a2b467ec25 (patch)
treebd223ce337552b344c3842d923855d640e1a6f68 /repo_test.go
parent2cd98a3bcd18870da4404693212119dd8ccfaf68 (diff)
downloaddna-backup-ea34c64c5cd6d62af487a0db62bd64a2b467ec25.tar.gz
dna-backup-ea34c64c5cd6d62af487a0db62bd64a2b467ec25.zip
findSimilarChunk returns an Id if found
Diffstat (limited to 'repo_test.go')
-rw-r--r--repo_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/repo_test.go b/repo_test.go
index 40d4374..3a4af68 100644
--- a/repo_test.go
+++ b/repo_test.go
@@ -200,7 +200,9 @@ func TestBsdiff(t *testing.T) {
}
newChunks := extractNewChunks(recipe)
log.Println("Checking new chunks:", len(newChunks[0]))
- for _, c := range newChunks {
- findSimilarChunks(c, sketches)
+ for _, chunks := range newChunks {
+ for _, c := range chunks {
+ log.Println(findSimilarChunk(c, sketches))
+ }
}
}