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

Function indexed

__tests__/cpp-nullptr-deleted-overloads.test.ts:22–30  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

20});
21
22async function indexed(files: Record<string, string>): Promise<CodeGraph> {
23 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-cpp-nullptr-'));
24 roots.push(root);
25 for (const [rel, content] of Object.entries(files)) {
26 fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true });
27 fs.writeFileSync(path.join(root, rel), content);
28 }
29 return CodeGraph.init(root, { index: true });
30}
31
32const lines = (...text: string[]): string => [...text, ''].join('\n');
33

Calls 3

pushMethod · 0.80
joinMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected