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

Function nodes

__tests__/commonjs-exports.test.ts:161–161  ·  view source on GitHub ↗
(r: ExtractionResult)

Source from the content-addressed store, hash-verified

159 const kernel = extract('kernel', file, code, language);
160 const wasm = extract('wasm', file, code, language);
161 const nodes = (r: ExtractionResult) => r.nodes.map((n) => `${n.kind} ${n.qualifiedName} ${n.startLine}-${n.endLine} ${n.isExported}`).sort();
162 const refs = (r: ExtractionResult) => r.unresolvedReferences.map((x) => `${x.referenceKind} ${x.referenceName} ${x.line}:${x.column} ${x.fromNodeId}`).sort();
163 expect(nodes(kernel), file).toEqual(nodes(wasm));
164 expect(refs(kernel), file).toEqual(refs(wasm));

Callers 1

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected