MCPcopy Index your code
hub / github.com/nodejs/node / createTestReadableStream

Function createTestReadableStream

test/parallel/test-webstreams-abort-controller.js:8–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6const assert = require('assert');
7
8function createTestReadableStream() {
9 return new ReadableStream({
10 start(controller) {
11 controller.enqueue('a');
12 controller.enqueue('b');
13 controller.enqueue('c');
14 controller.close();
15 }
16 });
17}
18
19function createTestWritableStream(values) {
20 return new WritableStream({

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…