uros-b opened a new pull request, #17692:
URL: https://github.com/apache/iceberg/pull/17692

   Adds a unit test class for `BinaryUtil`, covering its public truncation 
helpers:
   
   - `truncateBinary` — truncation to a shorter length, the fast path that 
returns the input buffer unchanged when the requested length already covers it, 
zero-length truncation, and the non-negative-length precondition.
   - `truncateBinaryUnsafe` — the shared-backing-data view, and that the input 
buffer's position and limit are left unmodified.
   - `truncateBinaryMax` — incrementing the last byte to form the upper bound, 
and returning `null` when every byte overflows (all `0xFF`).
   
   Test-only; no production code changes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to