From a07bbe4ef22d642347d18f0e0a62d24868500d23 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Thu, 23 Sep 2021 18:10:30 +0200 Subject: Testing with Fdelta as the differ --- repo_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'repo_test.go') diff --git a/repo_test.go b/repo_test.go index 2d1c6e2..2205e63 100644 --- a/repo_test.go +++ b/repo_test.go @@ -234,6 +234,8 @@ func TestBsdiff(t *testing.T) { defer os.Remove(addedFile2) // configure repo + repo.patcher = Bsdiff{} + repo.differ = Bsdiff{} repo.chunkReadWrapper = utils.NopReadWrapper repo.chunkWriteWrapper = utils.NopWriteWrapper @@ -269,6 +271,8 @@ func TestCommit(t *testing.T) { source := filepath.Join("testdata", "logs") expected := filepath.Join("testdata", "repo_8k") repo := NewRepo(dest) + repo.patcher = Bsdiff{} + repo.differ = Bsdiff{} repo.chunkReadWrapper = utils.NopReadWrapper repo.chunkWriteWrapper = utils.NopWriteWrapper @@ -281,6 +285,8 @@ func TestCommitZlib(t *testing.T) { source := filepath.Join("testdata", "logs") expected := filepath.Join("testdata", "repo_8k_zlib") repo := NewRepo(dest) + repo.patcher = Bsdiff{} + repo.differ = Bsdiff{} repo.chunkReadWrapper = utils.ZlibReader repo.chunkWriteWrapper = utils.ZlibWriter @@ -293,6 +299,8 @@ func TestRestore(t *testing.T) { source := filepath.Join("testdata", "repo_8k") expected := filepath.Join("testdata", "logs") repo := NewRepo(source) + repo.patcher = Bsdiff{} + repo.differ = Bsdiff{} repo.chunkReadWrapper = utils.NopReadWrapper repo.chunkWriteWrapper = utils.NopWriteWrapper @@ -305,6 +313,8 @@ func TestRestoreZlib(t *testing.T) { source := filepath.Join("testdata", "repo_8k_zlib") expected := filepath.Join("testdata", "logs") repo := NewRepo(source) + repo.patcher = Bsdiff{} + repo.differ = Bsdiff{} repo.chunkReadWrapper = utils.ZlibReader repo.chunkWriteWrapper = utils.ZlibWriter -- cgit v1.2.3