Lines Matching full:coverage
28 const kCoverageFileRegex = /^coverage-(\d+)-(\d{13})-(\d+)\.json$/;
29 const kIgnoreRegex = /\/\* node:coverage ignore next (?<count>\d+ )?\*\//;
32 const kStatusRegex = /\/\* node:coverage (?<status>enable|disable) \*\//;
72 const coverage = getCoverageFromDirectory(this.coverageDirectory);
91 if (!coverage) {
95 for (let i = 0; i < coverage.length; ++i) {
96 const { functions, url } = coverage[i];
108 // other possibilities. Leave it out of the coverage report.
146 // Check for comments to enable/disable coverage no matter what. These
243 // all of the created coverage files to the original coverage directory.
284 // so that no preexisting coverage files interfere with the results of the
285 // coverage report. Then, once the coverage is computed, move the coverage
290 const coverageDirectory = mkdtempSync(join(tmpdir(), 'node-coverage-'));
297 // Ensure that NODE_V8_COVERAGE is set so that coverage can propagate to
362 const coverage = JSONParse(readFileSync(coverageFile, 'utf8'));
364 mergeCoverage(result, coverage.result);
375 function mergeCoverage(merged, coverage) { argument
376 for (let i = 0; i < coverage.length; ++i) {
377 const newScript = coverage[i];
384 // coverage reports, as well as any invalid coverages which have been
402 // Merge the functions from the new coverage into the functions from the
403 // existing (merged) coverage.
417 // If newFn is block level coverage, then it will:
418 // - Replace oldFn if oldFn is not block level coverage.
419 // - Merge with oldFn if it is also block level coverage.
420 // If newFn is not block level coverage, then it has no new data.
441 // not show up in the coverage report. Unfortunately, this also means
442 // that the function counts in the coverage summary can never be
477 // Look at ranges representing missing coverage and add ranges that
492 // Add new ranges that do not represent missing coverage.