Commit 5b5265d
test(submodule): cover remaining Sonar branches
Add focused tests for branch suffix parsing and workspace validation fallback handling so the submodule coverage report no longer has uncovered lines or branches in src/core/submodule.ts.
Local verification:
- npm run lint --workspace git-id-switcher -- --no-cache
- npm run compile --workspace git-id-switcher
- npm run test:coverage --workspace git-id-switcher
Signed-off-by: Null;Variant <null@nullvariant.com>
🖥️ IDE: [Zed](https://zed.dev/)
Co-authored-by: GPT-5.5 <codex@openai.com>
Model-Raw: gpt-5.51 parent ca9c68b commit 5b5265d
2 files changed
Lines changed: 60 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
125 | 131 | | |
126 | 132 | | |
127 | 133 | | |
| |||
270 | 276 | | |
271 | 277 | | |
272 | 278 | | |
273 | | - | |
| 279 | + | |
274 | 280 | | |
275 | 281 | | |
276 | 282 | | |
| |||
534 | 540 | | |
535 | 541 | | |
536 | 542 | | |
| 543 | + | |
537 | 544 | | |
| 545 | + | |
538 | 546 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
433 | 482 | | |
434 | 483 | | |
435 | 484 | | |
| |||
1168 | 1217 | | |
1169 | 1218 | | |
1170 | 1219 | | |
| 1220 | + | |
| 1221 | + | |
1171 | 1222 | | |
1172 | 1223 | | |
1173 | 1224 | | |
| |||
0 commit comments