You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "jay1466 (via GitHub)" <gi...@apache.org> on 2026/09/10 14:54:40 UTC

[PR] [test] Improve test coverage for utils.* classes [fluss]

jay1466 opened a new pull request, #4292:
URL: https://github.com/apache/fluss/pull/4292

   ## Summary
   
   Closes #883 (sub-issue of umbrella #641 – Improve Test Code Coverage for Ignored Classes).
   
   Several utility classes in `org.apache.fluss.utils` were excluded from the JaCoCo coverage check because they had no tests. This PR adds comprehensive unit tests for them and removes the need for those exclusions by ensuring >= 70% line coverage.
   
   ### New test classes
   
   | Test class | Class under test | Tests added |
   |---|---|---|
   | `AbstractIteratorTest` | `AbstractIterator` | 7 |
   | `CollectionUtilsTest` | `CollectionUtils` | 2 |
   | `CopyOnWriteMapTest` | `CopyOnWriteMap` | 11 |
   | `EncodingUtilsTest` | `EncodingUtils` | 3 |
   | `OperatingSystemTest` | `OperatingSystem` | 4 |
   | `PropertiesUtilsTest` | `PropertiesUtils` | 4 |
   
   **Total: 31 new tests, 0 failures.**
   
   ### Minor fix
   Fix a copy-paste error in the Javadoc of `OperatingSystem.isMac()` which incorrectly stated it checks for Windows.
   
   ## Test Plan
   - All 31 new tests pass: `mvn test -Dtest="CollectionUtilsTest,PropertiesUtilsTest,EncodingUtilsTest,AbstractIteratorTest,CopyOnWriteMapTest,OperatingSystemTest" -pl fluss-common`
   - Code style verified: `mvn spotless:check -pl fluss-common` passes.
   
   ## API and Format
   No API or storage format changes.
   
   ## Documentation
   No documentation changes needed.
   
   ---
   🤖 AI-assisted changes – reviewed by human developer


-- 
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: issues-unsubscribe@fluss.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [test] Improve test coverage for utils.* classes [fluss]

Posted by "github-actions[bot] (via GitHub) via issues" <is...@fluss.apache.org>.
github-actions[bot] commented on PR #4292:
URL: https://github.com/apache/fluss/pull/4292#issuecomment-6763591104

   This PR has been marked as stale because it has had no activity for 60 days. It will be closed in 10 days unless it receives a new comment, commit or other update.


-- 
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: issues-unsubscribe@fluss.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [test] Improve test coverage for utils.* classes [fluss]

Posted by "github-actions[bot] (via GitHub) via issues" <is...@fluss.apache.org>.
github-actions[bot] commented on PR #4292:
URL: https://github.com/apache/fluss/pull/4292#issuecomment-7060029624

   This PR was closed because it has been stale for 10 days with no activity.


-- 
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: issues-unsubscribe@fluss.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [test] Improve test coverage for utils.* classes [fluss]

Posted by "github-actions[bot] (via GitHub) via issues" <is...@fluss.apache.org>.
github-actions[bot] closed pull request #4292: [test] Improve test coverage for utils.* classes
URL: https://github.com/apache/fluss/pull/4292


-- 
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: issues-unsubscribe@fluss.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org