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

Function indexCpp

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

Source from the content-addressed store, hash-verified

4431
4432 describe('C++ chained-call receiver resolution (#645)', () => {
4433 async function indexCpp(files: Record<string, string>): Promise<void> {
4434 for (const [name, content] of Object.entries(files)) {
4435 fs.writeFileSync(path.join(tempDir, name), content);
4436 }
4437 cg = await CodeGraph.init(tempDir, { index: true });
4438 }
4439
4440 function callerNamesOf(qualifiedName: string): string[] {
4441 const target = cg.getNodesByKind('method').find((n) => n.qualifiedName === qualifiedName);

Callers 1

resolution.test.tsFile · 0.85

Calls 2

joinMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected