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

Function indexed

__tests__/cpp-written-scope-class-names.test.ts:34–42  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

32});
33
34async function indexed(files: Record<string, string>): Promise<CodeGraph> {
35 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-cpp-scoped-class-'));
36 roots.push(root);
37 for (const [rel, content] of Object.entries(files)) {
38 fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true });
39 fs.writeFileSync(path.join(root, rel), content);
40 }
41 return CodeGraph.init(root, { index: true });
42}
43
44const lines = (...text: string[]): string => [...text, ''].join('\n');
45

Calls 3

pushMethod · 0.80
joinMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected