NiMv1 opened a new pull request, #7900:
URL: https://github.com/apache/incubator-seata/pull/7900

   ## What is the purpose of the change
   
   This PR adds comprehensive unit tests for the ConnectionContext class in the 
 m-datasource module to increase test coverage.
   
   ## Brief changelog
   
   - Add ConnectionContextTest.java with 26 unit tests covering:
     - Global transaction state management (inGlobalTransaction, ind)
     - Branch registration (isBranchRegistered, setBranchId)
     - Undo log management (hasUndoLog, ppendUndoItem, getUndoItems)
     - Lock key management (hasLockKey, ppendLockKey, uildLockKeys)
     - Savepoint operations (ppendSavepoint,  emoveSavepoint,  eleaseSavepoint)
     - State reset operations ( eset,  esetWithXid)
     - Auto-commit and global lock flags
   - Update changes/en-us/2.x.md with changelog entry
   - Add contributor to the list
   
   ## Verifying this change
   
   This change is a test-only change and can be verified by running:
   \\\ash
   mvn test -pl rm-datasource -Dtest=ConnectionContextTest
   \\\
   
   ## Checklist
   
   - [x] Make sure that the change is in accordance with [the contributing 
guide](https://github.com/apache/incubator-seata/blob/2.x/CONTRIBUTING.md)
   - [x] Add unit tests for the change
   - [x] Update the changelog


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