zjncs opened a new pull request, #5676: URL: https://github.com/apache/rocketmq-dashboard/pull/5676
### Problem `MessageQueryOutput` — the shared output of the AI message-query tools — had **no test**. ### Change Add `MessageQueryOutputTest` with seven tests pinning: | Contract | Pinned behaviour | | --- | --- | | window accounting | `fromPage` counts messages beyond the returned window as skipped, and a **non-zero skipped count marks the result as possibly truncated even when the provider itself did not** — the caller cannot distinguish a window from the full result otherwise | | provider flag | the provider's own `resultMayBeTruncated` is preserved verbatim | | negative clamp | a total below the window clamps the skipped count to zero | | unique-key path | truncates the list to the limit and counts the rest as skipped/truncated; a limit beyond the list keeps everything | | body privacy | bodies (with encoding + truncation flag) are included **only when asked for** — otherwise all three render as null via `NON_NULL`; identity fields survive either way | ### Verification - New tests: **7/7 green** against unmodified code. - Discriminating mutations on `MessageQueryOutput` (build result verified): skipped-window truncation dropped (**red**); the clamp dropped (**red**); the unique-key limit dropped (**red**); bodies always included regardless of the flag (**red**). - Restored: 7/7 green. No product code changed. -- 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]
