Function getFileName

Get the filename from the coverage summary

string getFileName (
  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
".getFileName.should.equal("core/cloud/source/cloud/system.d");

Example

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

"


".getFileName.should.equal("");

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
".getFileName.should.equal("core/cloud/source/cloud/system.d");