MCPcopy Create free account
hub / github.com/nock/nock / constructor

Method constructor

tests/test_socket.js:80–84  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

78
79class MemoryReadableStream extends Readable {
80 constructor(content) {
81 super()
82 this._content = content
83 this._currentOffset = 0
84 }
85
86 _read(size) {
87 if (this._currentOffset >= this._content.length) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected