Translate Types and Utilities tests exactly #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Objective
Translate all upstream tests for UUID, math/value types, conversions, collections, caches, token bucket, locks, helpers, and utilities.
Deliverables
Validation
Prerequisite
Milestone 02 must provide the complete callable public API shim. Keep all production behavior standardized as unimplemented.
Project constraints
Implemented and pushed in commit
1c0dfdc.Verification: cargo fmt --check; mapping/shim regeneration checks; API coverage; parity regeneration/audit (17 translated, 1,272 pending, zero drift); Python generator unit tests; cargo check workspace/all targets; downstream locked API fixture; cargo test --workspace --no-run; Clippy with -D warnings; cargo doc. A controlled run of the 17-case file is intentionally red and every case fails only at its owned standardized unimplemented C# member ID.
Implemented and verified in commit
7ac910d.Translated all 17 NUnit invocations owned by #14 into explicit Rust #[test] bodies that call the mapped public APIs:
The translation preserves the original literals, float epsilon/tolerances, value/operator distinctions, constructor overloads, callback behavior, cancellation flow, disposal failure/logging, concurrency gates/timeouts, and coordinate/string assertions. BitPacking/BitUnpacking and LLSDTerseParsing remain pending under #16 and #15 respectively; HelpersZeroCoding remains under #16.
Required callable shim corrections are cross-platform and failure-only: callable event/delegate replacements, dynamic string Object values, cancellable test tokens, C# value-type copy/default traits, disposal fakes, and a std-only test future runner. No production API behavior was implemented.
Verification: