Repository navigation
Commit 9ab5356
committed
test(activate): give the focusInput silence assertions teeth, drop the clobber guard
Row registerCommands.spec.ts:518: the two no-target focusInput cases proved only that no provider received a post, so a build that logs an error instead of posting passed. Both cases now also assert the output channel stayed silent, using not.toHaveBeenCalled() rather than a message match. Control run recorded before this commit: adding one outputChannel.appendLine at the top of the focusInput try block turns that subset from 5 passed into 2 failed, which is the evidence that the new assertions can fail. The probe was reverted, so only the assertions remain.
Row registerCommands.ts:43: the comment claimed the extension host no longer reads getPanel() directly while ClineProvider.ts imports it (line 127) and calls it (line 1200) in the tab-view disposal check. The wording now names that reader. A grep of src at this head shows only those two lines plus the test file.
Row registerCommands.ts:355: the clobber guard on pendingTabPanelCreation is deleted rather than suppressed. The entry guard hands the in-flight promise to every overlapping caller, so between storing the slot and this finally block nothing else can write the slot and the equality check always held. Clearing unconditionally removes the branch, its mutant, and the Stryker directive.
Gates on this worktree head: focusInput subset 5 passed, open-in-editor subset 17 passed, whole registerCommands.spec.ts 62 passed, tsc -p tsconfig.json clean, eslint --prune-suppressions --max-warnings=0 clean on both files with eslint-suppressions.json left untouched, prettier --check clean.1 parent e4b3151 commit 9ab5356
2 files changed
Lines changed: 15 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| 483 | + | |
| 484 | + | |
483 | 485 | | |
| 486 | + | |
484 | 487 | | |
485 | 488 | | |
486 | 489 | | |
| |||
515 | 518 | | |
516 | 519 | | |
517 | 520 | | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
518 | 524 | | |
519 | 525 | | |
520 | 526 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
342 | 344 | | |
343 | 345 | | |
344 | 346 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
356 | 353 | | |
357 | 354 | | |
358 | 355 | | |
| |||
0 commit comments