Mrmr888 opened a new issue, #7869:
URL: https://github.com/apache/shenyu/issues/7869

   ### Description
   
   The existing MapUtilsTest in my base checkout covers transStringMap but does 
not cover computeIfAbsent.
   
   I would like to add two unit tests:
   
   - When the key already has a non-null value, return the existing value 
without invoking the mapping function.
   - When the key is absent, invoke the mapping function, return its result, 
and store that result in the map.
   
   This is a test-only change. No production code is modified.
   
   I have prepared the tests on my fork and validated them with:
   
   `.\mvnw.cmd -pl shenyu-common -am test "-Dtest=MapUtilsTest" 
"-Dsurefire.failIfNoSpecifiedTests=false"`
   
   Result: MapUtilsTest ran 3 tests with 0 failures, 0 errors and 0 skipped 
tests. The build passed.
   
   ### Task List
   
   _No response_


-- 
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]

Reply via email to