feat(muxed): Add uint64 round-trip test for max uint64 boundary#176
Merged
codeZe-us merged 1 commit intoBoxkit-Labs:mainfrom Mar 27, 2026
Merged
Conversation
- Add TestEncodeMuxedUint64MaxRoundtrip to validate round-trip encoding/decoding at max uint64 (18446744073709551615) - Ensures bit-for-bit correctness without buffer overflow or precision loss during serialization - Uses maxUint64 := ^uint64(0) as specified in issue requirements - Includes explicit uint64 conversion validation to detect precision loss - Tests following established patterns in muxed test suite Closes Boxkit-Labs#78
|
Hey @GEEKYFOCUS! 👋 It looks like this PR isn't linked to any issue. If this PR is for one of the issues assigned to you as part of a Wave, please link it to ensure your contribution is tracked properly. You can do this by adding a keyword to the PR description (e.g.,
|
Author
|
Hello Maintainer. |
codeZe-us
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a focused unit test to validate correct round-trip encoding/decoding
at the uint64 maximum boundary, ensuring serialization safety without buffer
overflow or precision loss.
Problem
ID integers maxing at uint64 (18446744073709551615) run risks of buffer overflow
or precision drop depending on intermediate serialization logic. Without explicit
testing, subtle errors can go undetected.
Solution
Added
TestEncodeMuxedUint64MaxRoundtripthat:Testing
✅ All tests pass:
Impact
Files Changed
packages/core-go/muxed/muxed_test.go- Added uint64 max round-trip test