mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-15 08:21:12 +00:00
.
This commit is contained in:
parent
a004f0ae58
commit
fc725ba36b
7280 changed files with 19 additions and 1796407 deletions
node_modules/istanbul-reports/lib/lcov
28
node_modules/istanbul-reports/lib/lcov/index.js
generated
vendored
28
node_modules/istanbul-reports/lib/lcov/index.js
generated
vendored
|
@ -1,28 +0,0 @@
|
|||
/*
|
||||
Copyright 2012-2015, Yahoo Inc.
|
||||
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
||||
*/
|
||||
const LcovOnlyReport = require('../lcovonly');
|
||||
const 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(what => {
|
||||
const meth = 'on' + what;
|
||||
LcovReport.prototype[meth] = function(...args) {
|
||||
const lcov = this.lcov;
|
||||
const html = this.html;
|
||||
|
||||
if (lcov[meth]) {
|
||||
lcov[meth](...args);
|
||||
}
|
||||
if (html[meth]) {
|
||||
html[meth](...args);
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
module.exports = LcovReport;
|
Loading…
Add table
Add a link
Reference in a new issue