MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / normalizeCoveragePath

Function normalizeCoveragePath

graph-ui/src/app/tree-model.ts:385–397  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

383 * Zeilen fuer dieselbe Datei an.
384 */
385export 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. */
400export interface PartialFileEntry {

Callers 5

tree-model.test.tsFile · 0.90
readIndexStatusCoverageFunction · 0.85
readCoverageRowsFunction · 0.85
readCoverageAnswerFunction · 0.85
putRecordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected