MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / ranked

Function ranked

graph-ui/src/search/overlay-model.test.ts:22–35  ·  view source on GitHub ↗
(name: string, filePath?: string, line?: number, matched: string[] = ['user'])

Source from the content-addressed store, hash-verified

20import type { RankedHit } from './semantic-search';
21
22function 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
37describe('searchRows', () => {
38

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected