refactor: place every file through Placed

data_directory_members, pack_data_tree and manifest_core_entries take
the Placed record instead of three loose sets and a fold flag, and verify's
replay of the builder (_builder_placement), hidden_extras and the
emulator pack check keep a Placed of their own. hidden_extras records the
sha1 at each taken path through the new Placed content option, which keeps
its same-content case twin rule. No behavior change.
This commit is contained in:
Abdessamad Derraz committed 2026-11-20 20:03:26 +01:00
1 parent 899f591575
commit ca3ff1d4c5
15 files changed
+62 -97

No files matched your search

+3 -1
View File
@@ -42,9 +42,11 @@ class OneRule(unittest.TestCase):
)
def test_builder_and_report_read_it(self):
self.assertIn("placement_block(", script_source("packs/archive.py"))
for module in ("generate_pack.py", "packs/extras.py"):
source = script_source(module)
self.assertIn("placement_block(", source, module)
self.assertIn("Placed(", source, module)
self.assertIn(".block(", source, module)
builder = script_source("generate_pack.py")
self.assertNotIn("if full_dest.lower() in seen_lower and case_insensitive", builder)