All files / node-unzipper/lib NoopStream.js

90.91% Statements 10/11
83.33% Branches 5/6
100% Functions 2/2
90% Lines 9/10

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1924x 24x     24x       62x 31x   31x     24x   398x   24x
var Stream = require('stream');
var util = require('util');
 
// Backwards compatibility for node versions < 8
Iif (!Stream.Writable || !Stream.Writable.prototype.destroy)
  Stream = require('readable-stream');
 
function NoopStream() {
  if (!(this instanceof NoopStream)) {
    return new NoopStream();
  }
  Stream.Transform.call(this);
}
 
util.inherits(NoopStream,Stream.Transform);
 
NoopStream.prototype._transform = function(d,e,cb) { cb() ;};
  
module.exports = NoopStream;