12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- 'use strict';
- const { FileCoverage } = require('./lib/file-coverage');
- const { CoverageMap } = require('./lib/coverage-map');
- const { CoverageSummary } = require('./lib/coverage-summary');
- module.exports = {
-
- createCoverageSummary(obj) {
- if (obj && obj instanceof CoverageSummary) {
- return obj;
- }
- return new CoverageSummary(obj);
- },
-
- createCoverageMap(obj) {
- if (obj && obj instanceof CoverageMap) {
- return obj;
- }
- return new CoverageMap(obj);
- },
-
- createFileCoverage(obj) {
- if (obj && obj instanceof FileCoverage) {
- return obj;
- }
- return new FileCoverage(obj);
- }
- };
- module.exports.classes = {
-
- FileCoverage
- };
|