Code coverage report for lib/_stream_passthrough.js

Statements: 90% (9 / 10)      Branches: 50% (1 / 2)      Functions: 100% (2 / 2)      Lines: 90% (9 / 10)      Ignored: none     

All files » lib/ » _stream_passthrough.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25            946   946 946 946   946 11     11     946 150        
(function () { // a passthrough stream.
// basically just the most minimal sort of Transform stream.
// Every written chunk gets output as-is.
 
'use strict';
 
module.exports = PassThrough;
 
const Transform = require('_stream_transform');
const util = require('util');
util.inherits(PassThrough, Transform);
 
function PassThrough(options) {
  Iif (!(this instanceof PassThrough))
    return new PassThrough(options);
 
  Transform.call(this, options);
}
 
PassThrough.prototype._transform = function(chunk, encoding, cb) {
  cb(null, chunk);
};
 
}());