* Get human-readable status text.
(status: TaskStatus)
| 293 | * Get human-readable status text. |
| 294 | */ |
| 295 | function getStatusText(status: TaskStatus): string { |
| 296 | switch (status) { |
| 297 | case 'completed': |
| 298 | return 'completed successfully' |
| 299 | case 'failed': |
| 300 | return 'failed' |
| 301 | case 'killed': |
| 302 | return 'was stopped' |
| 303 | case 'running': |
| 304 | return 'is running' |
| 305 | case 'pending': |
| 306 | return 'is pending' |
| 307 | } |
| 308 | } |
| 309 |
no outgoing calls
no test coverage detected