develooper Front page | | Postings from April 2012

Devel::Cover problem: getting analysis of .xs file but not of .pmfile

Thread Next
James E Keenan
April 25, 2012 18:08
Devel::Cover problem: getting analysis of .xs file but not of .pmfile
Message ID:

As an extension of my work on, I am trying to 
measure the test coverage for Perl 5 core distribution Hash-Util 
provided by the Perl 5 test suite.  For ease of development, I have 
copied ext/Hash-Util/lib/Hash/ and ext/Hash-Util/t/Util.t into a 
typical CPAN distribution setup.  I have applied the patches submitted 
in RT #112126 and modified t/Util.t to remove all the setup needed to 
run it as part of the Perl 5 test suite and instead run it as if it were 
a part of a regular CPAN distribution.

So I'm now at a point where I want to perform coverage analysis. 
However, try as I might, I cannot get a report of the test coverage of 
lib/Hash/ I want -- and this having used Devel::Cover for nine years!

Please see the attachment in which I show the output of:

perl Makefile.PL && make && cover -test

Note that I *am* getting coverage output for Util.xs, but I'm *not* 
getting coverage for lib/Hash/  This is most puzzling.

I have Devel::Cover version 0.80 installed and am running this with Perl 

To facilitate getting assistance with this, I have push my 
quasi-distribution to Github:

Can anyone advise as to why I am getting coverage analysis of Util.xs 
but not of lib/Hash/

Thank you very much.
Jim Keenan

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About