aboutsummaryrefslogtreecommitdiff
path: root/repo_test.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-09-06 18:21:29 +0200
committern-peugnet <n.peugnet@free.fr>2021-09-06 18:21:29 +0200
commit88ecfcb7b517fd3cbed1c683b0d8835a4d55b2fc (patch)
treea1896dffa20d384dd44852dc82c50075f2db4aeb /repo_test.go
parent656a2c10b177e7fafc0b4bbddf3c634c642a2221 (diff)
downloaddna-backup-88ecfcb7b517fd3cbed1c683b0d8835a4d55b2fc.tar.gz
dna-backup-88ecfcb7b517fd3cbed1c683b0d8835a4d55b2fc.zip
initial chunk storage
Diffstat (limited to 'repo_test.go')
-rw-r--r--repo_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/repo_test.go b/repo_test.go
index 21eccac..244942e 100644
--- a/repo_test.go
+++ b/repo_test.go
@@ -204,6 +204,13 @@ func TestBsdiff(t *testing.T) {
}
}
+func TestCommit(t *testing.T) {
+ dest := t.TempDir()
+ source := path.Join("test", "data")
+ repo := NewRepo(dest)
+ repo.Commit(source)
+}
+
func assertLen(t *testing.T, expected int, actual interface{}, prefix string) {
s := reflect.ValueOf(actual)
if s.Len() != expected {