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

Function createChunk

tests/search-retrieval-strategy.test.ts:5–23  ·  view source on GitHub ↗
(id: string, filePath: string, content: string)

Source from the content-addressed store, hash-verified

3import { CodebaseSearcher } from '../src/core/search.js';
4
5function createChunk(id: string, filePath: string, content: string): CodeChunk {
6 return {
7 id,
8 content,
9 filePath,
10 relativePath: filePath,
11 startLine: 1,
12 endLine: 20,
13 language: 'typescript',
14 framework: 'generic',
15 componentType: 'service',
16 layer: 'core',
17 dependencies: [],
18 imports: [],
19 exports: [],
20 tags: [],
21 metadata: {}
22 };
23}
24
25describe('CodebaseSearcher retrieval strategy', () => {
26 it('enforces candidate floor independently from user limit', async () => {

Calls

no outgoing calls

Tested by

no test coverage detected