test(table): expand WaitingQueue coverage for updateLimits, counters, and cold-iterator paths#672
Closed
vasiliy-mikhailov wants to merge 1 commit into
Closed
Conversation
… and cold-iterator paths
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #672 +/- ##
=========================================
Coverage 71.72% 71.72%
- Complexity 3431 3432 +1
=========================================
Files 386 386
Lines 16072 16072
Branches 1689 1689
=========================================
Hits 11528 11528
+ Misses 3895 3893 -2
- Partials 649 651 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
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 11 unit tests to
WaitingQueueTestexercisingupdateLimits(single-arg factor, waiting-acquire triggering, shrink-driven overflow destroy), thegetUsedCount/getPendingCountstat accessors, idle-object clearing on close, and the pre-completed-future idle-poll fallback. All tests reuse the file's existing JUnit 4 helper harness and assert real pool state transitions.The additions are append-only (no existing test is modified) and pass against the current code.
How this was produced
This PR was generated with an AI-assisted pipeline built around mutation testing (PIT). The pipeline mutates the target class (flipping conditions and changing boundary/edge cases) and runs the existing tests against each mutant. Where a mutant survives (the existing tests do not catch that edge case), it writes a focused test for that case and reruns PIT to confirm the new test actually kills that specific mutant. So every added test is verified to catch a concrete edge case the suite missed before, rather than being speculative or redundant. The change is additive only (no production code modified), and the module builds green under its CI JDK.