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

Function spread

__tests__/ui-map-api.test.ts:373–379  ·  view source on GitHub ↗

`n` files under `dir`, each carrying `each` symbols.

(dir: string, n: number, each: number, test = false)

Source from the content-addressed store, hash-verified

371describe('pickDefaultDepth', () => {
372 /** `n` files under `dir`, each carrying `each` symbols. */
373 function spread(dir: string, n: number, each: number, test = false) {
374 return Array.from({ length: n }, (_, i) => ({
375 path: `${dir}/f${i}.ts`,
376 symbols: each,
377 test,
378 }));
379 }
380
381 it('goes deeper when one box holds the program', () => {
382 // The shape this rule exists for: a React-Native-ish repo whose whole app

Callers 1

ui-map-api.test.tsFile · 0.70

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected