MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / describeDiff

Function describeDiff

__tests__/sync-rebuild-convergence.test.ts:102–106  ·  view source on GitHub ↗
(synced: Set<string>, rebuilt: Set<string>)

Source from the content-addressed store, hash-verified

100
101 /** Human-readable diff, so a failure names the edges instead of just a count. */
102 const describeDiff = (synced: Set<string>, rebuilt: Set<string>): string => {
103 const missing = [...rebuilt].filter((e) => !synced.has(e));
104 const stale = [...synced].filter((e) => !rebuilt.has(e));
105 return `missing from synced: ${missing.length}, stale in synced: ${stale.length}`;
106 };
107
108 /**
109 * Rebuild the index from scratch over the CURRENT tree and return its edge

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected