Skip to content

chore(viewport): cover generated keys for minimap roots without ids - #428

Merged
coryrylan merged 1 commit into
mainfrom
topic/upkeep/coverage/minimap-generated-keys
Oct 20, 2026
Merged

coryrylan merged 1 commit into
mainfrom
topic/upkeep/coverage/minimap-generated-keys

Conversation

@cursor

@cursor cursor Bot commented Oct 20, 2026

Copy link
Copy Markdown

Task

Coverage. The selector chose projects/viewport/src/minimap/minimap.ts.

Rationale: "6 uncovered lines, 97.24% lines and 85.71% branches, the smallest gap below the 90% threshold"

Measurement

minimap.ts unit coverage:

metric before after
lines 212/218 (97.24%) 218/218 (100%)
branches 108/126 (85.71%) 111/126 (88.09%)
statements 236/254 (92.91%) 243/254 (95.66%)
functions 23/23 (100%) 23/23 (100%)

No other file's line or branch coverage decreased. Viewport unit tests: 327 passed.

API

No public API changed.

Left alone

Fifteen defensive branches remain uncovered: a missing viewport, a missing preview wrapper, zero-size roots, an undefined ResizeObserver, and a pointer session that no longer matches. Line coverage is complete, so the selector will not choose this file again for those branches.

Open in Web View Automation 

Adds a unit test for automatic roots that have no id.
Line coverage in minimap.ts rises from 97.24% to 100%,
and branch coverage rises from 85.71% to 88.09%.
No behavior change.

Signed-off-by: Cursor Agent <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 20, 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: e1a09dde-ff65-42f5-ba26-c9a91e8d22a6

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.

@coryrylan coryrylan added the upkeep label Oct 20, 2026 — with Cursor
@cursor
cursor Bot marked this pull request as ready for review October 20, 2026 06:13
@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/vitest

main 7521484 topic/upkeep/coverag... 1b32481 +/-
99% 99% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@coryrylan
coryrylan merged commit 4262d4c into main Oct 20, 2026
18 checks passed
@coryrylan
coryrylan deleted the topic/upkeep/coverage/minimap-generated-keys branch October 20, 2026 14:13
@coryrylan

Copy link
Copy Markdown
Collaborator

🎉 This issue has been resolved in version 2.2.11 🎉

Changelog

@coryrylan

Copy link
Copy Markdown
Collaborator

🎉 This issue has been resolved in version 1.0.2 🎉

Changelog

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