(state: CoverageState, reason = '')
| 72 | * missing" waere eine Zahl, die niemand gezaehlt hat. |
| 73 | */ |
| 74 | export function coverageTooltip(state: CoverageState, reason = ''): string { |
| 75 | const trimmed = reason.trim(); |
| 76 | if (state === 'indexed') { |
| 77 | return 'indexed: the graph carries this file and no source recorded an issue'; |
| 78 | } |
| 79 | if (state === 'partial') { |
| 80 | return trimmed.length > 0 |
| 81 | ? `partially parsed: constructs inside lines ${trimmed} may be missing from the graph` |
| 82 | : 'partially parsed: constructs inside the flagged ranges may be missing from the graph'; |
| 83 | } |
| 84 | if (state === 'skipped') { |
| 85 | return trimmed.length > 0 |
| 86 | ? `skipped by the indexer: ${trimmed}. Nothing of it is in the graph.` |
| 87 | : 'skipped by the indexer, which named no reason. Nothing of it is in the graph.'; |
| 88 | } |
| 89 | if (state === 'ignored') { |
| 90 | return trimmed.length > 0 |
| 91 | ? `ignored by the coverage store: ${trimmed}` |
| 92 | : 'ignored by the coverage store, which named no reason'; |
| 93 | } |
| 94 | return trimmed.length > 0 |
| 95 | ? `not indexed by design: ${trimmed}. Change the ignore rules and re-index to include it.` |
| 96 | : 'not indexed by design, and the server named no rule. Nothing of it is in the graph.'; |
| 97 | } |
| 98 | |
| 99 | /** Der Tooltip eines Ordners: was seine schlechteste Stufe bedeutet. */ |
| 100 | export function folderTooltip(worst: CoverageState): string { |
no outgoing calls
no test coverage detected