(fnName: string, filePath: string)
| 49 | }); |
| 50 | |
| 51 | async function callsFrom(fnName: string, filePath: string) { |
| 52 | const caller = cg!.getNodesByKind('function').find((n) => n.name === fnName && n.filePath === filePath); |
| 53 | expect(caller).toBeDefined(); |
| 54 | return cg!.getOutgoingEdges(caller!.id).filter((e) => e.kind === 'calls'); |
| 55 | } |
| 56 | |
| 57 | function fn(name: string, filePath: string) { |
| 58 | const node = cg!.getNodesByKind('function').find((n) => n.name === name && n.filePath === filePath); |
no test coverage detected