MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / makeResult

Function makeResult

tests/reranker.test.ts:5–16  ·  view source on GitHub ↗
(score: number, filePath: string)

Source from the content-addressed store, hash-verified

3import type { SearchResult } from '../src/types/index.js';
4
5function makeResult(score: number, filePath: string): SearchResult {
6 return {
7 summary: `Result from ${filePath}`,
8 snippet: 'export class Foo {}',
9 filePath,
10 startLine: 1,
11 endLine: 10,
12 score,
13 language: 'typescript',
14 metadata: {}
15 } as SearchResult;
16}
17
18describe('Reranker ambiguity detection', () => {
19 it('detects ambiguous results when top scores are clustered', () => {

Callers 1

reranker.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected