develooper Front page | | Postings from June 2015

RE: Why does File::Path not respond to 'cover'?

Thread Previous | Thread Next
bulk 88
June 28, 2015 20:04
RE: Why does File::Path not respond to 'cover'?
Message ID:

> To:
> Date: Sun, 28 Jun 2015 09:18:57 -0400
> From:
> Subject: Re: Why does File::Path not respond to 'cover'?
> Thanks, yary. Yes, after I posted I recalled that Devel::Cover does
> exclude core modules. IIRC, pjcj had a project called 'p5cover' which
> was intended to rectify that, but I don't know that project's current
> status.
> In any case, on my previous laptop I located some correspondence with
> pjcj from two years ago in which I reported having found a hack for this
> case: Create a branch. In the branch rename '' to something
> like '', then do a global search-and-replace in all files
> (except things like README, TODO and Changes) to impose the new name.
> At that point you can run 'perl Makefile.PL && make', and from that
> point Devel::Cover sees a brand new library and calculates coverage.

I had a similar problem with NYTProf and XSLoader. Since XSLoader was
already loaded, in order to load NYTProf, it wasn't instrumented.  So I
deleted XSLoader's %INC entry and called require again, and that
instrumented XSLoader.

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