push
travis-ci
195 of 219 branches covered (89.04%)
22 of 22 new or added lines in 3 files covered. (100.0%)
476 of 494 relevant lines covered (96.36%)
9408.04 hits per line
1 |
'use strict';
|
|
2 |
|
|
|
var fs = require('graceful-fs'); |
5✔ |
|
var File = require('vinyl'); |
5✔ |
|
var through = require('through2'); |
5✔ |
6 |
|
|
|
function wrapVinyl(opt) { |
5✔ |
8 |
|
|
|
function wrapFile(globFile, enc, callback) { |
5✔ |
10 |
|
|
|
fs.lstat(globFile.path, onStat); |
30,145✔ |
12 |
|
|
|
function onStat(statErr, stat) { |
5✔ |
|
if (statErr) {
|
|
|
return callback(statErr);
|
× |
16 |
} |
|
17 |
|
|
|
var file = new File(globFile); |
30,145✔ |
|
file.stat = stat; |
30,145✔ |
20 |
|
|
|
callback(null, file);
|
30,145✔ |
22 |
} |
|
23 |
} |
|
24 |
|
|
|
return through.obj(wrapFile);
|
125✔ |
26 |
} |
|
27 |
|
|
|
module.exports = wrapVinyl; |
5✔ |