(fn: string)
| 80 | }); |
| 81 | |
| 82 | const formatFileCalledBy = (fn: string): string[] => { |
| 83 | const node = cg.getNodesInFile('test/use.cc').find((n) => n.name === fn)!; |
| 84 | return cg.getOutgoingEdges(node.id).filter((e) => e.kind === 'calls').map((e) => cg.getNode(e.target)!) |
| 85 | .filter((t) => t.name === 'format').map((t) => t.filePath); |
| 86 | }; |
| 87 | |
| 88 | describe('C++ overloads in a macro-opened namespace', () => { |
| 89 | it('a narrow literal picks the format_string overload', () => { |
no test coverage detected