(total: number, shown: number)
| 44 | |
| 45 | /** The headline over the list: what it holds and what it is not showing. */ |
| 46 | export function entryHeadline(total: number, shown: number): string { |
| 47 | if (total === 0) { |
| 48 | return 'the index flagged no entry point for this project'; |
| 49 | } |
| 50 | if (shown < total) { |
| 51 | return `${total} ways in the index flagged, ${shown} shown: search for the rest`; |
| 52 | } |
| 53 | return total === 1 ? '1 way in the index flagged' : `${total} ways in the index flagged`; |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Why there is no route in the list, when there is none. |
no outgoing calls
no test coverage detected