producing a stream body, and
reading streamed replacement content — under both stream
implementations. **The tests are the normative artifact.** The general
rewriter surface (selectors, handler types, comments/doctype/text
tokens, async handlers
8.8k9mo agoReviewMountCreate a free account to mount
workerd-specific identity stream
surfaces, derived from — and kept in lockstep with — the test suite in this
directory. **The tests are the normative artifact**; this document is the
index that
8.8k9mo agoReviewMountCreate a free account to mount
every stream
surface, derived from — and kept in lockstep with — this suite. **The
tests are the normative artifact.**
## The one divergence (it is the whole suite)
The C++ implementation installs
8.8k9mo agoReviewMountCreate a free account to mount
later used inside requests. Migrated
wholesale from streams-iocontext-test.js (itself ported from the
edgeworker streams-iocontext.ew-test), plus the module-scope
WritableStream pin from streams-test.js and new byte-stream and
TransformStream coverage
8.8k9mo agoReviewMountCreate a free account to mount
implemented in workerd,
derived from — and kept in lockstep with — this suite. **The tests are
the normative artifact.** Endpoint behaviors belong to the sibling
suites (writable/, transform/, readable/, readable-byte
8.8k9mo agoReviewMountCreate a free account to mount
suite pins
those real-world shapes against both implementations, migrated
wholesale from streams-r2-patterns-test.js. **The tests are the
normative artifact.**
## Divergence ledger (C++ vs TypeScript)
The readAtLeast tail rows all follow
8.8k9mo agoReviewMountCreate a free account to mount
implemented in workerd, derived from — and kept in lockstep with — this
suite. **The tests are the normative artifact.** Byte streams
(type:'bytes', BYOB) belong to the readable-byte suite
8.8k9mo agoReviewMountCreate a free account to mount
implemented
in workerd, derived from — and kept in lockstep with — this suite.
**The tests are the normative artifact.** Value streams live in
readable/; the pipeTo/pipeThrough matrix belongs to piping
8.8k9mo agoReviewMountCreate a free account to mount
writable controller's chunk queue, and the identity
stream's write snapshots. Each test drives one queue to 80k-160k
entries (identity: 80k, over a 16x range) and asserts, through
8.8k9mo agoReviewMountCreate a free account to mount
streams
The readable/writable stream halves of `connect()` TCP sockets under
both stream implementations. **The tests are the normative artifact.**
The general Socket surface (startTls, secureTransport, DNS overrides,
the connect-handler
8.8k9mo agoReviewMountCreate a free account to mount
strategy classes as
implemented in workerd, derived from — and kept in lockstep with — the test
suite in this directory. **The tests are the normative artifact.** Both the
C++ implementation (`src/workerd/api/streams/readable.h
8.8k9mo agoReviewMountCreate a free account to mount
backed TransformStream as implemented
in workerd, derived from — and kept in lockstep with — the test suite in
this directory. **The tests are the normative artifact.** Both the C++
implementation (`src/workerd/api/streams/transform.c
8.8k9mo agoReviewMountCreate a free account to mount
stream classes as
implemented in workerd, derived from — and kept in lockstep with — the test
suite in this directory. **The tests are the normative artifact.** Both the
C++ implementation (`src/workerd/api/streams/writable
8.8k9mo agoReviewMountCreate a free account to mount
lists or the two registries will expose different module sets for the same flags
## TESTINGTests in `tests/`. Naming: ` -test.js` + ` -test.wd-test`; `-nodejs-` infix when needing compat flags. All tests
8.8k9mo agoReviewMountCreate a free account to mount
produce legacy streams (`tee()`, `detach()`, the legacy JS constructors, the
`deserialize()` legacy fallbacks) and tests that exercise this implementation directly carry
`NOLINT(workerd-legacy-stream-alloc)` with a comment saying
8.8k9mo agoReviewMountCreate a free account to mount
config-compiler.c++`), handles `--watch` and `compile`, and runs each serving subcommand (`serve`, `compile`, `test`, `fuzzilli`, `pyodide-lock`, `make-pyodide-baseline-snapshot`) through a `run_*` function in cli-main
8.8k9mo agoReviewMountCreate a free account to mount
helper`, and
`util` when a domain name exists.
- **MUST** keep terminology consistent across code, tests, logs, documentation,
wire formats, and user-facing concepts.
- **MUST** write comments for rationale, invariants, ownership/lifetime
8.8k6mo agoReviewMountCreate a free account to mount