-
Notifications
You must be signed in to change notification settings - Fork 228
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededtesting🧪
Description
Prerequisites
- I have searched existing test issues
Test Scope
Module: rocketmq-remoting
File: src/protocol/header/end_transaction_request_header.rs
Current Coverage: Unknown
Target Coverage: 80%+
Test Cases
The following test scenarios need to be implemented for EndTransactionRequestHeader:
- Test default initialization creates empty struct
- Test Clone trait implementation preserves all fields
- Test serialization to JSON with camelCase field names
- Test deserialization from JSON with camelCase field names
- Test serialization/deserialization roundtrip
- Test flattened rpc_request_header serialization
- Test all required fields are present
- Test
topicfield with various values - Test
producer_groupfield with various values - Test
tran_state_table_offsetfield (u64) - Test
commit_log_offsetfield (u64) - Test
commit_or_rollbackfield with different transaction types - Test
commit_or_rollbackvalues: COMMIT, ROLLBACK, NOT_TYPE - Test
from_transaction_checkfield with true/false - Test
msg_idfield with various message IDs - Test
transaction_idfield with Some value - Test
transaction_idfield with None value - Test RequestHeaderCodecV2 macro-generated methods
- Test with complete RpcRequestHeader nested structure
- Test Debug trait output
Willing to contribute?
- I can submit a PR for this
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededtesting🧪