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

Function lineFor

__tests__/explore-blast-radius.test.ts:226–230  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

224 });
225
226 const lineFor = async (name: string): Promise<string> => {
227 const res = await new ToolHandler(cg).execute('codegraph_explore', { query: name });
228 const text = res.content[0]!.text as string;
229 return text.split('\n').find((l) => l.startsWith(`- \`${name}\``)) ?? '';
230 };
231
232 it('counts a tests.rs file a #[cfg(test)] mod declares as a test', async () => {
233 const line = await lineFor('create_note');

Callers 1

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected