GitNexus/gitnexus-web/test/unit
jreakin 2bd04fe2c4 test: add positive/negative tests for O(1) lookup optimizations
8 tests verifying the data structures underlying performance changes:

nodeById Map (O(1) lookup):
  + Map.get returns correct node by ID
  + duplicate IDs: last wins
  - non-existent ID returns undefined
  - empty Map returns undefined

Set.has (O(1) highlight matching):
  + present IDs return true
  - absent IDs return false
  + handles IDs with colons, dots, slashes
  - case-sensitive matching

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 10:16:33 -05:00
..
bug-fixes.test.ts test: add positive and negative tests for all 4 bug fixes 2026-03-23 03:48:27 -05:00
csv-generator.test.ts test: add negative tests for CSV generation 2026-03-23 08:21:31 -05:00
perf-optimizations.test.ts test: add positive/negative tests for O(1) lookup optimizations 2026-03-23 10:16:33 -05:00
security-guards.test.ts fix(web): strip quoted strings before readOnly keyword check 2026-03-23 05:09:44 -05:00