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

Function project

__tests__/python-declared-import-roots.test.ts:156–163  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

154 }
155
156 async function project(files: Record<string, string>): Promise<CodeGraph> {
157 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-python-declared-roots-'));
158 roots.push(root);
159 write(root, files);
160 const cg = await CodeGraph.init(root, { index: true });
161 open.push(cg);
162 return cg;
163 }
164
165 beforeAll(async () => {
166 kernel = process.env.CODEGRAPH_KERNEL;

Calls 4

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

Tested by

no test coverage detected