MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / info

Function info

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

Source from the content-addressed store, hash-verified

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

Callers 1

extraction.test.tsFile · 0.70

Calls 2

extractFromSourceFunction · 0.90
mapMethod · 0.80

Tested by

no test coverage detected