From fcd7d707feba6f02b89fa2d2c9eb3b8a0df5e7f4 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 1 Aug 2015 19:41:25 +0100 Subject: add a line for the ecdh vector loader to cover a missed branch --- tests/test_utils.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/test_utils.py') diff --git a/tests/test_utils.py b/tests/test_utils.py index f71264ea..416de795 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -3047,6 +3047,7 @@ d518475576730ed528779366568e46b7dd4ed787cb72d0733c93 def test_load_kasvs_ecdh_vectors(): vector_data = textwrap.dedent(""" + # CAVS 11.0 # Parameter set(s) supported: EA EB EC ED EE # CAVSid: CAVSid (in hex: 434156536964) # IUTid: In hex: a1b2c3d4e5 -- cgit v1.2.3 From ac78c866d3fd94c3de0e8a33e18654a312083c3e Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 1 Aug 2015 20:26:00 +0100 Subject: add test to cover partial branch in load_kasvs_ecdh_vectors The loop to find supported parameter sets is partially covered otherwise --- tests/test_utils.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/test_utils.py') diff --git a/tests/test_utils.py b/tests/test_utils.py index 416de795..210e9292 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -3045,6 +3045,10 @@ d518475576730ed528779366568e46b7dd4ed787cb72d0733c93 assert expected == load_kasvs_dh_vectors(vector_data) +def test_load_kasvs_ecdh_vectors_empty_vector_data(): + assert [] == load_kasvs_ecdh_vectors([]) + + def test_load_kasvs_ecdh_vectors(): vector_data = textwrap.dedent(""" # CAVS 11.0 -- cgit v1.2.3