test: expand unit test coverage for AutoCompletion, AutoCompletePopupWindow, ParameterizedCompletionContext - #128
Merged
Conversation
bobbylight
marked this pull request as ready for review
August 27, 2026 01:30
bobbylight
force-pushed
the
test/expand-autocomplete-coverage
branch
from
August 27, 2026 01:33
b6b0cfb to
5a8a207
Compare
…ed context Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
bobbylight
force-pushed
the
test/expand-autocomplete-coverage
branch
from
August 27, 2026 01:59
5a8a207 to
29e43be
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #128 +/- ##
============================================
+ Coverage 74.33% 77.52% +3.19%
- Complexity 713 742 +29
============================================
Files 36 36
Lines 3253 3253
Branches 520 520
============================================
+ Hits 2418 2522 +104
+ Misses 540 435 -105
- Partials 295 296 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Summary
Expands unit test coverage across three core classes:
AutoCompletePopupWindow(previously untested),AutoCompletion, andParameterizedCompletionContext.Details
AutoCompletePopupWindowTest, covering key navigation actions (Up/Down/Home/End/PageUp/PageDown with wraparound), Enter/Tab/Escape handling, mouse double-click insertion,getSelection()before/after hiding,setCompletions, list cell renderer round-trip, description window color/size (before and after the window is created),disposeDescWindow,toggleDescriptionWindowedge cases, the staticinstall/uninstallDescWindowToggleKeyhelpers,updateUI, andsetVisiblelifecycle behavior.AutoCompletionTestwith tests forgetCompletionProvider,getDescWindowFactory/setDescWindowFactory(verifying the custom factory is actually used to build the description window),setDescriptionWindowSizeapplied lazily before the popup exists,isAutoActivationEnabled/setAutoActivationEnabledround-tripping, and both branches of parameterized completion assistance for zero-parameter completions (typed vs. untyped start character).ParameterizedCompletionContextTestwith tests for theNextChoiceActionfallback path when the parameter choices window isn't visible, and forClosingAction's "closing paren is part of the argument text" branch.Test plan
./gradlew clean buildpasses locally (checkstyle, spotbugs, and all unit tests).🤖 Generated with Claude Code