You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/09/05 16:18:45 UTC
[PR] test: add first coverage for ToolListPagination defaults and guards [rocketmq-dashboard]
yyqdbngt opened a new pull request, #3455:
URL: https://github.com/apache/rocketmq-dashboard/pull/3455
### Summary
`ToolListPagination` is the shared paging helper for list-style AI tool handlers. It had no tests.
### Changes
- `page` and `pageSize` default to 1 and 20 when absent or `null`
- Positive numbers pass through; zero, negatives and non-numeric values are rejected with field-specific messages
- `pagedResult` exposes `items`, `total`, `page` and `size` under a stable key order
### Testing
`mvn test -Dtest=ToolListPaginationTest` passes: 5 tests, 0 failures (first test for this class).
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: add first coverage for ToolListPagination defaults and guards [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3455: test: add first coverage for ToolListPagination defaults and guards
URL: https://github.com/apache/rocketmq-dashboard/pull/3455
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org