tests: cover NativeCopyRanges span merge, split, and coverage #3702
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3702
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3700"
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?
@Ammmae0x on GitHub · 2026-12-01 03:11 UTC · original
Ammmae0x:tests/native-copy-ranges→main· +832 −0 · 5 files · 1 commits · closed without mergingRefs #1149
Portable C++17 unit and mutation tests for
x2w_startup::NativeCopyRanges(src/startup_stubs/native_copy_ranges.h), previously untested directly intests/. No existing file is modified; the header and device code are untouched.New files (5, +832/-0):
tests/native_copy_ranges_check.cpp: 5 cases (empty_and_inverted,adjacent_coalesce,bridge_multi_spans,cpu_write,coverage) covering empty/inverted no-ops onadd/cpu_write/coverage; adjacent touching spans merging to[10, 30)in both orders, containment and partial overlap; multi-span bridging ([0, 10),[20, 30),[40, 50)+add(5, 45)->[0, 50));cpu_writemiss left/right/gap, middle split with both halves asserted, prefix/suffix trims, full single-span erase, and multi-span straddling erase with an untouched tail;coveragenone/partial/full across exact boundaries, gaps, and the gap left by a split; plus offsets above 4 GiB andUINT64_MAXendpoints.tests/cmake/native_copy_ranges.cmake: registersnative_copy_ranges_check(per-case CTests +native_copy_ranges_all) and 5WILL_FAIL TRUEheader-mutation controls (adjacent merge, middle-split insert, prefix-trim begin update, coverage boundary, multi-span add lower bound).tests/native_copy_ranges_meta_check.py: audits the contract and executes it natively withg++ -std=c++17 -Wall -Wextra -Werror(real test plus every mutation compiled against a real C++ copy; C++ and meta-check mutation sets are 1:1, no model-only mutation; temp dirs removed infinally).tests/checks/python-linux/native_copy_ranges.txtanddocs/experiments/native-copy-ranges.md.Linux results (from
origin/main1a9ccbc4):native_copy_ranges_meta_check.py:PASS: native copy ranges: 5 cases, 5/5 mutations killed (g++)form_coverage_check.py,docs_links_check.py(198 files / 765 links),bidi_controls_check.py(2793 files): passWILL_FAILcontrols)git diff --check: clean; zero personal pathsWindows execution (MSVC) awaits Windows verification:
Windows Verification (
c937ca2ae98dddf5b1f4e9717004476adc9e9aba)AI-assisted.
@Ammmae0x on GitHub · 2026-12-01 03:14 UTC · original
Superseded by merged #3656 (
tests/startup_native_copy_ranges_check.cppalready covers src/startup_stubs/native_copy_ranges.h with unit tests, differential fuzzing, and 6 header mutations). Closing to avoid duplicate CI and review load.AI-assisted.
github-bot referenced this pull request2026-12-02 15:43:49 +00:00
Pull request closed