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

Function info

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

Source from the content-addressed store, hash-verified

4904
4905 it('curated list now also covers Qt / Folly / Abseil / LLVM / V8 / Eigen / rapidjson (full recovery)', () => {
4906 const info = (c: string) =>
4907 extractFromSource('x.cpp', c).nodes
4908 .filter((n) => n.kind === 'method' || n.kind === 'function')
4909 .map((n) => ({ name: n.name, ret: n.returnType }));
4910 expect(info('FOLLY_ALWAYS_INLINE Str f(int x) { return H(x); }')).toEqual([{ name: 'f', ret: 'Str' }]);
4911 expect(namesOf('Q_INVOKABLE void onClicked() { H(); }')).toContain('onClicked');
4912 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