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

Function indexState

__tests__/cli-sync-stale-index.test.ts:37–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37function indexState() {
38 const cg = CodeGraph.openSync(root);
39 try {
40 return { stale: cg.isIndexStale(), files: cg.getStats().fileCount };
41 } finally { cg.close(); }
42}
43
44beforeEach(async () => {
45 root = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-sync-stale-'));

Callers 1

Calls 4

isIndexStaleMethod · 0.80
closeMethod · 0.65
openSyncMethod · 0.45
getStatsMethod · 0.45

Tested by

no test coverage detected