| 127 | return !!(rState.endEmitted || (strict === false && rState.ended === true && rState.length === 0)) |
| 128 | } |
| 129 | const isReadableStream = stream => { |
| 130 | if (typeof Stream.isReadable === 'function') return Stream.isReadable(stream) |
| 131 | if (stream && stream[kIsReadable] != null) return stream[kIsReadable] |
| 132 | if (typeof stream?.readable !== 'boolean') return null |
| 133 | if (isDestroyed(stream)) return false |
| 134 | return ( |
| 135 | (isReadableNodeStream(stream) && !!stream.readable && !isReadableFinished(stream)) || |
| 136 | stream instanceof fs.ReadStream || |
| 137 | stream instanceof Readable |
| 138 | ) |
| 139 | } |
| 140 | |
| 141 | export default { |
| 142 | __filename, |
nothing calls this directly
no test coverage detected