Re: TPF Devel::Cover grant report Week 18

Pedro Melo <[email protected]>
Newsgroups gmane.comp.lang.perl.quality-assurance
Message-ID <CACCxPi0kq67SR3PoVDsAHPgw9_pMQQ+pjg8HN5z87vRnoM544A@mail.gmail.com>
Hi,

On Sat, Sep 22, 2012 at 2:14 AM, Paul Johnson <[email protected]> wrote:
> I investigated github ticket 15: issue with Moo attribute which is Moo object.
>
> This turned out to be another of those longstanding bugs that I knew a bit
> about but had never been able to find the time to put in sufficient effort to
> crack.  Thanks to the grant I was able to crack it.
>
> The problem was with condition coverage, and in particular when the first
> operand of a LOGOP called (directly or indirectly) a subroutine in a file for
> which coverage was not being collected.  This meant that at the time
> Devel::Cover decided whether or not to collect coverage data for the LOGOP the
> last COP seen was indicating that coverage shouldn't be collected.  The
> solution was to check PL_curcop at appropriate times.

This alone made my week. :)

Thanks!
-- 
Pedro Melo
@pedromelo
http://www.simplicidade.org/
http://about.me/melo
xmpp:[email protected]
mailto:[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.