Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103995386
index.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Mar 5, 21:22
Size
909 B
Mime Type
text/x-c++
Expires
Fri, Mar 7, 21:22 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24694910
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
index.js
View Options
'use strict'
;
/*
Copyright 2012-2015, Yahoo Inc.
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
const
{
ReportBase
}
=
require
(
'istanbul-lib-report'
);
const
LcovOnlyReport
=
require
(
'../lcovonly'
);
const
HtmlReport
=
require
(
'../html'
);
class
LcovReport
extends
ReportBase
{
constructor
(
opts
)
{
super
();
this
.
lcov
=
new
LcovOnlyReport
({
file
:
'lcov.info'
,
...
opts
});
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
;
Event Timeline
Log In to Comment