(c: string)
| 3038 | |
| 3039 | it('curated list now also covers Qt / Folly / Abseil / LLVM / V8 / Eigen / rapidjson (full recovery)', () => { |
| 3040 | const info = (c: string) => |
| 3041 | extractFromSource('x.cpp', c).nodes |
| 3042 | .filter((n) => n.kind === 'method' || n.kind === 'function') |
| 3043 | .map((n) => ({ name: n.name, ret: n.returnType })); |
| 3044 | expect(info('FOLLY_ALWAYS_INLINE Str f(int x) { return H(x); }')).toEqual([{ name: 'f', ret: 'Str' }]); |
| 3045 | expect(namesOf('Q_INVOKABLE void onClicked() { H(); }')).toContain('onClicked'); |
| 3046 | expect(namesOf('ABSL_ATTRIBUTE_ALWAYS_INLINE int hash(int x) { return H(x); }')).toContain('hash'); |
no test coverage detected