Function coverageHeader

Generate the coverage page header

string coverageHeader (
  CoveredFile coveredFile
);

Example

Check variables for the coverage header

CoveredFile coveredFile;
coveredFile.moduleName = "module.name";
coveredFile.coveragePercent = 30;
coveredFile.path = "a/b";
coveredFile.lines = [ LineCoverage("       0| not code"), LineCoverage("    1| some code") ];

auto header = coverageHeader(coveredFile);

header.should.contain(`<h1>module.name`);
header.should.contain(`1/2`);
header.should.contain(`30%`);
header.should.contain(`<li>a</li><li>b</li>`);