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

Function named

scripts/regression/gate.mjs:259–259  ·  view source on GitHub ↗
(count)

Source from the content-addressed store, hash-verified

257 if (!chosen.some((each) => each.name === row.name)) chosen.push(row);
258 }
259 const named = (count) => chosen.slice(0, count).map((row) => [row.name, row.file, row.line]);
260 const key = (kind) => (sets > 1 ? `${kind}#${set}` : kind);
261 const names = chosen.map((row) => row.name);
262 if (names.length >= 2) questions[key('two')] = { query: `${names[0]} ${names[1]}`, names: named(2) };

Callers 1

chooseQuestionsFunction · 0.70

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected