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

Function index

__tests__/python-self-attribute-call.test.ts:22–29  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

20let cg: CodeGraph | null = null;
21
22async function index(files: Record<string, string>): Promise<void> {
23 tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-2958-'));
24 for (const [rel, source] of Object.entries(files)) {
25 fs.mkdirSync(path.dirname(path.join(tempDir, rel)), { recursive: true });
26 fs.writeFileSync(path.join(tempDir, rel), source);
27 }
28 cg = await CodeGraph.init(tempDir, { index: true });
29}
30
31afterEach(() => {
32 cg?.close();

Calls 2

joinMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected