(category: string)
| 539 | |
| 540 | /** The word the legend and a box's sub line use for a category. */ |
| 541 | export function categoryWord(category: string): string { |
| 542 | switch (category) { |
| 543 | case 'database': |
| 544 | return 'database'; |
| 545 | case 'response': |
| 546 | return 'response'; |
| 547 | case 'queue': |
| 548 | return 'queue'; |
| 549 | case 'email': |
| 550 | return 'email'; |
| 551 | case 'payments': |
| 552 | return 'payments'; |
| 553 | case 'cache': |
| 554 | return 'cache'; |
| 555 | case 'auth': |
| 556 | return 'auth'; |
| 557 | case 'process': |
| 558 | return 'process'; |
| 559 | default: |
| 560 | return category; |
| 561 | } |
| 562 | } |
nothing calls this directly
no outgoing calls
no test coverage detected