diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-09-06 18:21:29 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-09-06 18:21:29 +0200 |
commit | 88ecfcb7b517fd3cbed1c683b0d8835a4d55b2fc (patch) | |
tree | a1896dffa20d384dd44852dc82c50075f2db4aeb /repo_test.go | |
parent | 656a2c10b177e7fafc0b4bbddf3c634c642a2221 (diff) | |
download | dna-backup-88ecfcb7b517fd3cbed1c683b0d8835a4d55b2fc.tar.gz dna-backup-88ecfcb7b517fd3cbed1c683b0d8835a4d55b2fc.zip |
initial chunk storage
Diffstat (limited to 'repo_test.go')
-rw-r--r-- | repo_test.go | 7 |
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 { |