test(tools): add test coverage for nid_names #1662
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1662"
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 boykopovar/AnyPS5. Originally posted by Amirtheshwaran on 2026-10-08T15:59:42Z.
What
Add unit test coverage for
tools/nid_names.pyand register the test suite inCMakeLists.txt.tools/tests/test_nid_names.pycovering:compute_nid: symbol hashing across known PS5 vectors, output length (11), and charset validation.load_db: CSV database parsing, empty/short line handling, and fallback download execution.collect_unknowns: discovery ofAPS5_EXPORTunknown aliases across PRX sources.collect_real_names: discovery ofAPS5_VABIimplementations and_nid_postfixstripping.main: CLI handling acrossrename-ready(exit 0),already-implemented(exit 0),MISMATCH(exit 1), and--jsonserialization.main(argv=None)intools/nid_names.pyto receive customargvfor CLI testability.nid_namesin rootCMakeLists.txtunderBUILD_TESTING(touches the same test registration block as #1623).Tested
Windows 11, Python 3.11:
python -m unittest discover -s tools/tests -v: 23 tests pass in 1.2s (including all 9NidNamesTeststest cases).python tools/check_conventions.py --base origin/main: passed (All conventions checks passed.).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T18:17:35Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)CMakeLists.txtL43Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:57:02Z.
Same as #1623: test coverage for
nid_names.pywith nothing broken behind it, so closing. #1328 fixes a real bug in the same tool.Pull request closed