code-to10 reconcile: re-pin handler accounting and longfunc inventory for the unified line
Target keeps the 6-mixin split, so the source line's 239/223/16 and its mixin-homed 17-method list do not apply here. Recomputed by AST on this line: handler accounting 244 total / 150 in server.py / 94 moved, no duplicates (243/149 + _update_goal_task); longfunc still 17 methods with the same names, 16 homed in server.py and _full_auto_execute in handler_fullauto.py, plus module-level migrate_tasks_table in server.py (114 lines). No method split or dropped; both tests' docstrings state the re-pin explicitly.
This commit is contained in:
1 parent
79835cf3c1
commit
da7a76d0e4
2 files changed
+34
-20
No files matched your search
@@ -9,10 +9,14 @@ Pins the split contract so a future violation fails CI:
|
||||
as #238 arch_conformance.scan_imports);
|
||||
- server.py re-exports the moved shared helpers as identical objects,
|
||||
so `from cloud.server import _task_to_dict` keeps working;
|
||||
- handler method accounting: 243 total, 149 left in server.py itself,
|
||||
- handler method accounting: 244 total, 150 left in server.py itself,
|
||||
94 in mixins, no name defined twice. (v5 rebase: main #275 added
|
||||
5 resident methods that legitimately stay in server.py, so the
|
||||
stack's 238/144 becomes 243/149; moved count stays 94.)
|
||||
stack's 238/144 becomes 243/149; moved count stays 94.
|
||||
Reconcile: goal live-update adds _update_goal_task in server.py,
|
||||
so 243/149 becomes 244/150; moved count still 94. The source
|
||||
line's 239/223/16 counts its 12-mixin split and do not apply on
|
||||
this line, which keeps the target's 6-mixin split.)
|
||||
|
||||
Only the standard library; no real model, no network, no secrets.
|
||||
"""
|
||||
@@ -140,7 +144,7 @@ class TestReexports(unittest.TestCase):
|
||||
|
||||
|
||||
class TestMethodAccounting(unittest.TestCase):
|
||||
def test_total_243_no_duplicates(self):
|
||||
def test_total_244_no_duplicates(self):
|
||||
seen = {}
|
||||
dups = []
|
||||
classes = [CloudControlPlaneHandler]
|
||||
@@ -155,9 +159,9 @@ class TestMethodAccounting(unittest.TestCase):
|
||||
dups.append((seen[name], cls.__name__, name))
|
||||
seen[name] = cls.__name__
|
||||
self.assertEqual(dups, [])
|
||||
self.assertEqual(total, 243)
|
||||
self.assertEqual(total, 244)
|
||||
self.assertEqual(len(_own_methods(CloudControlPlaneHandler)),
|
||||
243 - 94)
|
||||
244 - 94)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user