mirror of
https://github.com/cachix/install-nix-action.git
synced 2025-05-15 12:07:14 +00:00
v6
This commit is contained in:
parent
cd5893b2c6
commit
70742d22d9
6774 changed files with 1602535 additions and 1 deletions
28
node_modules/istanbul-reports/lib/lcov/index.js
generated
vendored
Normal file
28
node_modules/istanbul-reports/lib/lcov/index.js
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
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