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

Function payload

__tests__/ui-symbol-model.test.ts:65–80  ·  view source on GitHub ↗
(over: Partial<WireSymbolPayload> = {})

Source from the content-addressed store, hash-verified

63}
64
65function payload(over: Partial<WireSymbolPayload> = {}): WireSymbolPayload {
66 return {
67 node: { ...nodeRef(), startColumn: 2, endColumn: 3, lines: 11 },
68 ancestors: [],
69 members: { total: 0, shown: 0, truncated: false, items: [] },
70 incoming: { total: 0, shown: 0, truncated: false, items: [] },
71 outgoing: { total: 0, shown: 0, truncated: false, items: [] },
72 typesUsed: [],
73 counts: { callers: 0, callees: 0, typesUsed: 0, fanIn: 0, fanOut: 0, members: 0, hub: false },
74 tests: { reached: false, hops: null, fileCount: 0, files: [], exhaustive: true, hopsSearched: 3 },
75 outsideIndex: { total: 0, byKind: {}, samples: [] },
76 blast: null,
77 drift: false,
78 ...over,
79 } as WireSymbolPayload;
80}
81
82const body = (count: number, from = 1): string[] =>
83 Array.from({ length: count }, (_, i) => `line ${from + i}`);

Callers 1

Calls 1

nodeRefFunction · 0.70

Tested by

no test coverage detected