(id: string, filePath: string, content: string)
| 3 | import { CodebaseSearcher } from '../src/core/search.js'; |
| 4 | |
| 5 | function createChunk(id: string, filePath: string, content: string): CodeChunk { |
| 6 | return { |
| 7 | id, |
| 8 | content, |
| 9 | filePath, |
| 10 | relativePath: filePath, |
| 11 | startLine: 1, |
| 12 | endLine: 20, |
| 13 | language: 'typescript', |
| 14 | framework: 'generic', |
| 15 | componentType: 'service', |
| 16 | layer: 'core', |
| 17 | dependencies: [], |
| 18 | imports: [], |
| 19 | exports: [], |
| 20 | tags: [], |
| 21 | metadata: {} |
| 22 | }; |
| 23 | } |
| 24 | |
| 25 | describe('CodebaseSearcher retrieval strategy', () => { |
| 26 | it('enforces candidate floor independently from user limit', async () => { |
no outgoing calls
no test coverage detected