(files: number, symbols: number)
| 74 | // Die Erzaehlung, ein Satz je Lesung ----------------------------------------- |
| 75 | |
| 76 | export function impactChangedSentence(files: number, symbols: number): string { |
| 77 | if (files === 0) { |
| 78 | return 'Nothing in the working tree differs from the baseline.'; |
| 79 | } |
| 80 | const where = files === 1 ? 'it' : 'them'; |
| 81 | if (symbols === 0) { |
| 82 | return `${countOf(files, 'file differs', 'files differ')} from the baseline, ` |
| 83 | + `and the index holds no symbol in ${where}.`; |
| 84 | } |
| 85 | return `${countOf(files, 'file differs', 'files differ')} from the baseline, ` |
| 86 | + `and the index places ${countOf(symbols, 'symbol', 'symbols')} inside ${where}.`; |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Wie viele Deklarationen die Analyse wirklich angefasst hat. |
no test coverage detected