(from: string, inFile: string)
| 114 | }; |
| 115 | |
| 116 | const calls = (from: string, inFile: string): string[] => { |
| 117 | const node = cg.getNodesInFile(inFile).find((n) => n.name === from && n.kind === 'method'); |
| 118 | if (!node) throw new Error(`no ${from} in ${inFile}`); |
| 119 | return cg.getCallees(node.id).map((c) => `${c.node.qualifiedName} @${c.node.filePath}`).sort(); |
| 120 | }; |
| 121 | |
| 122 | const routeTarget = (name: string): string | undefined => { |
| 123 | const route = cg.getNodesByKind('route').find((n) => n.name === name); |
no test coverage detected