Add synthetic (id, type) state dispatch fixture #132
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/133"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by MarlomMedeiros on 2026-11-21T16:48:19Z.
Summary
Follow-up to #19. Adds
tests/script_dispatch_check.py, a self-contained synthetic fixture that demonstrates how a candidate(id, type)pair selects a state, while preserving the observation's documented limits.stateslibrary mirroring the serialized pattern: adefaultstate, a siblingidcollision split cleanly bytype(itemvsweaponitem), and a deeperlocation -> vehiclesize -> anglebranch pair ending in distinct camera leaves.shopcomponents-style carrier: a kind-5weaponattribute suppliesid, the carrier node's name suppliestype.filter_siblings_by_typeis a caller-side pre-filter;script_path_host.cppstays untouched and its id-only-2answer remains the conservative result.(trigger_a, item)resolves node 4 -> preview-offset leaf; the nearby input(trigger_a, weaponitem)resolves node 6 -> deeper state -> camera leaf. Dropped siblings are asserted unreachable.joaatof a synthetic label.Limits preserved in the module docstring:
(id, type)dispatch is inferred from serialized structure (not runtime code), the reference resolver is id-only, and the native event supplying the pair is still unidentified.Test plan
python -B tests\script_dispatch_check.py out\build\dev\script_path_host.dll -v-> 5/5 OKtests\script_path_check.py-> 3/3 OKtests\script_state_check.py-> 3/3 OKscript_dispatch_pairsin CTest; verified passing in the Windows CI run on this branchImported from R0Y00/Xbox2Windows. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-21T16:48:31Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T17:17:20Z.
The synthetic dispatch case is helpful for #19. Please register it in CTest next to script_path_check, pass the built script_path_host target, and verify the registered test runs on Windows CI.
Imported from R0Y00/Xbox2Windows. Originally posted by MarlomMedeiros on 2026-11-21T17:54:34Z.
Done. Registered as
script_dispatch_pairsnext toscript_path_links, passing$<TARGET_FILE:script_path_host>. Verified green in the Windows CI run on this branch (61/61 tests).