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

Function aggregateCoverage

graph-ui/src/app/tree-model.ts:882–891  ·  view source on GitHub ↗
(index: CoverageIndex, dirPath: string)

Source from the content-addressed store, hash-verified

880 * Ebenen kommen einzeln und spaet, die Befunde kommen vollstaendig und frueh.
881 */
882export function aggregateCoverage(index: CoverageIndex, dirPath: string): CoverageState {
883 const prefix = `${dirPath}/`;
884 let worst: CoverageState = 'indexed';
885 for (const record of index.records.values()) {
886 if (record.path === dirPath || record.path.startsWith(prefix)) {
887 worst = worstCoverage(worst, record.state);
888 }
889 }
890 return worst;
891}
892
893function ensureLevel(levels: Map<string, TreeLevel>, path: string): TreeLevel {
894 const existing = levels.get(path);

Callers 2

tree-model.test.tsFile · 0.90
mergeCoverageIntoLevelsFunction · 0.85

Calls 1

worstCoverageFunction · 0.85

Tested by

no test coverage detected