MCPcopy Create free account
hub / github.com/continuedev/continue / insertMockChunks

Function insertMockChunks

core/indexing/test/indexing.ts:56–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 .mockImplementation(() => Promise.resolve()) as any;
55
56export async function insertMockChunks() {
57 const index = new ChunkCodebaseIndex(
58 testIde.readFile.bind(testIde),
59 mockContinueServerClient,
60 1000,
61 );
62
63 addToTestDir([[mockFilename, mockFileContents]]);
64
65 await updateIndexAndAwaitGenerator(index, "compute", mockMarkComplete);
66 await updateIndexAndAwaitGenerator(index, "addTag", mockMarkComplete);
67}
68
69export async function updateIndexAndAwaitGenerator(
70 index: CodebaseIndex,

Calls 2

addToTestDirFunction · 0.90

Tested by

no test coverage detected