tests: cover ffx_recurrent generation and identity validation #3742
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3742
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3740"
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?
@Ammmae0x on GitHub · 2026-12-01 13:36 UTC · original
Ammmae0x:tests/ffx-recurrent-py→main· +886 −0 · 5 files · 1 commits · merged 2026-12-01 17:06 UTCRefs #1149
Adds synthetic AMD64 PE32+ unit, boundary, error/refusal and 1:1 mutation tests for tools/ffx_recurrent.py (previously 0 Python unit tests), with zero edits to existing files (5 new files only, +886/-0).
tests/ffx_recurrent_py_check.py builds a minimal synthetic PE32+ image in memory (NOP-filled .text, the recurrent name and UUID in .rdata, the format/state/view jump tables; zero external binaries or DLLs) and covers generate_recurrent() end to end: deterministic C++ output structure, exact FSR4UPSCALER_Recurrent name at 0x4d928 and UUID 696442be-a72e-4059-bc79-5b5c98040fad at 0x48310, enum-switch jump table resolution (format_code = 10, state_code = 2, selector and state RVA lookups, relocated and indexed variants), all 16 bound call sites, all 3 builder and 20 backend exit blocks, and refusals pinned by exact exception type and message (wrong/empty name, zero/byte-swapped UUID, empty/non-PE/truncated images, out-of-range RVAs, mid-instruction and RET-less ranges, wrong view targets, unbound CALL KeyError and JMP). ffx_recurrent.py has no CLI of its own, so no CLI cases apply.
Linux verification (all on this host):
AI-assisted.
Windows Verification (
e517c1ce)git merge-tree --write-tree upstream/main HEAD->ad5f2010(exit 0),git diff --checkcleanpy_compile,ffx_recurrent_py_check.py,ffx_recurrent_py_meta_check.py,form_coverage_check.py,docs_links_check.py(209 files, 804 links),bidi_controls_check.py(2829 files) passedffx_recurrent_py:130 cases, 5/5 mutations killed PASS(9meta cases,5/5--mutatekilled);dev6/6 passed (2.79s);release6/6 passed (2.78s). AI-assisted.