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

Function firstLine

scripts/regression/gate.mjs:272–278  ·  view source on GitHub ↗
(file, line)

Source from the content-addressed store, hash-verified

270async function answersTo(dir, questions) {
271 const cg = CodeGraph.openSync(dir);
272 const firstLine = (file, line) => {
273 try {
274 return (readFileSync(join(dir, file), 'utf8').split('\n')[line - 1] ?? '').trim();
275 } catch {
276 return '';
277 }
278 };
279 const answers = {};
280 try {
281 for (const [kind, question] of Object.entries(questions)) {

Callers 1

answersToFunction · 0.70

Calls 1

joinFunction · 0.50

Tested by

no test coverage detected