(name: string, filePath?: string, line?: number, matched: string[] = ['user'])
| 20 | import type { RankedHit } from './semantic-search'; |
| 21 | |
| 22 | function ranked(name: string, filePath?: string, line?: number, matched: string[] = ['user']): RankedHit { |
| 23 | return { |
| 24 | hit: { |
| 25 | name, |
| 26 | kind: 'function', |
| 27 | qualifiedName: `atlas.${name}`, |
| 28 | ...(filePath === undefined ? {} : { filePath }), |
| 29 | ...(line === undefined ? {} : { line }), |
| 30 | }, |
| 31 | score: 10, |
| 32 | matched, |
| 33 | fanIn: 0, |
| 34 | }; |
| 35 | } |
| 36 | |
| 37 | describe('searchRows', () => { |
| 38 |