-
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/broker_replicas_info.rs
Current Coverage: Unknown
Target Coverage: 80%+
Test Cases
The following test scenarios need to be implemented for BrokerReplicasInfo:
- Test default initialization creates empty HashMap
- Test
new()constructor creates empty struct - Test
add_replica_info()adds entry to table - Test
add_replica_info()with multiple entries - Test
get_replicas_info_table()getter returns correct reference - Test
set_replicas_info_table()setter updates table - Test serialization to JSON with camelCase field names
- Test deserialization from JSON with camelCase field names
- Test serialization/deserialization roundtrip
- Test with empty replicas_info_table
- Test with multiple ReplicasInfo entries
- Test ReplicasInfo struct creation and methods
- Test ReplicasInfo PartialEq, Eq, Hash implementations
- Test ReplicasInfo Clone trait
- Test nested ReplicaIdentity vectors
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🧪