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

Function callsFrom

__tests__/cpp-included-test-suite.test.ts:221–227  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

219
220/** `qualifiedName (file)` of every call the file's symbols make. */
221const callsFrom = (file: string): string[] => {
222 const ids = cg.getNodesInFile(file).map((n) => n.id);
223 return cg.getOutgoingEdgesFrom(ids).filter((e) => e.kind === 'calls').map((e) => {
224 const target = cg.getNode(e.target)!;
225 return `${target.qualifiedName} (${target.filePath})`;
226 });
227};
228
229describe('a C/C++ file named like a test that the program includes', () => {
230 it('links a call through the base class its suite derives from', () => {

Callers 1

Calls 4

mapMethod · 0.80
getNodeMethod · 0.80
getNodesInFileMethod · 0.65
getOutgoingEdgesFromMethod · 0.45

Tested by

no test coverage detected