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

Function named

__tests__/kernel-ccpp-parity.test.ts:152–152  ·  view source on GitHub ↗
(kind: string)

Source from the content-addressed store, hash-verified

150 assertParity('scoped-classes.h', source, 'cpp', 10);
151 const result = tryKernelExtract('scoped-classes.h', source, 'cpp')!;
152 const named = (kind: string) => result.nodes.filter((n) => n.kind === kind).map((n) => n.qualifiedName).sort();
153 // A name written from the global scope alone has no scope to be qualified under.
154 expect(result.nodes.map((n) => n.qualifiedName).filter((q) => q.startsWith('::') || q.includes('::::'))).toEqual([]);
155 expect(named('struct')).toEqual(expect.arrayContaining(['leveldb::SkipList::Node', 'leveldb::SkipList::Node::Link', 'leveldb::Table::Rep', 'leveldb::Table::Rep2']));

Callers 1

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected