Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80679 views
1
/*
2
Copyright (c) 2012, Yahoo! Inc. All rights reserved.
3
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
4
*/
5
6
var util = require('util'),
7
Report = require('./index');
8
9
/**
10
* a `Report` implementation that does nothing. Use to specify that no reporting
11
* is needed.
12
*
13
* Usage
14
* -----
15
*
16
* var report = require('istanbul').Report.create('none');
17
*
18
*
19
* @class NoneReport
20
* @extends Report
21
* @module report
22
* @constructor
23
*/
24
function NoneReport() {
25
Report.call(this);
26
}
27
28
NoneReport.TYPE = 'none';
29
util.inherits(NoneReport, Report);
30
31
Report.mix(NoneReport, {
32
synopsis: function () {
33
return 'Does nothing. Useful to override default behavior and suppress reporting entirely';
34
},
35
writeReport: function (/* collector, sync */) {
36
//noop
37
this.emit('done');
38
}
39
});
40
41
module.exports = NoneReport;
42
43