-
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/topic_info_wrapper/topic_config_wrapper.rs
Current Coverage: Some existing tests
Target Coverage: 90%+
Test Cases
The following test scenarios need to be implemented for TopicConfigSerializeWrapper:
- Test default initialization creates empty HashMap
- Test Clone trait implementation preserves all fields
- Test PartialEq trait with identical structs
- Test PartialEq trait with different structs
- Test serialization to JSON with renamed fields
- Test deserialization from JSON with renamed fields
- Test serialization/deserialization roundtrip
- Test
topic_config_table()getter returns correct reference - Test
data_version()getter returns correct reference - Test with empty topic_config_table
- Test with single TopicConfig in table
- Test with multiple TopicConfigs in table
- Test DataVersion field behavior
- Test with various TopicConfig configurations
- Test field name mapping (topicConfigTable, dataVersion)
- Test Debug trait output
- Test creating struct with populated fields
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🧪