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

Function formatFileCalledBy

__tests__/cpp-overload-choice.test.ts:82–86  ·  view source on GitHub ↗
(fn: string)

Source from the content-addressed store, hash-verified

80});
81
82const formatFileCalledBy = (fn: string): string[] => {
83 const node = cg.getNodesInFile('test/use.cc').find((n) => n.name === fn)!;
84 return cg.getOutgoingEdges(node.id).filter((e) => e.kind === 'calls').map((e) => cg.getNode(e.target)!)
85 .filter((t) => t.name === 'format').map((t) => t.filePath);
86};
87
88describe('C++ overloads in a macro-opened namespace', () => {
89 it('a narrow literal picks the format_string overload', () => {

Callers 1

Calls 4

mapMethod · 0.80
getNodeMethod · 0.80
getNodesInFileMethod · 0.65
getOutgoingEdgesMethod · 0.45

Tested by

no test coverage detected