MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / makeResult

Function makeResult

tests/reranker-recovery.test.ts:24–35  ·  view source on GitHub ↗
(score: number, filePath: string)

Source from the content-addressed store, hash-verified

22}));
23
24function makeResult(score: number, filePath: string): SearchResult {
25 return {
26 summary: `Result from ${filePath}`,
27 snippet: 'export class Foo {}',
28 filePath,
29 startLine: 1,
30 endLine: 10,
31 score,
32 language: 'typescript',
33 metadata: {}
34 } as SearchResult;
35}
36
37describe('reranker corruption recovery', () => {
38 let tempCacheRoot: string | null = null;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected