(filePath: string, score: number)
| 3 | import { assessSearchQuality } from '../src/core/search-quality.js'; |
| 4 | |
| 5 | function makeResult(filePath: string, score: number): SearchResult { |
| 6 | return { |
| 7 | summary: 'summary', |
| 8 | snippet: 'snippet', |
| 9 | filePath, |
| 10 | startLine: 1, |
| 11 | endLine: 10, |
| 12 | score, |
| 13 | relevanceReason: 'match', |
| 14 | language: 'typescript', |
| 15 | framework: 'generic', |
| 16 | componentType: 'service', |
| 17 | layer: 'core', |
| 18 | metadata: {} |
| 19 | }; |
| 20 | } |
| 21 | |
| 22 | describe('assessSearchQuality', () => { |
| 23 | it('returns low confidence when no results are returned', () => { |
no outgoing calls
no test coverage detected