MCPcopy
hub / github.com/colbymchenry/codegraph / indexCpp

Function indexCpp

__tests__/resolution.test.ts:2684–2689  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

2682
2683 describe('C++ chained-call receiver resolution (#645)', () => {
2684 async function indexCpp(files: Record<string, string>): Promise<void> {
2685 for (const [name, content] of Object.entries(files)) {
2686 fs.writeFileSync(path.join(tempDir, name), content);
2687 }
2688 cg = await CodeGraph.init(tempDir, { index: true });
2689 }
2690
2691 function callerNamesOf(qualifiedName: string): string[] {
2692 const target = cg.getNodesByKind('method').find((n) => n.qualifiedName === qualifiedName);

Callers 1

resolution.test.tsFile · 0.85

Calls 2

joinMethod · 0.80
initMethod · 0.80

Tested by

no test coverage detected