Commit ca9c68b
test(submodule): cover commit hash validation branches
Add focused tests for the private commit hash validator so SonarQube and Codecov can account for the short-hash and non-hex rejection branches.
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 c508ad4 commit ca9c68b
2 files changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
405 | 433 | | |
406 | 434 | | |
407 | 435 | | |
| |||
1139 | 1167 | | |
1140 | 1168 | | |
1141 | 1169 | | |
| 1170 | + | |
1142 | 1171 | | |
1143 | 1172 | | |
1144 | 1173 | | |
| |||
0 commit comments