test: cover parse_words and literal string edge cases in spirv_interface #500

Merged
kotekompotek merged 1 commit from upstream-pr/500 into main 2026-11-24 07:39:37 +00:00
kotekompotek commented 2026-11-24 06:30:09 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T06:30:09Z.


Adds unit tests for parse_words (short/unaligned/bad magic/swapped endianness) and decode_literal_string in tools/spirv_interface.py. Verified with pytest: 46 passed.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5467302520 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/500). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-24T06:30:09Z. --- Adds unit tests for parse_words (short/unaligned/bad magic/swapped endianness) and decode_literal_string in tools/spirv_interface.py. Verified with pytest: 46 passed.
QemmHD commented 2026-11-24 07:39:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T07:39:35Z.


Merging. Why merged: tests-only coverage for spirv_interface (+3 tests).
Why it's good: security-reviewed; clean merge on main d42773d; the existing 43 tests and the 3 new ones pass.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7125229990 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/500#issuecomment-7125229990). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-24T07:39:35Z. --- Merging. Why merged: tests-only coverage for spirv_interface (+3 tests). Why it's good: security-reviewed; clean merge on main d42773d; the existing 43 tests and the 3 new ones pass. AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!500
No description provided.