(file: string, name: string)
| 116 | }); |
| 117 | |
| 118 | const calls = (file: string, name: string): string[] => { |
| 119 | const fn = cg.getNodesInFile(file).find((n) => n.name === name && n.kind === 'function'); |
| 120 | expect(fn, `${file}:${name}`).toBeDefined(); |
| 121 | return cg.getOutgoingEdgesFrom([fn!.id]).filter((e) => e.kind === 'calls') |
| 122 | .map((e) => cg.getNode(e.target)!).map((t) => `${t.qualifiedName} ${t.filePath}:${t.startLine}`).sort(); |
| 123 | }; |
| 124 | |
| 125 | describe('Rust modules a #[path] attribute loads', () => { |
| 126 | it('see the declaring module\'s private items through `use super::*`', () => { |
no test coverage detected