(c: string)
| 4901 | |
| 4902 | it('curated list now also covers Qt / Folly / Abseil / LLVM / V8 / Eigen / rapidjson (full recovery)', () => { |
| 4903 | const info = (c: string) => |
| 4904 | extractFromSource('x.cpp', c).nodes |
| 4905 | .filter((n) => n.kind === 'method' || n.kind === 'function') |
| 4906 | .map((n) => ({ name: n.name, ret: n.returnType })); |
| 4907 | expect(info('FOLLY_ALWAYS_INLINE Str f(int x) { return H(x); }')).toEqual([{ name: 'f', ret: 'Str' }]); |
| 4908 | expect(namesOf('Q_INVOKABLE void onClicked() { H(); }')).toContain('onClicked'); |
| 4909 | expect(namesOf('ABSL_ATTRIBUTE_ALWAYS_INLINE int hash(int x) { return H(x); }')).toContain('hash'); |
no test coverage detected