This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community.
Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it.
https://www.freifunk-altdorf.de
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
827 B
29 lines
827 B
/* |
|
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;
|
|
|