MCPcopy
hub / github.com/promptfoo/promptfoo / start

Function start

test/fetch.test.ts:1770–1773  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

1768 const payload = `{"x":"${'A'.repeat(oversize - 10)}"}`;
1769 const stream = new ReadableStream<Uint8Array>({
1770 start(controller) {
1771 controller.enqueue(new TextEncoder().encode(payload));
1772 controller.close();
1773 },
1774 });
1775 const response = createMockResponse({
1776 status: 429,

Callers

nothing calls this directly

Calls 2

enqueueMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…