test: ensure stream preprocessing order · nodejs/node@ea725ed · GitHub
Skip to content

Commit ea725ed

Browse files
vsemozhetbytaddaleax
authored andcommitted
test: ensure stream preprocessing order
Sometimes it is necessary to preprocess some initial bit of a stream data before giving the entire stream to the main processing function. Sometimes this bit should be extracted from the stream before the main processing; sometimes it should be returned to the stream. This test checks an order of stream modes, methods and events for a possible preprocessing algorithm. Stream BOM stripping is selected as a use case. See nodejs/help#221 as the prehistory. PR-URL: #7741 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 1d83013 commit ea725ed

3 files changed

Lines changed: 73 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
abc
2+
def
3+
ghi
Lines changed: 67 additions & 0 deletions

0 commit comments

Comments
 (0)