(g: CodeGraph, file: string)
| 6521 | |
| 6522 | describe('Name-only method match never binds a delegating call to its own caller', () => { |
| 6523 | const selfLoops = (g: CodeGraph, file: string): string[] => |
| 6524 | g.getNodesInFile(file) |
| 6525 | .filter((n) => n.kind === 'method' || n.kind === 'function') |
| 6526 | .flatMap((n) => g.getOutgoingEdges(n.id) |
| 6527 | .filter((e) => e.kind === 'calls' && e.target === n.id) |
| 6528 | .map(() => n.name)); |
| 6529 | |
| 6530 | it('drops the self-loop for a Scala delegating wrapper', async () => { |
| 6531 | fs.writeFileSync(path.join(tempDir, 'Form.scala'), ` |
no test coverage detected