(path: string)
| 383 | * Zeilen fuer dieselbe Datei an. |
| 384 | */ |
| 385 | export function normalizeCoveragePath(path: string): string { |
| 386 | let value = path.replace(/\\/g, '/').trim(); |
| 387 | while (value.startsWith('./')) { |
| 388 | value = value.slice(2); |
| 389 | } |
| 390 | while (value.startsWith('/')) { |
| 391 | value = value.slice(1); |
| 392 | } |
| 393 | while (value.endsWith('/')) { |
| 394 | value = value.slice(0, -1); |
| 395 | } |
| 396 | return value; |
| 397 | } |
| 398 | |
| 399 | /** Ein Eintrag der `parse_partial`-Liste: Pfad plus die gemeldeten Zeilenbereiche. */ |
| 400 | export interface PartialFileEntry { |
no outgoing calls
no test coverage detected