Document architecture checkpoint and restore original task callback order
This commit is contained in:
1 parent
69d0187a21
commit
531883aaac
45 files changed
+2935
-43
No files matched your search
@@ -0,0 +1,26 @@
|
||||
"""Original-source construction boundaries for the scheduler checkpoint."""
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
sys.path.insert(0, str(ROOT / 'tools' / 'binary'))
|
||||
from checkpoint_lab_registry import collect, ANCHORS, CALLS, SLOTS
|
||||
|
||||
|
||||
class LabRegistryEvidenceTests(unittest.TestCase):
|
||||
def test_original_lab_construction_trace(self):
|
||||
original = ROOT.parent / 'Original'
|
||||
if not (original / 'Neutron.exe').exists():
|
||||
self.skipTest('Local original files absent')
|
||||
report = collect(original)
|
||||
self.assertEqual(len(report['evidence']), len(ANCHORS) + len(CALLS) + len(SLOTS))
|
||||
self.assertEqual(report['lab']['code'], 'LV1B')
|
||||
self.assertEqual(report['lab']['entities'], 129)
|
||||
self.assertEqual(report['lab']['first_record'], dict(kind='3JIM', offset='0x8', tag='JIM1'))
|
||||
self.assertEqual(report['lab']['serialized_goddards'], 0)
|
||||
self.assertIn('Retained/reused', report['boundary'])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user