(value, fallback = 'planned')
| 28 | ]); |
| 29 | |
| 30 | function normalizeStatus(value, fallback = 'planned') { |
| 31 | const status = String(value || '').trim().toLowerCase(); |
| 32 | if (LOOP_STATUSES.includes(status)) return status; |
| 33 | return fallback; |
| 34 | } |
| 35 | |
| 36 | function isTerminalStatus(value) { |
| 37 | return TERMINAL_STATUSES.includes(normalizeStatus(value)); |
no outgoing calls
no test coverage detected