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

Function mod

__tests__/ui-export-svg.test.ts:132–144  ·  view source on GitHub ↗
(id: string, over: Partial<WireMapModule> = {})

Source from the content-addressed store, hash-verified

130}
131
132function mod(id: string, over: Partial<WireMapModule> = {}): WireMapModule {
133 return {
134 id,
135 label: id.slice(id.lastIndexOf('/') + 1) || id,
136 files: over.files ?? 3,
137 symbols: over.symbols ?? 30,
138 languages: over.languages ?? [{ language: 'typescript', files: 3 }],
139 test: over.test ?? false,
140 facade: over.facade ?? false,
141 fileList: over.fileList ?? { total: 3, shown: 3, truncated: false, items: [] },
142 dependents: over.dependents ?? { files: 0, modules: 0 },
143 };
144}
145
146function link(source: string, target: string, count: number, declared = count): WireMapLink {
147 return { source, target, count, declared, byKind: [{ kind: 'calls', count }], topPairs: [] };

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected