[Repo Assist] test: add coverage for ARP/MSIX local stubs and detail-cache invalidation#165
Draft
github-actions[bot] wants to merge 1 commit intomainfrom
Conversation
- load_detail_arp_id_creates_local_stub_without_backend_call - load_detail_msix_id_creates_local_stub_without_backend_call - load_detail_empty_source_creates_local_stub_without_backend_call - load_detail_local_stub_is_cached - operation_complete_upgrade_invalidates_detail_cache - operation_complete_pin_invalidates_detail_cache - operation_complete_failed_single_op_sets_status_and_does_not_refresh 7 new tests; 231 → 238 passing. No production code changed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Apr 29, 2026
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.
🤖 This PR was created by Repo Assist, an automated AI assistant.
What
Adds 7 targeted unit tests to
src/app.rsthat cover two previously untested code paths:load_detail— local stub creation (4 tests)load_detailhas a branch for IDs that cannot be looked up viawinget show --exact: ARP registry entries (ARP\...), MSIX/AppX packages (MSIX\...), and packages with no source. For these, it builds a local detail stub and caches it without calling the backend. None of this was tested.load_detail_arp_id_creates_local_stub_without_backend_callload_detail_msix_id_creates_local_stub_without_backend_callload_detail_empty_source_creates_local_stub_without_backend_callsource = "local"load_detail_local_stub_is_cacheddetail_cacheprocess_messages—OperationCompletecache invalidation (3 tests)When an operation (Install / Upgrade / Uninstall / Pin / Unpin) completes,
process_messagesremoves the affected package fromdetail_cacheso the next selection forces a freshwinget show. Only theBatchUpgradepath was previously tested.operation_complete_upgrade_invalidates_detail_cacheUpgraderemoves entry from cacheoperation_complete_pin_invalidates_detail_cachePinremoves entry from cacheoperation_complete_failed_single_op_sets_status_and_does_not_refreshpost_refresh_statusqueuedTest Status
No production code changed.