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

Function canon

__tests__/cpp-brace-scopes.test.ts:365–369  ·  view source on GitHub ↗
(result: ExtractionResult)

Source from the content-addressed store, hash-verified

363 });
364
365 const canon = (result: ExtractionResult) => ({
366 nodes: result.nodes.map(({ updatedAt: _u, ...n }) => JSON.stringify(n, Object.keys(n).sort())).sort(),
367 edges: result.edges.map((e) => JSON.stringify(e, Object.keys(e).sort())).sort(),
368 refs: result.unresolvedReferences.map((r) => JSON.stringify(r, Object.keys(r).sort())).sort(),
369 });
370
371 it.each(Object.keys(SHAPES))('%s: the kernel walks the same scopes as the wasm walker', (file) => {
372 for (const eol of ['\n', '\r\n']) {

Callers 1

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected