yyqdbngt opened a new pull request, #3843: URL: https://github.com/apache/rocketmq-dashboard/pull/3843
### Motivation The existing `ApacheRocketMqDlqMetricsCollectorTest` covers sample availability, listing failures, vendor skipping and legacy null vendors, but the `supports` gate details and the negative-count clamping were untested. ### Changes - `supportsGateRejectsNullInstancesAndNames`: null instances and null names are not supported (a name is required), and the collector advertises `dlq.message.count`. - `blankGroupsAreSkippedAndNegativeCountsClamped`: whitespace-only group names are filtered out and negative message counts clamp to zero for the available sample. ### Verification ``` mvn -B test -Dtest=ApacheRocketMqDlqMetricsCollectorTest [INFO] Tests run: 6, 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]
