Repository navigation
test: move RgbHsvConversion checks from main into JUnit tests - #7793
Open
SachinKumar-York wants to merge 1 commit into
Open
SachinKumar-York wants to merge 1 commit into
SachinKumar-York wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7793 +/- ##
============================================
+ Coverage 82.65% 82.93% +0.28%
- Complexity 8615 8640 +25
============================================
Files 848 848
Lines 26466 26440 -26
Branches 5182 5160 -22
============================================
+ Hits 21875 21928 +53
+ Misses 3808 3725 -83
- Partials 783 787 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
SachinKumar-York
force-pushed
the
rgb-hsv-conversion-tests
branch
from
December 2, 2026 04:08
f2579fd to
22c844e
Compare
SachinKumar-York
marked this pull request as ready for review
December 2, 2026 04:12
SachinKumar-York
requested review from
DenizAltunkapan,
alxkm and
yanglbme
as code owners
December 2, 2026 04:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RgbHsvConversionchecked itself withassertstatements inmain(), which never run in CI (andassertis disabled by default). This moves those cases intoRgbHsvConversionTestand removesmain()and the now-unusedapproximatelyEqualHsvhelper.The new test class covers:
hsvToRgbcases and 10rgbToHsvcases (same tolerances as before)IllegalArgumentExceptionfor out-of-range hue/saturation/value and red/green/blueNo behaviour change in
RgbHsvConversion.clang-format -i --style=file path/to/your/file.java