Move shader lowering tests into their own module file #1460

Merged
ANDREANIADS merged 1 commit from upstream-pr/1460 into main 2026-11-29 08:16:56 +00:00
ANDREANIADS commented 2026-11-28 20:21:09 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ANDREANIADS on 2026-11-28T20:21:09Z.


Addresses #1429. Move the existing #[cfg(test)] tests from emit/lower.rs to emit/lower/tests.rs under the same module. The test bodies match line for line after removing their original indentation. lower.rs shrinks from 667,523 to 638,947 bytes (limit 655,360).

Verified on Linux at base 923e38c: cargo xtask policy passed for 307 files, cargo xtask policy --staged passed for the two changed files, and cargo test --locked -p xtask repository_passes_policy passed. cargo test --locked -p victory-shader --lib passed 249 tests with 2 ignored. git diff --cached --check passed. Windows and GPU execution were outside this source-only change.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5544222005 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1460). Originally posted by [ANDREANIADS](https://github.com/ANDREANIADS) on 2026-11-28T20:21:09Z. --- Addresses #1429. Move the existing `#[cfg(test)]` tests from `emit/lower.rs` to `emit/lower/tests.rs` under the same module. The test bodies match line for line after removing their original indentation. `lower.rs` shrinks from 667,523 to 638,947 bytes (limit 655,360). Verified on Linux at base `923e38c`: `cargo xtask policy` passed for 307 files, `cargo xtask policy --staged` passed for the two changed files, and `cargo test --locked -p xtask repository_passes_policy` passed. `cargo test --locked -p victory-shader --lib` passed 249 tests with 2 ignored. `git diff --cached --check` passed. Windows and GPU execution were outside this source-only change.
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
trustno1-coder/VIctory-NVIDIA!1460
No description provided.