Subject: | Devel::Cover considers code that failed to compile "covered" |
If you attempt to use / require a package and it's compilation fails,
Devel::Cover sees everything up to the failing statement as run, and
does not consider that there was code that failed to compile in it's
assessment. This makes a file that has a syntax error in it appear as if
it has successfully attained 100% code coverage.
Because all of the other statements weren't compiled, I understand you
can not count them, and therefore you can not get a percentage of total
statements actually run. Could we instead say that 0% of the statements
were covered because the package never compiled successfully?