The qualified names `calls` edges from ` ::go` reach.
(pkg: string, cls: string)
| 81 | |
| 82 | /** The qualified names `calls` edges from `<cls>::go` reach. */ |
| 83 | function calls(pkg: string, cls: string): string[] { |
| 84 | const db = (cg as unknown as { db: { getDb(): { prepare(sql: string): { all(...a: unknown[]): Array<{ q: string }> } } } }).db; |
| 85 | return db.getDb().prepare(` |
| 86 | SELECT t.qualified_name q FROM edges e |
| 87 | JOIN nodes s ON s.id = e.source JOIN nodes t ON t.id = e.target |
| 88 | WHERE e.kind = 'calls' AND s.qualified_name = ?`).all(`${pkg}::${cls}::go`).map((r) => r.q).sort(); |
| 89 | } |
| 90 | |
| 91 | describe('a Java call reaches the class its file can see', () => { |
| 92 | it('#2976: a static call and a chained new under a wildcard import', () => { |
no test coverage detected