example/main.js
function formatReport() { // eslint-disable-line no-unused-vars
  const lineCoverage = new LineCoverage(2, 2, [
    new LineData(6, 2, 'PF4Rz2r7RTliO9u6bZ7h6g'),
    new LineData(7, 2, 'yGMB6FhEEAd8OyASe3Ni1w')
  ]);

  const record = new Record('/home/cedx/lcov.js/fixture.js', {
    functions: new FunctionCoverage(1, 1),
    lines: lineCoverage
  });

  const report = new Report('Example', [record]);
  console.log(report.toString());
}
function formatReport() { // eslint-disable-line no-unused-vars
  const lineCoverage = new LineCoverage(2, 2, [
    new LineData(6, 2, 'PF4Rz2r7RTliO9u6bZ7h6g'),
    new LineData(7, 2, 'yGMB6FhEEAd8OyASe3Ni1w')
  ]);

  const record = new Record('/home/cedx/lcov.js/fixture.js', {
    functions: new FunctionCoverage(1, 1),
    lines: lineCoverage
  });

  const report = new Report('Example', [record]);
  console.log(report.toString());
}
function formatReport ( ) { // eslint-disable-line no-unused-vars const lineCoverage = new LineCoverage ( 2 , 2 , [ new LineData ( 6 , 2 , 'PF4Rz2r7RTliO9u6bZ7h6g' ) , new LineData ( 7 , 2 , 'yGMB6FhEEAd8OyASe3Ni1w' ) ] ) ; const record = new Record ( '/home/cedx/lcov.js/fixture.js' , { functions : new FunctionCoverage ( 1 , 1 ) , lines : lineCoverage } ) ; const report = new Report ( 'Example' , [ record ] ) ; console . log ( report . toString ( ) ) ; }
Formats coverage data as LCOV report.
Formats coverage data as LCOV report .