Skip to content

Add unit tests - #412

Merged
ibauersachs merged 8 commits into
dnsjava:masterfrom
sean-g-rae:srae/add-unit-tests
Oct 20, 2026
Merged

ibauersachs merged 8 commits into
dnsjava:masterfrom
sean-g-rae:srae/add-unit-tests

Conversation

@sean-g-rae

@sean-g-rae sean-g-rae commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

What: Add unit tests to cover some small gaps that existing in test coverage
How: Making no changes to non-test code, this PR is strictly for adding unit tests.

Note: there is no associated issue.

@codecov

codecov Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.28571% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.79%. Comparing base (a0d02e2) to head (693b389).

Files with missing lines Patch % Lines
src/main/java/org/xbill/DNS/Cache.java 89.28% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #412      +/-   ##
============================================
+ Coverage     66.96%   69.79%   +2.83%     
- Complexity     3099     3256     +157     
============================================
  Files           198      198              
  Lines         13711    13718       +7     
  Branches       2142     2141       -1     
============================================
+ Hits           9181     9574     +393     
+ Misses         3949     3555     -394     
- Partials        581      589       +8     

☔ View full report in Codecov by Harness.
📢 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.

@sean-g-rae

Copy link
Copy Markdown
Contributor Author

@ibauersachs should I submit this PR to the dnsjava developers for evaluation? No rush just didn't want to miss something on my end. Thanks!

@ibauersachs

Copy link
Copy Markdown
Member

Nothing missed on your end, I just haven't been working on dnsjava this summer and pursued outdoor activities. Come fall, I assume this will change again.

Without having looked at the content yet, thanks a lot for your contribution!

@sean-g-rae

Copy link
Copy Markdown
Contributor Author

I really appreciate the detailed feedback, @ibauersachs ! I think I followed up and resolved all of the issues, but please let me know if I missed anything. Thank you!

sean-g-rae and others added 8 commits October 20, 2026 23:04
What: Add unit tests to cover some small gaps that existing in test coverage
How: Making no changes to non-test code, this PR is strictly for adding unit tests.
@sonarqubecloud

Copy link
Copy Markdown

@ibauersachs

Copy link
Copy Markdown
Member

Sorry this took so long.

@ibauersachs
ibauersachs merged commit 8eab638 into dnsjava:master Oct 20, 2026
20 checks passed
@ibauersachs ibauersachs added this to the v3.6.6 milestone Oct 20, 2026
@sean-g-rae
sean-g-rae deleted the srae/add-unit-tests branch October 20, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants