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

Function relation

__tests__/ui-symbol-model.test.ts:49–63  ·  view source on GitHub ↗
(over: Partial<WireRelation> & { node?: any } = {})

Source from the content-addressed store, hash-verified

47}
48
49function relation(over: Partial<WireRelation> & { node?: any } = {}): WireRelation {
50 const { node, ...rest } = over;
51 const lines = rest.lines ?? [12];
52 return {
53 edgeKinds: ['calls'],
54 edges: lines.map((line) => ({ kind: 'calls' as const, line, col: 4 })),
55 edgeCount: lines.length,
56 lines,
57 confidence: 0.9,
58 uncertain: false,
59 synthesized: false,
60 ...rest,
61 node: nodeRef(node),
62 } as WireRelation;
63}
64
65function payload(over: Partial<WireSymbolPayload> = {}): WireSymbolPayload {
66 return {

Callers 2

callerFunction · 0.70

Calls 2

mapMethod · 0.80
nodeRefFunction · 0.70

Tested by

no test coverage detected