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

Russ Allbery rra at debian.org
Sat Dec 29 01:20:55 UTC 2012


Package: libdevel-cover-perl
Version: 0.96-1
Severity: normal

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.

Steps to reproduce:

1. Install libtest-strict-perl.
2. git clone git://git.eyrie.org/perl/ansicolor.git && cd ansicolor
3. perl Makefile.PL
4. make
5. env RRA_MAINTAINER_TESTS=1 prove -b t/strict.t

Now, look at cover_db/coverage.html.  You'll see in the table that
conditional coverage is only 70.5% and is marked red.  However, if
you click on the percentage to go to the detailed breakdown, you'll
see that all conditionals are 100% covered.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libdevel-cover-perl depends on:
ii  libc6                       2.13-37
ii  perl                        5.14.2-16
ii  perl-base [perlapi-5.14.2]  5.14.2-16

libdevel-cover-perl recommends no packages.

Versions of packages libdevel-cover-perl suggests:
pn  libbrowser-open-perl      <none>
ii  libjson-xs-perl           2.320-1+b1
ii  libpod-coverage-perl      0.22-1
ii  libtemplate-perl          2.24-1
pn  libtest-differences-perl  <none>
ii  perltidy                  20101217-1

-- no debconf information



More information about the pkg-perl-maintainers mailing list