Skip to content

[Test🧪] Add unit tests for ConsumerRunningInfo #6208

@mxsm

Description

@mxsm

Prerequisites

  • I have searched existing test issues

Test Scope

Module: rocketmq-remoting
File: src/protocol/body/consumer_running_info.rs
Current Coverage: Unknown
Target Coverage: 75%+

Test Cases

The following test scenarios need to be implemented for ConsumerRunningInfo:

  • Test Clone trait implementation preserves all fields
  • Test Display trait formatting output
  • Test Display with empty subscription_set
  • Test Display with populated mq_table
  • Test Display with populated mq_pop_table
  • Test Display with status_table
  • Test with empty collections (BTreeMap, BTreeSet)
  • Test with populated SubscriptionData in subscription_set
  • Test with MessageQueue and ProcessQueueInfo in mq_table
  • Test with PopProcessQueueInfo in mq_pop_table
  • Test ConsumeType field
  • Test consume_orderly boolean field
  • Test prop_consumer_start_timestamp
  • Test user_consumer_info BTreeMap operations
  • Test status_table with ConsumeStatus entries

Willing to contribute?

  • I can submit a PR for this

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions