Commit cb5af26
committed
test(eligibility): close the last coverage gaps without suppressions
Codecov counts a /* v8 ignore */ line as unhit, so both suppressions are gone rather
than carried:
DEFAULT_PRIORITY_LABEL names the built-in value, so resolvePriorityTypeLabel returns
it directly. PrTypeLabelSet is an open Record, which made DEFAULT_TYPE_LABELS.priority
read as possibly-undefined and forced a fallback branch nothing could ever take.
The .catch on resolvePriorityEligibilityHold is removed: that function catches its own
GitHub read and cannot reject, so the guard was unreachable code that read as
tested-and-fine while never running.
The remaining branch is closed by an end-to-end test instead: a clean, approved, green
PR that would MERGE is held because the priority issue it closes only became public a
minute ago -- held, never closed.1 parent 06c44d3 commit cb5af26
3 files changed
Lines changed: 59 additions & 8 deletions
File tree
- packages/loopover-engine/src/settings
- src/queue
- test/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
28 | | - | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
153 | 159 | | |
154 | 160 | | |
155 | 161 | | |
156 | | - | |
157 | | - | |
158 | | - | |
| 162 | + | |
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3479 | 3479 | | |
3480 | 3480 | | |
3481 | 3481 | | |
3482 | | - | |
3483 | | - | |
3484 | | - | |
3485 | | - | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
3486 | 3486 | | |
3487 | 3487 | | |
3488 | 3488 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2502 | 2502 | | |
2503 | 2503 | | |
2504 | 2504 | | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
2505 | 2552 | | |
2506 | 2553 | | |
2507 | 2554 | | |
| |||
0 commit comments