(origin: EntryMatch['origin'])
| 382 | |
| 383 | /** The location column for a palette entry row — where it came from. */ |
| 384 | export function originLabel(origin: EntryMatch['origin']): string { |
| 385 | switch (origin) { |
| 386 | case 'route': |
| 387 | return 'route'; |
| 388 | case 'file': |
| 389 | return 'runs at module level'; |
| 390 | case 'test': |
| 391 | return 'test'; |
| 392 | case 'hub': |
| 393 | return 'depended on'; |
| 394 | } |
| 395 | } |
| 396 | |
| 397 | /* ------------------------------------------------------------------ flow -- */ |
| 398 |
no outgoing calls
no test coverage detected