(query: string, fileCount?: number)
| 300 | }); |
| 301 | |
| 302 | const explore = async (query: string, fileCount?: number): Promise<string> => { |
| 303 | const spy = fileCount === undefined |
| 304 | ? null |
| 305 | : vi.spyOn(cg, 'getStats').mockReturnValue({ fileCount, nodeCount: 50 } as ReturnType<CodeGraph['getStats']>); |
| 306 | try { |
| 307 | const result = await handler.execute('codegraph_explore', { query }); |
| 308 | return result.content?.[0]?.text ?? ''; |
| 309 | } finally { |
| 310 | spy?.mockRestore(); |
| 311 | } |
| 312 | }; |
| 313 | |
| 314 | it('large tier: a windowed spine method is reported trimmed, not complete', async () => { |
| 315 | const text = await explore('runPipeline stepNext finalizeStep', 1000); |
no test coverage detected