test: add comprehensive unit tests for write_wide_out #1255
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1255
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1255"
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?
@Ayoub-devv on GitHub · 2026-11-24 13:47 UTC · original
Ayoub-devv:main→main· +57 −0 · 1 files · 2 commits · openWhat is in it
Adds 5 new unit tests for the
write_wide_outhelper inutil.rs, covering:size, null-terminated atsize-1, sets ERROR_INSUFFICIENT_BUFFER)This function is used by
kernelxand previously had no direct test coverage.Tested
cargo test util -- --test-threads=4: 10 passed; 0 failed; 0 ignored; 0 measured; 714 filtered out(5 new tests + 5 existing util tests, all ok in 0.01s)
Regression run
Not needed — this PR changes only
crates/xcl/src/util.rsinside a#[cfg(test)] mod testsblock. No runtime code is modified.Not tested
AI use
@Ayoub-devv on GitHub · 2026-11-24 13:54 UTC · original
Hi maintainers — this diff only adds a
#[cfg(test)] mod testsblock tocrates/xcl/src/util.rs; no runtime code is changed. The PR-description check flags it as a runtime change because the file lives undersrc/, but every added line is inside the test module. Could a maintainer approve the workflow run and, if appropriate, apply the test-only label so the smoke requirement is waived per #452? Thanks!@DavidM1911 on GitHub · 2026-11-24 14:02 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
@Toons29 on GitHub · 2026-11-25 03:19 UTC · original
Regression run of
5e78ffe6on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.@DavidM1911 on GitHub · 2026-11-26 04:40 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-24 13:47 UTC · original · reviewed
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.