(name: string)
| 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'); |
no test coverage detected