test(libSceJson2): compare valid memory and reader parsing #12778
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12778"
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 StoneDC on 2026-10-29T08:42:09Z.
What
Check the expected Value tree for three valid JSON documents through both the memory and character-reader parsing entry points. The fixtures cover escaped control characters, BMP and supplementary UTF-8, empty containers, whitespace and 32 nested arrays.
Create a real Json2 allocation context before constructing the values. The fixture reuses JsonTest::Allocator, canonical InitParameter2 setters and the public Initializer entry points. Values are destroyed before termination, and the test checks initialization and termination status. The existing document, reader callback and expected-tree assertions are retained. Parse failures now print the document index, reader mode and status code.
Tested
Exact tested head
e4b51540fee3f5757a85f883f1e12731a74cdcb9includes main49f36536321fa3941deb9408d556597dab1e4e28. The merge preview and conventions were also checked against current main105c9e4d914ba83d7dbe62e5df2cdb0b5c848ac3.Windows 11 with MinGW GCC 15.2/CMake 4.3.1 and non-root WSL Ubuntu 26.04 with GCC 15.2/CMake 4.2.3. Each platform used the full repository CMake configuration and built the registered guest_json_reader_equivalence_tests target with current libc, libkernel and libSceJson2 dependencies.
Current-main conventions, whitespace and test registration pass. Hosted CI completed on
e4b51540fee3f5757a85f883f1e12731a74cdcb9with 5 passed and 7 skipped checks. The Windows job builds the actual guest test and runs guest_json_reader_equivalence successfully in 0.02 seconds. The job reports zero failures out of 3,665 scheduled CTests, including its platform/feature skips. Library portability, conventions, labels and eligibility also passed. Windows build and tests · Library portabilityChecklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)