MCPcopy
hub / github.com/colbymchenry/codegraph / info

Function info

__tests__/extraction.test.ts:3040–3043  ·  view source on GitHub ↗
(c: string)

Source from the content-addressed store, hash-verified

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');

Callers 1

extraction.test.tsFile · 0.70

Calls 1

extractFromSourceFunction · 0.90

Tested by

no test coverage detected