diff --git a/tests/test_tlsfuzzer_analysis.py b/tests/test_tlsfuzzer_analysis.py index 66ce43fca..ed3f34c0c 100644 --- a/tests/test_tlsfuzzer_analysis.py +++ b/tests/test_tlsfuzzer_analysis.py @@ -1978,6 +1978,7 @@ def file_selector(*args, **kwargs): } self.analysis._bit_size_sign_test = {255: 0.3, 254: 0.7, 253: 0.4} self.analysis._bit_size_wilcoxon_test = {255: 0.2, 254: 0.8, 253: 0.6} + self.analysis._total_bit_size_data = 100000 self.analysis._total_bit_size_data_used = 10000 self.analysis._bit_size_write_summary("passed", 0.5) @@ -1997,7 +1998,8 @@ def file_selector(*args, **kwargs): ) self.assertEqual( _summary[5], - "Used 10,000 data observations for results" + "Used 10,000 out of 100,000 available " + + "data observations for results." ) self.assertEqual(_summary[6], "passed") diff --git a/tlsfuzzer/analysis.py b/tlsfuzzer/analysis.py index 109e828ee..12aa43732 100644 --- a/tlsfuzzer/analysis.py +++ b/tlsfuzzer/analysis.py @@ -1743,8 +1743,12 @@ def _bit_size_write_summary(self, verdict, skillings_mack_pvalue): np.average(all_wilcoxon_values), max(all_wilcoxon_values), ) + - "Used {0:,} data observations for results\n" - .format(self._total_bit_size_data_used) + + "Used {0:,} out of {1:,} available data observations " + .format( + self._total_bit_size_data_used, + self._total_bit_size_data + ) + + "for results.\n" + verdict + "\n\n" + ("-" * 88) + "\n" + "| size | Sign test | Wilcoxon test " + "| {0} | {1} |\n"