PingTaoTao opened a new pull request, #9592:
URL: https://github.com/apache/rocketmq/pull/9592
## What is the purpose of the change
This PR adds comprehensive unit tests for the `StoreCheckpoint` class to
improve test coverage to over 80%.
## Brief changelog
- Add tests for new checkpoint file creation
- Add tests for all fields persistence and retrieval
- Add tests for getMinTimestamp() method with edge cases
- Add tests for getMinTimestampIndex() method
- Add tests for all setters and getters
- Add tests for multiple flush operations
- Add tests for shutdown idempotency
- Improve test structure with setUp() method
## Verifying this change
- [x] Make sure there is a GitHub issue filed for the change (usually
before you start working on it). Mention it in the description (e.g.
Fixes #8979).
- [x] Unit tests have been added to verify the change.
- [x] The change has been verified by running the unit tests locally.
Fixes #8979
--
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]