aboutsummaryrefslogtreecommitdiff
path: root/node_modules/istanbul-reports/lib/lcov
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-28 00:38:50 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-28 00:40:43 +0200
commit7fff4499fd915bcea3fa93b1aa8b35f4fe7a6027 (patch)
tree6de9a1aebd150a23b7f8c273ec657a5d0a18fe3e /node_modules/istanbul-reports/lib/lcov
parent963b7a41feb29cc4be090a2446bdfe0c1f1bcd81 (diff)
add linting (and some initial fixes)
Diffstat (limited to 'node_modules/istanbul-reports/lib/lcov')
-rw-r--r--node_modules/istanbul-reports/lib/lcov/index.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/node_modules/istanbul-reports/lib/lcov/index.js b/node_modules/istanbul-reports/lib/lcov/index.js
new file mode 100644
index 000000000..97e34c977
--- /dev/null
+++ b/node_modules/istanbul-reports/lib/lcov/index.js
@@ -0,0 +1,29 @@
+/*
+ Copyright 2012-2015, Yahoo Inc.
+ Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
+ */
+var LcovOnlyReport = require('../lcovonly'),
+ HtmlReport = require('../html');
+
+function LcovReport() {
+ this.lcov = new LcovOnlyReport({file: 'lcov.info'});
+ this.html = new HtmlReport({ subdir: 'lcov-report'});
+}
+
+['Start', 'End', 'Summary', 'SummaryEnd', 'Detail'].forEach(function (what) {
+ var meth = 'on' + what;
+ LcovReport.prototype[meth] = function () {
+ var args = Array.prototype.slice.call(arguments),
+ lcov = this.lcov,
+ html = this.html;
+
+ if (lcov[meth]) {
+ lcov[meth].apply(lcov, args);
+ }
+ if (html[meth]) {
+ html[meth].apply(html, args);
+ }
+ };
+});
+
+module.exports = LcovReport;