(text: string)
| 197 | it('C++: a sync that adds such calls to an indexed project finishes, and links them', async () => { |
| 198 | // Indexed first without a single call of `operator++` by its name. |
| 199 | const strip = (text: string): string => text |
| 200 | .replace(' this->operator++();\n', ' ++value;\n') |
| 201 | .replace(' c.operator++();\n', '') |
| 202 | .replace(' c.operator++(0);\n', ''); |
| 203 | const root = project({ 'src/counter.hpp': strip(COUNTER_HPP), 'src/counter.cpp': strip(COUNTER_CPP) }); |
| 204 | const cg = await index(root); |
| 205 | expect(callsFrom(cg, 'src/counter.hpp', lineOf(COUNTER_HPP, 'Counter operator++(int)'))).toEqual([]); |
no outgoing calls
no test coverage detected