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

Function entriesIn

__tests__/explore-completeness-note.test.ts:203–203  ·  view source on GitHub ↗
(block: readonly string[])

Source from the content-addressed store, hash-verified

201 const fit = (room: number, noteCandidates: string[][], noteYields: boolean) =>
202 fitExploreEpilogue({ room, noteCandidates, noteYields, pointerEntries: entries, pointerOmitted: 20 });
203 const entriesIn = (block: readonly string[]) => block.filter((l) => l.startsWith('- src/')).length;
204 /** Room for exactly `k` pointer entries (header, entries and tail) beside `withNote`. */
205 const roomFor = (k: number, withNote: readonly string[] = []) => {
206 const full = fit(1e6, [], false).pointers;

Calls

no outgoing calls

Tested by

no test coverage detected