`calls` callees of a function or method, as `qualifiedName @confidence`, one per call site.
(cg: CodeGraph, caller: string)
| 47 | |
| 48 | /** `calls` callees of a function or method, as `qualifiedName @confidence`, one per call site. */ |
| 49 | function calls(cg: CodeGraph, caller: string): string[] { |
| 50 | return cg |
| 51 | .getCallees(callable(cg, caller).id) |
| 52 | .filter((r) => r.edge.kind === 'calls') |
| 53 | .map((r) => `${r.node.qualifiedName} @${(r.edge.metadata as { confidence?: number } | undefined)?.confidence}`) |
| 54 | .sort(); |
| 55 | } |
| 56 | |
| 57 | /** protocolbuffers/protobuf's conformance runner, trimmed; `FlagParser` is a decoy `SetVerbose`. */ |
| 58 | const CONFORMANCE = { |
no test coverage detected