(name: string)
| 1255 | export const exported = { handler: () => target() }; |
| 1256 | `; |
| 1257 | const callersOf = (name: string) => { |
| 1258 | const result = extractFromSource('app.ts', code); |
| 1259 | const byId = new Map(result.nodes.map((n) => [n.id, n])); |
| 1260 | return result.unresolvedReferences |
| 1261 | .filter((u) => u.referenceKind === 'calls' && u.referenceName === name) |
| 1262 | .map((u) => byId.get(u.fromNodeId)) |
| 1263 | .map((n) => (n ? `${n.kind}:${n.qualifiedName}` : '?')) |
| 1264 | .sort(); |
| 1265 | }; |
| 1266 | |
| 1267 | it("a plain call initializer names the CONSTANT as caller, not the file", () => { |
| 1268 | // The walk ran with only the file on the stack, so `load` recorded the |
no test coverage detected