All files / node-unzipper/lib NoopStream.js

100% Statements 14/14
100% Branches 4/4
100% Functions 2/2
100% Lines 14/14

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 1428x 28x 68x 68x 34x 34x 34x 68x 28x 28x 28x 28x 28x 28x
var Stream = require('stream');
var util = require('util');
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;