()
| 119 | // ============================================================================= |
| 120 | |
| 121 | function testTrustedSourceByteMode() { |
| 122 | const readable = new Readable({ read() {} }); |
| 123 | const result = readable[toAsyncStreamable](); |
| 124 | // kValidatedSource is a private symbol, but we can verify the result |
| 125 | // is used directly by from() without wrapping by checking it has |
| 126 | // Symbol.asyncIterator |
| 127 | assert.strictEqual(typeof result[Symbol.asyncIterator], 'function'); |
| 128 | assert.strictEqual(result.stream, readable); |
| 129 | } |
| 130 | |
| 131 | // ============================================================================= |
| 132 | // Byte-mode Readable: multi-read with delayed pushes |
no outgoing calls
no test coverage detected