feat(libxce-alloc-preason-equality): white-box equivalence tests use public job_alloc_eq/job_preason_eq (task 4.1)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Rongsong Shen 2026-09-28 10:27:46 +00:00
parent c1960457f8
commit 6110d12e5a
Signed by untrusted user: rshen
GPG key ID: 80533536B0EB651C
4 changed files with 217 additions and 46 deletions

View file

@ -45,7 +45,7 @@ Test-first throughout (red → green → refactor). Every sub-task leaves the bu
- _Boundary: scheduler allocation chain_
- [ ] 4. Integration: move the consumers to the public API
- [ ] 4.1 Move the three white-box equivalence tests to the public comparators
- [x] 4.1 Move the three white-box equivalence tests to the public comparators
- Switch the three test files that call the simulator's private comparators to the public allocation and full-match pending-reason comparisons, printing the description in their failure messages and freeing it.
- Keep their white-box inclusion of the simulator's verification source, which they still need for the decision-level functions.
- At each full-match pending-reason call, add a short comment on why full match is valid there (no unsatisfiable-allocation cache on either side).