1 var LcovOnly = require('./lcovonly'),
2 util = require('util');
5 * a `Report` implementation that produces an LCOV coverage and prints it
11 * var report = require('istanbul').Report.create('text-lcov');
17 * @param {Object} opts optional
18 * @param {String} [opts.log] the method used to log to console.
20 function TextLcov(opts) {
25 this.opts = opts || {};
26 this.opts.log = this.opts.log || console.log;
28 println: function (ln) {
34 TextLcov.TYPE = 'text-lcov';
35 util.inherits(TextLcov, LcovOnly);
37 LcovOnly.super_.mix(TextLcov, {
38 writeReport: function (collector) {
40 writer = this.opts.writer;
42 collector.files().forEach(function (key) {
43 that.writeFileCoverage(writer, collector.fileCoverageFor(key));
50 module.exports = TextLcov;