(level: EffortLevel)
| 25 | } |
| 26 | |
| 27 | export function effortLevelToSymbol(level: EffortLevel): string { |
| 28 | switch (level) { |
| 29 | case 'low': |
| 30 | return EFFORT_LOW |
| 31 | case 'medium': |
| 32 | return EFFORT_MEDIUM |
| 33 | case 'high': |
| 34 | return EFFORT_HIGH |
| 35 | case 'max': |
| 36 | return EFFORT_MAX |
| 37 | default: |
| 38 | // Defensive: level can originate from remote config. If an unknown |
| 39 | // value slips through, render the high symbol rather than undefined. |
| 40 | return EFFORT_HIGH |
| 41 | } |
| 42 | } |
| 43 |
no outgoing calls
no test coverage detected