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

Function fileRow

ui/src/lib/entry-model.ts:149–162  ·  view source on GitHub ↗
(file: WireEntryFile)

Source from the content-addressed store, hash-verified

147}
148
149export function fileRow(file: WireEntryFile): EntryRow {
150 return {
151 id: `file:${file.file}`,
152 name: basename(file.file),
153 method: null,
154 kind: 'file',
155 meta: `${plural(file.calls, 'call')} at module level · reaches ${plural(file.reaches, 'file')}${
156 file.dependents === 0 ? ' · nothing imports it' : ''
157 }`,
158 target: { type: 'file', path: file.file },
159 flowFrom: null,
160 title: file.file,
161 };
162}
163
164export function testRow(test: WireEntryTest): EntryRow {
165 return {

Callers 1

buildEntryPanelFunction · 0.85

Calls 2

basenameFunction · 0.90
pluralFunction · 0.90

Tested by

no test coverage detected