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

Function lines

__tests__/node-id-kind.test.ts:71–71  ·  view source on GitHub ↗
(count: number, unit: (i: number) => string)

Source from the content-addressed store, hash-verified

69 it('a walk out of a declaration wider than the bound returns what reading every edge returned', async () => {
70 const members = 700;
71 const lines = (count: number, unit: (i: number) => string) => Array.from({ length: count }, (_, i) => unit(i)).join('\n');
72 const files: Record<string, string> = {
73 // Documented fields: a kind the walk below is not asked for.
74 'settings.ts': `export const SETTINGS = {\n${lines(members, (i) => ` /** Setting ${i}. */\n setting${i}: ${i},`)}\n};\nexport function readSettings() { return SETTINGS; }\n`,

Callers 1

Calls 3

fromMethod · 0.80
unitFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected