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

Function freshEdges

__tests__/python-module-resolution.test.ts:1105–1116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1103 }
1104
1105 async function freshEdges(): Promise<string[]> {
1106 const copy = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-pymod-fresh-'));
1107 try {
1108 fs.cpSync(tempDir, copy, { recursive: true, filter: (src) => !src.includes('.codegraph') });
1109 const fresh = await CodeGraph.init(copy, { index: true });
1110 const edges = pythonEdges(fresh);
1111 fresh.destroy();
1112 return edges;
1113 } finally {
1114 fs.rmSync(copy, { recursive: true, force: true });
1115 }
1116 }
1117
1118 it('re-resolves unchanged importers when an __init__.py changes where a package starts', async () => {
1119 write({

Callers 2

editAndCompareFunction · 0.85

Calls 4

pythonEdgesFunction · 0.85
joinMethod · 0.45
initMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected