Skip to content

[ISSUE #11552] Add unit tests for transaction flags in MessageSysFlag - #11554

Open
stevecoots wants to merge 1 commit into
apache:developfrom
stevecoots:test/message-sysflag-transaction-flags
Open

stevecoots wants to merge 1 commit into
apache:developfrom
stevecoots:test/message-sysflag-transaction-flags

Conversation

@stevecoots

Copy link
Copy Markdown

Which Issue(s) This PR Fixes

Brief Description

Add regression tests for transaction flag handling in MessageSysFlag in the common module. The tests verify that all four transaction types are read correctly, that replacing a transaction type clears the previous transaction bits, and that resetting to TRANSACTION_NOT_TYPE clears the transaction bits. They also verify that replacing or clearing the transaction type preserves unrelated message flags.

How Did You Test This Change?

Ran MessageSysFlagTest, TopicSysFlagTest, and SubscriptionSysFlagTest successfully with Maven:

mvn -B -pl common -am '-Dtest=MessageSysFlagTest,TopicSysFlagTest,SubscriptionSysFlagTest' '-Dsurefire.failIfNoSpecifiedTests=false' test

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.88%. Comparing base (28960fd) to head (c0d7df5).
⚠️ Report is 4 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #11554      +/-   ##
=============================================
+ Coverage      49.86%   49.88%   +0.02%     
+ Complexity     14454    14452       -2     
=============================================
  Files           1391     1391              
  Lines         103432   103432              
  Branches       13550    13550              
=============================================
+ Hits           51573    51595      +22     
+ Misses         45636    45602      -34     
- Partials        6223     6235      +12     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Add unit tests for transaction flags in MessageSysFlag

2 participants