MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / chunk

Function chunk

test/hybrid-search.test.ts:8–10  ·  view source on GitHub ↗
(file: string, text: string, symbol?: string)

Source from the content-addressed store, hash-verified

6import type { Chunk, ScoredChunk } from '../src/context/retrieval.js';
7
8function chunk(file: string, text: string, symbol?: string): Chunk {
9 return { file, startLine: 1, endLine: 10, text, hash: file, symbol };
10}
11
12describe('tokenizeForSearch', () => {
13 it('splits camelCase and snake_case into sub-words', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected