(name: string)
| 56 | }); |
| 57 | |
| 58 | const routeCalls = (name: string) => { |
| 59 | const route = cg.getNodesByKind('route').find((r) => r.name.endsWith(name)); |
| 60 | if (!route) return []; |
| 61 | return cg.getOutgoingEdges(route.id).filter((e) => e.kind === 'calls').map((e) => { |
| 62 | const t = cg.getNode(e.target)!; |
| 63 | return `${t.filePath}: ${t.qualifiedName}`; |
| 64 | }).sort(); |
| 65 | }; |
| 66 | |
| 67 | describe('inline route handler calls', () => { |
| 68 | it('are not a same-named method of an unrelated type', () => { |
no test coverage detected