Skip to content

chore(core): cover generated minimap item keys - #404

Closed
cursor[bot] wants to merge 1 commit into
mainfrom
topic/upkeep/coverage/viewport-minimap-keys
Closed

cursor[bot] wants to merge 1 commit into
mainfrom
topic/upkeep/coverage/viewport-minimap-keys

Conversation

@cursor

@cursor cursor Bot commented Oct 12, 2026

Copy link
Copy Markdown

Task

Coverage. The selector chose projects/core/src/viewport/viewport-minimap.ts because it had "6 uncovered lines, 97.41% lines and 82.96% branches, the smallest gap below the 90% threshold".

Measurement

Metric Before After
Lines 226/232 (97.41%) 232/232 (100%)
Branches 112/135 (82.96%) 115/135 (85.18%)
Statements 251/272 (92.27%) 258/272 (94.85%)
Functions 20/20 (100%) 20/20 (100%)

No other file's coverage decreased. Core unit tests: 2380 passed.

API

No public API changed. The diff is tests only.

Left alone

Twenty defensive branches remain, including a missing viewport, a parent that is not a viewport, disconnect races, a missing preview wrapper, zero-size roots, pointer-id mismatches, and a pan session that never starts. Line coverage is complete, so the selector will not choose this file for those branches.

Open in Web View Automation 

Adds a unit test for automatic viewport roots that have no id.
Line coverage in viewport-minimap.ts rises from 97.41% to 100%,
and branch coverage rises from 82.96% to 85.18%. No behavior change.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
@cursor
cursor Bot marked this pull request as ready for review October 12, 2026 06:28
@coryrylan coryrylan added the upkeep label Oct 12, 2026 — with Cursor
@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/elements/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 4aa24d71-9550-420c-bd64-b807e52bec0e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

Copy link
Copy Markdown

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/vitest

The overall line coverage in commit 60c9828 in the topic/upkeep/coverag... branch remains at 99%, unchanged from commit d8594f1 in the main branch.

Show a line coverage summary of the most impacted files.
File main d8594f1 topic/upkeep/coverag... 60c9828 +/-
projects/core/s...port-minimap.ts 97% 100% +3%

@coryrylan coryrylan closed this Oct 12, 2026
@coryrylan
coryrylan deleted the topic/upkeep/coverage/viewport-minimap-keys branch October 12, 2026 17:25
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