• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gulpjs / vinyl-fs / 5233172227

pending completion
5233172227

push

github

web-flow
chore: Add integration test for re-assigning a stream to contents (#339)

332 of 370 branches covered (89.73%)

588 of 616 relevant lines covered (95.45%)

125893.96 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

53.33
/lib/src/sourcemap.js
1
'use strict';
2

3
var Transform = require('streamx').Transform;
12✔
4
var sourcemap = require('vinyl-sourcemap');
12✔
5

6
function sourcemapStream(optResolver) {
7
  function addSourcemap(file, callback) {
8
    var srcMap = optResolver.resolve('sourcemaps', file);
218,064✔
9

10
    if (!srcMap) {
218,064!
11
      return callback(null, file);
218,064✔
12
    }
13

14
    sourcemap.add(file, onAdd);
×
15

16
    function onAdd(sourcemapErr, updatedFile) {
17
      if (sourcemapErr) {
×
18
        return callback(sourcemapErr);
×
19
      }
20

21
      callback(null, updatedFile);
×
22
    }
23
  }
24

25
  return new Transform({
1,812✔
26
    transform: addSourcemap,
27
  });
28
}
29

30
module.exports = sourcemapStream;
12✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc