yyqdbngt opened a new pull request, #3834:
URL: https://github.com/apache/rocketmq-dashboard/pull/3834

   ### Motivation
   
   The existing `LiteTopicSummaryTest` covers the TTL status thresholds and the 
unset-consumer aggregation helpers, but the unknown-TTL branch, the density 
ratio and the emptiness semantics were untested.
   
   ### Changes
   
   - `ttlStatusShouldReturnUnknownWithoutLastActiveTime`: a summary without a 
last active time reports `UNKNOWN`.
   - `consumerDensityShouldComputeRatio`: 10 consumers over 5 topics yields a 
density of 2.0.
   - `isEmptyAggregationShouldConsiderBacklogAndConsumers`: an aggregation is 
empty only when both consumers and backlog are zero/absent.
   
   ### Verification
   
   ```
   mvn -B test -Dtest=LiteTopicSummaryTest
   [INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0
   [INFO] BUILD SUCCESS
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to