Fix completion gate total after overlapping extent correction #771
@@ -10,7 +10,7 @@ from pathlib import Path
|
||||
|
||||
EXPECTED_DOL_SHA1 = "26116613f624061ba99c8d1a299aaa6efa85670d"
|
||||
EXPECTED_TOTAL_UNITS = 1027
|
||||
EXPECTED_TOTAL_CODE = 2995188
|
||||
EXPECTED_TOTAL_CODE = 2995176
|
||||
EXPECTED_TOTAL_DATA = 1832684
|
||||
EXPECTED_TOTAL_FUNCTIONS = 12563
|
||||
INTEGER_PATTERN = re.compile(r"-?(0|[1-9][0-9]*)\Z")
|
||||
|
||||
@@ -21,6 +21,15 @@ class WorkflowGuardTests(unittest.TestCase):
|
||||
self.assertTrue(any("total_units" in failure for failure in failures))
|
||||
self.assertTrue(any("missing categories" in failure for failure in failures))
|
||||
|
||||
def test_obsolete_overlapping_code_total_is_rejected(self):
|
||||
failures = check_report({
|
||||
"version": 2,
|
||||
"measures": {"total_code": 2995188},
|
||||
"units": [],
|
||||
"categories": [],
|
||||
})
|
||||
self.assertIn("overall total_code: 2995188 != 2995176", failures)
|
||||
|
||||
def test_malformed_report_values_fail_without_crashing(self):
|
||||
failures = check_report(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user