Conversation
|
🔊@oopscompiled 🚀Thanks for your contribution🎉! 💡CodeRabbit(AI) will review your code first🔥! Note 🚨The code review suggestions from CodeRabbit are to be used as a reference only, and the PR submitter can decide whether to make changes based on their own judgment. Ultimately, the project management personnel will conduct the final code review💥. |
|
No actionable comments were generated in the recent review. 🎉 WalkthroughThis PR removes 8 lines of unused test code from the end_transaction_processor.rs file, including a test assertion validating tags_code computation for SingleTag and a commented-out test line. The underlying implementation logic remains unchanged. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Removes stale commented-out code from end_transaction_processor.rs test module, addressing issue #6344 by cleaning up “useless” commented assertions/lines.
Changes:
- Deleted a commented-out
tags_codeassertion block in theend_message_transaction_with_valid_messagetest. - Removed a commented-out line in the
end_message_transaction_with_empty_bodytest.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| fn end_message_transaction_with_empty_body() { | ||
| let mut msg_ext = MessageExt::default(); | ||
| //msg_ext.set_body(None); | ||
| let msg_inner = end_message_transaction(&mut msg_ext); | ||
| assert!(!msg_inner.get_body().is_some_and(|b| b.is_empty())); | ||
| } |
There was a problem hiding this comment.
end_message_transaction_with_empty_body currently constructs a default MessageExt (which has body == None) and then asserts !msg_inner.get_body().is_some_and(|b| b.is_empty()), which will always pass when the body is None. This makes the test effectively non-assertive for the “empty body” scenario. Consider either renaming the test to reflect the None body case, or explicitly setting an empty body (e.g., Bytes::new()) and asserting the intended behavior for empty-but-present bodies.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6346 +/- ##
==========================================
- Coverage 42.62% 42.42% -0.21%
==========================================
Files 912 918 +6
Lines 128056 129040 +984
==========================================
+ Hits 54590 54750 +160
- Misses 73466 74290 +824 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
rocketmq-rust-bot
left a comment
There was a problem hiding this comment.
LGTM - All CI checks passed ✅
|
@oopscompiled Thank you for your continued contributions to the RocketMQ-Rust project. Wishing you and your family a healthy and prosperous Year of the Horse this Lunar New Year's Eve! May all your endeavors be wildly successful! |
Which Issue(s) This PR Fixes(Closes)
Brief Description
How Did You Test This Change?
Summary by CodeRabbit