Zephyruszzzz opened a new issue, #11546:
URL: https://github.com/apache/rocketmq/issues/11546

   ### Before Creating the Enhancement Request
   
   - [x] I have confirmed that this should be classified as an enhancement 
rather than a bug/feature.
   
   
   ### Summary
   
   Add unit tests for `DataConverter.setBit` and `DataConverter.getBit` in 
`rocketmq-common`.
   
   ### Motivation
   
   POP acknowledgment handling uses these helpers to update and read 
acknowledgment bitmaps. Focused tests can catch changes that affect neighboring 
bits or mishandle the sign bit.
   
   ### Describe the Solution You'd Like
   
   Cover setting, clearing and reading the target bit, preserving other bits, 
and handling bit 0 and bit 31.
   
   ### Describe Alternatives You've Considered
   
   A broker-level test would cover these operations indirectly. A unit test can 
check exact bitmap values without starting a broker.
   
   ### Additional Context
   
   _No response_


-- 
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]

Reply via email to