* One honest sentence about whether anything tests this, in plain words. * * Never "not tested". The engine records no test relation for TypeScript, so * this is a search through callers that found none, and the sentence says which * of the two it is.
(ir: SemanticIR)
| 1250 | * of the two it is. |
| 1251 | */ |
| 1252 | function testsNote(ir: SemanticIR): string { |
| 1253 | if (ir.tests.value.length > 0) { |
| 1254 | return proseTestsSome(ir.tests.value.length); |
| 1255 | } |
| 1256 | const absence = plainAbsence(ir.tests.state, PLAIN_SUBJECT_TESTS); |
| 1257 | return ir.tests.state === 'known' || ir.tests.state === 'inferred' |
| 1258 | ? PROSE_TESTS_NONE |
| 1259 | : absence; |
| 1260 | } |
| 1261 | |
| 1262 | /** The same, for failure: an empty list is only a finding once someone looked. */ |
| 1263 | function errorsNote(ir: SemanticIR): string { |
no test coverage detected