(covering: number, missing: number)
| 117 | } |
| 118 | |
| 119 | export function impactTestsSentence(covering: number, missing: number): string { |
| 120 | if (covering === 0 && missing === 0) { |
| 121 | return 'No affected symbol could be checked for test callers.'; |
| 122 | } |
| 123 | if (missing === 0) { |
| 124 | return 'Every affected symbol that was checked has a test caller ' |
| 125 | + `(${countOf(covering, 'test caller', 'test callers')} in total), so a change here would be noticed.`; |
| 126 | } |
| 127 | return `No test caller was found for ${countOf(missing, 'affected symbol', 'affected symbols')}, ` |
| 128 | + `so a change to ${missing === 1 ? 'it' : 'them'} would go unnoticed by any automatic check.`; |
| 129 | } |
| 130 | |
| 131 | /** |
| 132 | * Said whenever a level was decided partly on absence. |
no test coverage detected