# Code coverage report for vinyl/lib/cloneBuffer.js

## Statements: 100% (5 / 5) Branches: 100% (0 / 0) Functions: 100% (1 / 1) Lines: 100% (5 / 5) Ignored: none

All files » vinyl/lib/ » cloneBuffer.js

    1
    2
    3
    4
    5
    6
    7
    81

    1
    7
    7
    7

     var Buffer = require('buffer').Buffer;

    module.exports = function(buf) {
      var out = new Buffer(buf.length);
      buf.copy(out);
      return out;
    };