-
-
Notifications
You must be signed in to change notification settings - Fork 136
Add Java Records support to Poiji library with Java 11 compatibility #339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: ozlerhakan <[email protected]>
Co-authored-by: ozlerhakan <[email protected]>
Co-authored-by: ozlerhakan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot Add another unit test including @ExcelCell annotations.
|
@copilot CI/CD has been failing with "Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project poiji: Fatal error compiling: error: release version 17 not supported -> [Help 1]" Review the necessary github actions. |
Co-authored-by: ozlerhakan <[email protected]>
Added unit test
Fixed the CI/CD issue by updating Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #339 +/- ##
============================================
- Coverage 93.90% 92.40% -1.51%
- Complexity 475 528 +53
============================================
Files 44 44
Lines 1330 1501 +171
Branches 164 207 +43
============================================
+ Hits 1249 1387 +138
- Misses 45 68 +23
- Partials 36 46 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@copilot you've removed java 11 compatibility in poiji. However, users who cannot switch to a later version should be able to always use the latest version. Review the parts to cover this need. |
…va 17+ Co-authored-by: ozlerhakan <[email protected]>
Restored Java 11 compatibility. The library now: For Java 11 users:
For Java 17+ users:
Implementation:
Commit: 8757a1d Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot our code coverage has been dropped. Review the tests to make sure that we have covered the new features along with the existing ones |
Co-authored-by: ozlerhakan <[email protected]>
Added 16 comprehensive tests to improve code coverage: New Tests:
Coverage improvements:
Test count: 367 total (351 original + 16 new record tests) - all passing Commit: 02b8a55 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot coverage has been dropped. Investigate the problem and make the required changes to improve the coverage between the main branch and the new branch
Co-authored-by: ozlerhakan <[email protected]>
Added 8 POJO-based tests in Coverage improvements:
Impact:
The coverage drop issue is addressed by ensuring all code paths in modified classes are tested, including the branches that handle regular POJOs (which are always executed on Java 11, and also executed on Java 17+ when not using records). Commit: e210380 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot add another test to cover |
Co-authored-by: ozlerhakan <[email protected]>
Added 2 tests for New test model:
New tests:
Both tests verify that unmapped columns (like "Region") are correctly captured in the unknownCells Map field while other annotated fields are properly mapped. Test count: 377 total (351 original + 18 record tests + 8 POJO coverage tests) - all passing Commit: 0747d9e |
|
@copilot add a test to cover ExcelCellsJoinedByName in records |
Co-authored-by: ozlerhakan <[email protected]>
Added 2 tests for New test model:
New tests:
Implementation fixes:
Both tests verify that multiple columns matching regex patterns are correctly collected into MultiValuedMap fields. Test count: 379 total (351 original + 20 record tests + 8 POJO coverage tests) - all passing Commit: d3632a3 |
|
@copilot new tests for the missing lines from the latest coverage |
I'll analyze the code coverage gaps and add tests for the missing lines. Could you provide more details about which specific lines are missing coverage? I can see from the coverage report or add comprehensive tests for edge cases in:
I'll proceed to add tests for commonly missed edge cases. |
Co-authored-by: ozlerhakan <[email protected]>
|
@copilot there are 31 missing lines from the tests. Consider covering the missing parts by either remove the disused parts or add unit tests for them. |
Co-authored-by: ozlerhakan <[email protected]>
Added comprehensive tests to cover missing lines from code coverage: New tests added:
Implementation fix:
Test count: 387 total (351 original + 28 record tests + 8 POJO coverage tests) - all passing The tests now cover all code paths including nested object handling, primitive defaults, and MultiValuedMap initialization which were previously untested. Commit: 8405d0d |
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.