Skip to content

Improve coverage for core utility classes#239

Merged
RoiSoleil merged 3 commits intomasterfrom
improve-coverage-core-utils-1-8702093671803069398
Apr 27, 2026
Merged

Improve coverage for core utility classes#239
RoiSoleil merged 3 commits intomasterfrom
improve-coverage-core-utils-1-8702093671803069398

Conversation

@RoiSoleil
Copy link
Copy Markdown
Contributor

Improved code coverage by adding unit tests for three utility classes in the org.moreunit.core bundle: ArrayUtils, Preconditions, and ExtendedSafeRunner. These tests ensure that the core logic of these utilities is correctly verified.


PR created automatically by Jules for task 8702093671803069398 started by @RoiSoleil

This commit improves code coverage for utility classes in the
org.moreunit.core bundle. Added:
- ArrayUtilsTest.java
- PreconditionsTest.java
- ExtendedSafeRunnerTest.java

The tests cover various scenarios including success paths and
error/exception handling.

Co-authored-by: RoiSoleil <3462260+RoiSoleil@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

❌ Patch coverage is 74.22680% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.30%. Comparing base (19d2559) to head (08ee1d4).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
...test/org/moreunit/core/util/PreconditionsTest.java 59.64% 23 Missing ⚠️
...org/moreunit/core/util/ExtendedSafeRunnerTest.java 91.30% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #239      +/-   ##
============================================
+ Coverage     73.20%   73.30%   +0.10%     
- Complexity     3206     3235      +29     
============================================
  Files           416      420       +4     
  Lines         14339    14435      +96     
  Branches       1266     1266              
============================================
+ Hits          10497    10582      +85     
- Misses         3307     3322      +15     
+ Partials        535      531       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

google-labs-jules Bot and others added 2 commits April 27, 2026 15:22
This commit improves code coverage for utility classes in the
org.moreunit.core bundle.

Changes:
- Added ArrayUtilsTest.java
- Added PreconditionsTest.java (covering all methods and exception cases)
- Added ExtendedSafeRunnerTest.java (including exception handling)
- Improved StringsTest.java with coverage for emptyArray()

These tests ensure that core utilities are robust and well-verified.

Co-authored-by: RoiSoleil <3462260+RoiSoleil@users.noreply.github.com>
…StringConstants

This commit improves code coverage for utility classes in the
org.moreunit.core bundle.

Changes:
- Added ArrayUtilsTest.java
- Added PreconditionsTest.java (covering all methods and exception cases)
- Added ExtendedSafeRunnerTest.java (including exception handling)
- Added StringConstantsTest.java
- Improved StringsTest.java with coverage for emptyArray()
- Improved StringLengthComparatorTest.java with more precise assertions

These tests ensure that core utilities are robust and well-verified.

Co-authored-by: RoiSoleil <3462260+RoiSoleil@users.noreply.github.com>
@RoiSoleil RoiSoleil merged commit 056906c into master Apr 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant