[PR #500] [MERGED] test: cover parse_words and literal string edge cases in spirv_interface #550

Closed
opened 2026-11-26 20:18:15 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/500
Author: @kotekompotek
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD

Base: main ← Head: work/spirv-interface-empty-words


📝 Commits (1)

  • 3222ab2 test: cover parse_words and literal string edge cases in spirv_interface

📊 Changes

1 file changed (+36 additions, -0 deletions)

View changed files

➕ tests/test_spirv_interface_extra.py (+36 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/500 **Author:** [@kotekompotek](https://github.com/kotekompotek) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `work/spirv-interface-empty-words` --- ### 📝 Commits (1) - [`3222ab2`](https://github.com/ubiquitarianism/leonida/commit/3222ab27a5692acff7f51daad99e2b126703631b) test: cover parse_words and literal string edge cases in spirv_interface ### 📊 Changes **1 file changed** (+36 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `tests/test_spirv_interface_extra.py` (+36 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:15 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#550
No description provided.