yyqdbngt opened a new pull request, #3794: URL: https://github.com/apache/rocketmq-dashboard/pull/3794
### Motivation The existing `InstanceProviderTest` covers only the large-page-number case of the consumer paging default. The remaining in-memory default methods — topic paging, consumer-group paging and the reset-offset preview aggregation — had no coverage. ### Changes - `listTopicsPageShouldReturnSlicedResults`: the default page slicing returns the requested window with the full total. - `listTopicsPageShouldClampPageBeyondTotal`: a page offset past the list length degrades to an empty page instead of throwing. - `listConsumerGroupsPageShouldSliceAndReportTotal`: the group paging default slices and reports the correct total. - `previewResetOffsetShouldCollectOnlyMatchingTopicQueues`: only rows for the requested topic join the preview, null rows are skipped, `allowReset` is on and the current lag is summed. - `previewResetOffsetShouldDisallowResetWithoutMatchingQueues`: no matching queue means `allowReset=false` with a warning still surfaced. ### Verification ``` mvn -B test -Dtest=InstanceProviderTest [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]
