What the calls at `line` of the function or method `qualifiedName` reach, as `target:its first line @confidence`.
(cg: CodeGraph, qualifiedName: string, line: number)
| 33 | |
| 34 | /** What the calls at `line` of the function or method `qualifiedName` reach, as `target:its first line @confidence`. */ |
| 35 | function callsAt(cg: CodeGraph, qualifiedName: string, line: number): string[] { |
| 36 | const from = [...cg.getNodesByKind('method'), ...cg.getNodesByKind('function')].find((n) => n.qualifiedName === qualifiedName)!; |
| 37 | return cg.getOutgoingEdgesFrom([from.id], ['calls']) |
| 38 | .filter((e) => e.line === line) |
| 39 | .map((e) => { |
| 40 | const t = cg.getNode(e.target)!; |
| 41 | return `${t.qualifiedName}:${t.startLine} @${(e.metadata as { confidence?: number } | undefined)?.confidence}`; |
| 42 | }) |
| 43 | .sort(); |
| 44 | } |
| 45 | |
| 46 | describe('C++ overloads for nullptr, and deleted ones', () => { |
| 47 | it("takes protobuf's reset(std::nullptr_t) for reset(nullptr), not the deleted reset(T*)", async () => { |
no test coverage detected