()
| 472 | |
| 473 | #[test] |
| 474 | fn consumer_group_stats() { |
| 475 | let registry = TopicRegistry::new(1000); |
| 476 | registry.create_topic("cg").unwrap(); |
| 477 | registry.subscribe_group("cg", "g1", 0).unwrap(); |
| 478 | registry.subscribe_group("cg", "g1", 0).unwrap(); |
| 479 | registry.subscribe_group("cg", "g2", 0).unwrap(); |
| 480 | |
| 481 | let stats = registry.topic_stats("cg").unwrap(); |
| 482 | assert_eq!(stats.consumer_group_count, 2); |
| 483 | } |
| 484 | } |
nothing calls this directly
no test coverage detected