-
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_response_body.rs
Current Coverage: Unknown
Target Coverage: 80%+
Test Cases
The following test scenarios need to be implemented for QueryAssignmentResponseBody:
- Test default initialization creates empty HashSet
- 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 with empty message_queue_assignments HashSet
- Test with single MessageQueueAssignment in HashSet
- Test with multiple MessageQueueAssignments in HashSet
- Test HashSet behavior (no duplicates)
- Test adding MessageQueueAssignment to existing struct
- Test MessageQueueAssignment equality in HashSet
- Test Debug trait output
- Test with various MessageQueueAssignment configurations
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🧪