mirror of
https://github.com/borgbackup/borg.git
synced 2026-02-20 00:10:35 -05:00
testsuite/hashindex.py: add a few more tests
This commit is contained in:
parent
8eff0b2f02
commit
c705c8573d
1 changed files with 14 additions and 0 deletions
|
|
@ -523,11 +523,25 @@ class HashIndexCompactTestCase(HashIndexDataTestCase):
|
|||
def test_empty(self):
|
||||
self.compare_compact("DEDEED")
|
||||
|
||||
def test_num_buckets_zero(self):
|
||||
self.compare_compact("")
|
||||
|
||||
def test_already_compact(self):
|
||||
self.compare_compact("***")
|
||||
|
||||
def test_all_at_front(self):
|
||||
self.compare_compact("*DEEED")
|
||||
self.compare_compact("**DEED")
|
||||
self.compare_compact("***EED")
|
||||
self.compare_compact("****ED")
|
||||
self.compare_compact("*****D")
|
||||
|
||||
def test_all_at_back(self):
|
||||
self.compare_compact("EDEEE*")
|
||||
self.compare_compact("DEDE**")
|
||||
self.compare_compact("DED***")
|
||||
self.compare_compact("ED****")
|
||||
self.compare_compact("D*****")
|
||||
|
||||
def test_merge(self):
|
||||
master = ChunkIndex()
|
||||
|
|
|
|||
Loading…
Reference in a new issue