Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jonasbn (1153)

jonasbn
  reversethis-{gro.napc} {ta} {nbsanoj}
http://e-diot.dk/
AOL IM: BJonasN (Add Buddy, Send Message)

Perl Programmer located in Copenhagen, Denmark. Active member of Copenhagen Perl Mongers.

Author of:

  • Business::DK::CPR
  • Business::DK::CVR
  • Business::DK::PO
  • Business::OnlinePayment::CashCow
  • Date::Holidays
  • Date::Holidays::Abstract
  • Date::Holidays::Super
  • Date::Pregnancy
  • Games::Bingo
  • Games::Bingo::Bot
  • Games::Bingo::Print
  • Module::Info::File
  • Module::Template::Setup
  • Test::Timer

and maintainer of:

  • Tie::Tools
  • XML::Conf
  • Workflow

Journal of jonasbn (1153)

Wednesday June 11, 2008
04:02 PM

Weirdness in Devel::Cover Report

[ #36657 ]

I am working on the next release of Business::DK::CVR. The release is almost ready I just wanted to examine the test coverage. Last release was at 100%, but my newest additions will have changed this fact significantly.

So starting the Devel::Cover integration from Module::Build gives me the following report:

---------------------------- ------ ------ ------ ------ ------ ------ ------
File                           stmt   bran   cond    sub    pod   time  total
---------------------------- ------ ------ ------ ------ ------ ------ ------
/sw/lib/perl5/IO/String.pm      4.3    0.0    0.0    9.1   20.8    0.1    4.3
blib/lib/Business/DK/CVR.pm    97.1   95.0   33.3  100.0  100.0   78.6   95.2
...raints/Business/DK/CVR.pm   87.8   50.0   33.3   91.7  100.0   21.3   81.8
Total                          35.1   17.2    7.1   45.6   32.1  100.0   30.4
---------------------------- ------ ------ ------ ------ ------ ------ ------

Ok, the statistics are all crazy and the coverage is worse that anticipated, considering we where at 100% with the last release.

But hey what is this? /sw/lib/perl5/IO/String.pm

I am not using IO::String or am I, what does ack say?

Hmmm and it is even a version installed via fink

% ack IO::String
cover_db/-sw-lib-perl5-IO-String-pm.html
28:<tr><td class="h">1</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">package IO::String;</td></tr>
 
hyperstation ~/develop/cvs-logicLAB/modules/Business-DK-CVR
%

As expected it is in the report. Hmmm, when I do a ./Build clean and re-run the coverage report, it disappears

---------------------------- ------ ------ ------ ------ ------ ------ ------
File                           stmt   bran   cond    sub    pod   time  total
---------------------------- ------ ------ ------ ------ ------ ------ ------
blib/lib/Business/DK/CVR.pm    97.1   95.0   33.3  100.0  100.0   79.5   95.2
...raints/Business/DK/CVR.pm   87.8   50.0   33.3   91.7  100.0   20.5   81.8
Total                          93.6   82.1   33.3   95.8  100.0  100.0   90.1
---------------------------- ------ ------ ------ ------ ------ ------ ------

I can make it appear by issuing the coverage test commands from Komodo... I created that command myself and it is a simply a button for running: ./Build testcover.

Hey wait a minute, IO::String is written by Gisle Aas, is he not an employee of ActiveState, the company behind Komodo??? - what is he doing in my report?

Suggestions are welcome!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.