MCPcopy
hub / github.com/continuedev/continue / collectContents

Function collectContents

core/indexing/chunk/code.test.ts:75–85  ·  view source on GitHub ↗
(
  filepath: string,
  contents: string,
  maxChunkSize: number,
)

Source from the content-addressed store, hash-verified

73});
74
75async function collectContents(
76 filepath: string,
77 contents: string,
78 maxChunkSize: number,
79): Promise<string[]> {
80 const out: string[] = [];
81 for await (const c of codeChunker(filepath, contents, maxChunkSize)) {
82 out.push(c.content);
83 }
84 return out;
85}
86
87describe("codeChunker function definition", () => {
88 afterAll(async () => await cleanupAsyncEncoders());

Callers 1

code.test.tsFile · 0.85

Calls 2

codeChunkerFunction · 0.90
pushMethod · 0.65

Tested by

no test coverage detected