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

Function indexed

__tests__/parameter-flow.test.ts:84–91  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

82}
83
84async function indexed(files: Record<string, string>): Promise<{ root: string; cg: CodeGraph }> {
85 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-parameter-flow-'));
86 roots.push(root);
87 write(root, files);
88 const cg = await CodeGraph.init(root, { index: true });
89 open.push(cg);
90 return { root, cg };
91}
92
93afterEach(() => {
94 for (const cg of open.splice(0)) {

Callers 4

wholeProjectReadsFunction · 0.70
convergesFunction · 0.70
syncedFunction · 0.70

Calls 4

pushMethod · 0.80
writeFunction · 0.70
joinMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected