The `instantiates` edges of every function named `name`, by its first line, as `startLine -> qualifiedName @confidence`.
(cg: CodeGraph, name: string)
| 34 | |
| 35 | /** The `instantiates` edges of every function named `name`, by its first line, as `startLine -> qualifiedName @confidence`. */ |
| 36 | function made(cg: CodeGraph, name: string): string[] { |
| 37 | return cg.getNodesByKind('function').filter((n: Node) => n.name === name).sort((a, b) => a.startLine - b.startLine) |
| 38 | .flatMap((fn) => cg.getOutgoingEdgesFrom([fn.id], ['instantiates']) |
| 39 | .map((e) => `${fn.startLine} -> ${cg.getNode(e.target)?.qualifiedName} @${(e.metadata as { confidence?: number } | undefined)?.confidence}`)); |
| 40 | } |
| 41 | |
| 42 | describe('C++ names in a gtest TEST_F or TEST_P body', () => { |
| 43 | it("find the fixture's nested types, its bases' included", async () => { |
no test coverage detected