MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / mockStream

Function mockStream

packages/kosong/test/kimi.test.ts:1010–1016  ·  view source on GitHub ↗
(
      chunks: Record<string, unknown>[],
    )

Source from the content-addressed store, hash-verified

1008 }
1009
1010 async function* mockStream(
1011 chunks: Record<string, unknown>[],
1012 ): AsyncIterable<Record<string, unknown>> {
1013 for (const chunk of chunks) {
1014 yield chunk;
1015 }
1016 }
1017
1018 it('buffers indexed argument deltas until the real tool name arrives', async () => {
1019 const provider = createProvider(true);

Callers 1

kimi.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected