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

Function pairs

__tests__/file-cycles.test.ts:12–16  ·  view source on GitHub ↗
(...edges: string[])

Source from the content-addressed store, hash-verified

10import { findFileCycles } from '../src/graph/file-cycles';
11
12const pairs = (...edges: string[]) =>
13 edges.map((edge) => {
14 const [source, target] = edge.split('>') as [string, string];
15 return { source, target };
16 });
17
18describe('findFileCycles', () => {
19 it('finds nothing in a graph with no loop, a diamond included', () => {

Callers 1

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected