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

   ## What is the purpose of the change
   
   This PR adds unit tests for the core module to improve test coverage, 
addressing issue #6502.
   
   ## Brief changelog
   
   - Add LockStatusTest.java with tests for:
     - getCode() method
     - get(byte) and get(int) methods
     - Invalid code exception handling
     - Enum values validation
   
   - Add MessageTypeTest.java with tests for:
     - Version and type constants
     - Global transaction type constants
     - Branch transaction type constants
     - Merge and registration type constants
   
   - Add ProtocolConstantsTest.java with tests for:
     - Magic code bytes
     - Version constants
     - Frame length and head length
     - Message type constants
     - Configured codec and compressor validation
   
   - 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 core -Dtest=LockStatusTest,MessageTypeTest,ProtocolConstantsTest
   \\\
   
   ## 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
   
   Closes #6502 (partial)


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