Repository navigation
Add tests for CRC32 - #7790
Merged
Merged
Add tests for CRC32#7790
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7790 +/- ##
============================================
+ Coverage 82.60% 82.63% +0.02%
- Complexity 8609 8614 +5
============================================
Files 848 848
Lines 26470 26470
Branches 5185 5185
============================================
+ Hits 21866 21873 +7
+ Misses 3822 3814 -8
- Partials 782 783 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
denizsev
marked this pull request as ready for review
November 30, 2026 23:30
denizsev
requested review from
DenizAltunkapan,
alxkm and
yanglbme
as code owners
November 30, 2026 23:30
DenizAltunkapan
approved these changes
Dec 1, 2026
DenizAltunkapan
enabled auto-merge (squash)
December 1, 2026 08:56
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.
Adds the missing unit tests for
CRC32(others/CRC32.java). The class had no test class.The tests check the standard CRC-32 values:
""0x00000000"a"0xE8B7BE43"123456789"0xCBF43926(the usual check value for CRC-32)"The quick brown fox jumps over the lazy dog"0x414FA339Checked locally:
mvn -Dtest=CRC32Test test(4 tests, 0 failures),mvn checkstyle:check(0 violations) andclang-format16 with--style=file.clang-format -i --style=file path/to/your/file.javaThe two checklist items about new algorithms do not apply: this PR adds a test class only.