-
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/body/query_assignment_request_body.rs
Current Coverage: Unknown
Target Coverage: 80%+
Test Cases
The following test scenarios need to be implemented for QueryAssignmentRequestBody:
- 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
topicfield with various values - Test
consumer_groupfield with various values - Test
client_idfield with various values - Test
strategy_namefield with various values - Test
message_modelfield with different MessageModel values - Test MessageModel enum variants (e.g., Broadcasting, Clustering)
- Test with empty string fields
- Test with special characters in string fields
- Test Debug trait output
- Test creating struct with all fields populated
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🧪