Bug#696906: libdevel-cover-perl: misreports conditional coverage

Russ Allbery rra at debian.org
Sat Dec 29 01:34:26 UTC 2012


Control: severity -1 wishlist

Russ Allbery <rra at debian.org> writes:

> Devel::Cover (called via Test::Strict, although I don't believe that
> would matter) misreports coverage of conditionals for one of my Perl
> modules.  It reports conditional coverage of 70.5%, but when looking at
> the HTML report, all conditionals are listed as covered (green).
> There's apparently some phantom conditional affecting the stats but not
> reflected in the report.

I found it.  The phantom conditionals were in subs generated via eval
inside AUTOLOAD.  So the summary is correct; the only problem is with the
reporting, which doesn't know how to handle eval-generated subs.  Some of
the reporting sort of works, when I look at the main summary for the file,
but apparently the conditional coverage doesn't.

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>



More information about the pkg-perl-maintainers mailing list