yyqdbngt opened a new pull request, #3344: URL: https://github.com/apache/rocketmq-dashboard/pull/3344
## Summary Adds `InstanceIdsTest`, a first unit test for the numeric/string boundary helpers used for instance identifiers. Coverage: - `parseLongOrNull` returns null for null, blank, and whitespace-only inputs; - trimmed positive numeric strings parse to `Long` (including values above the 32-bit range); - non-numeric and overflowing strings degrade to null instead of throwing; - `asString` round-trips values and maps null to null. ## Why The helpers sit on the String API boundary for instance identifiers; the parse contract had no direct test. ## Testing `mvn -B test -Dtest=InstanceIdsTest` — 4/4 pass; checkstyle (validate) clean. -- 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]
