3.2.2 • Published 2 years ago
istanbul-lib-coverage v3.2.2
istanbul-lib-coverage
An API that provides a read-only view of coverage information with the ability to merge and summarize coverage info.
Supersedes object-utils
and collector
from the v0 istanbul API.
See the docs for the full API.
var libCoverage = require('istanbul-lib-coverage');
var map = libCoverage.createCoverageMap(globalCoverageVar);
var summary = libCoverage.createCoverageSummary();
// merge another coverage map into the one we created
map.merge(otherCoverageMap);
// inspect and summarize all file coverage objects in the map
map.files().forEach(function(f) {
var fc = map.fileCoverageFor(f),
s = fc.toSummary();
summary.merge(s);
});
console.log('Global summary', summary);
3.2.2
2 years ago
3.2.1
2 years ago
3.2.0
4 years ago
3.1.0
4 years ago
3.0.2
4 years ago
3.0.1
4 years ago
3.0.0
5 years ago
3.0.0-alpha.2
6 years ago
3.0.0-alpha.1
6 years ago
3.0.0-alpha.0
6 years ago
2.0.5
6 years ago
2.0.4
6 years ago
2.0.3
6 years ago
2.0.2
6 years ago
1.2.1
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.2.0
7 years ago
1.1.2
7 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
9 years ago
1.0.0-alpha.4
10 years ago
1.0.0-alpha.3
10 years ago
1.0.0-alpha.2
10 years ago
1.0.0-alpha.1
10 years ago
1.0.0-alpha.0
10 years ago