Skip to content

test: cover trace tree binary search bounds#69

Open
jianmosier wants to merge 1 commit into
tsperf:mainfrom
jianmosier:codex/tsperf-binsearch-bounds
Open

test: cover trace tree binary search bounds#69
jianmosier wants to merge 1 commit into
tsperf:mainfrom
jianmosier:codex/tsperf-binsearch-bounds

Conversation

@jianmosier
Copy link
Copy Markdown

Summary

  • fix binSearch to use a stable closed-range lower/upper bound search
  • add boundary tests for inclusive ranges, empty input, out-of-bounds input, single items, and invalid ranges
  • allow TreeNode source navigation when pos is 0

Validation

  • pnpm exec vitest run test/binSearch.test.ts
  • pnpm typecheck

Scope

Draft PR for a small, reviewable slice. This intentionally does not touch virtualization, hot-path visualization, depth-limit highlighting, Windows cwd/drive behavior, or trace-server work.

@jianmosier jianmosier marked this pull request as ready for review May 20, 2026 12:30
@jianmosier jianmosier requested a review from danielroe as a code owner May 20, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant