Function getCoveragePercent

Get the percentage from the covered summary

double getCoveragePercent (
  string fileContent
);

Example

It should get the filename from the .lst file with no coverage

"
     |  double threadUsage(uint index);
     |}
core/cloud/source/cloud/system.d has no code
".getCoveragePercent.should.equal(100);

Example

It should get the filename from the .lst file with no code

"


".getCoveragePercent.should.equal(100);

Example

It should get the filename from the .lst file with percentage

"
    2|  statusList[0].properties[\"thread1\"].value.should.startWith(\"1;\");
     |}
core/cloud/source/cloud/system.d is 88% covered
".getCoveragePercent.should.equal(88);