From ca520c21fc7c6058b2cf28cfd8b6646d96e9afcf Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 27 Jan 2020 17:05:18 +0100 Subject: [PATCH] Extend unit test for larger than GCM encrytion size Add a few corner cases in addition to the existing test: * MAX_SIZE-1 * MAX_SIZE * 2*MAX_SIZE + 1 --- testing/test_deltatar.py | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/testing/test_deltatar.py b/testing/test_deltatar.py index 9ae02a7..75e53c2 100644 --- a/testing/test_deltatar.py +++ b/testing/test_deltatar.py @@ -191,8 +191,11 @@ class DeltaTarTest(BaseTest): self.hash = dict () os.makedirs ("source_dir2") for f, s in [("empty" , 0) # 1 tar objects - ,("slightly_larger", new_max + 1) # 2 - ,("twice" , 2 * new_max) # 3 + ,("almost_large" , new_max - 1) # 2 + ,("large" , new_max) # 3 + ,("slightly_larger", new_max + 1) # 4 + ,("twice" , 2 * new_max) # 5 + ,("twice_plus_one" , (2 * new_max) + 1) # 6 ]: f = "source_dir2/%s" % f self.hash [f] = self.create_file (f, s) -- 1.7.1