MCPcopy Index your code
hub / github.com/continuedev/continue / streamCompletion

Function streamCompletion

core/diff/util.vitest.ts:121–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119describe("streamLines", () => {
120 it("should split chunks into lines correctly", async () => {
121 async function* streamCompletion(): AsyncGenerator<string> {
122 yield "line1\nline";
123 yield "2\nline3\n";
124 yield "line4";
125 }
126
127 const resultLines: string[] = [];
128 for await (const line of streamLines(streamCompletion())) {

Callers 1

util.vitest.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected