(name: string)
| 62 | const cg = await CodeGraph.init(root, { index: true }); |
| 63 | try { |
| 64 | const callsFrom = (name: string): string[] => { |
| 65 | const from = cg.getNodesByName(name).find((n) => n.kind === 'method')!; |
| 66 | return cg.getOutgoingEdgesFrom([from.id], ['calls']).map((e) => cg.getNode(e.target)!.name).sort(); |
| 67 | }; |
| 68 | expect(callsFrom('sends')).not.toContain('verify'); |
| 69 | expect(callsFrom('run')).toEqual(['format', 'helper', 'own']); |
| 70 | } finally { |
no test coverage detected